-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
70 lines (57 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: help install build test lint clean start dev precommit start-sse start-stdio test-transport
# Default target
help:
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make build - Build the project"
@echo " make test - Run tests"
@echo " make test-transport - Run transport-specific tests"
@echo " make lint - Run linter"
@echo " make clean - Remove build artifacts"
@echo " make start - Start the MCP server"
@echo " make dev - Start the server in development mode"
@echo " make precommit - Run pre-commit checks manually"
@echo " make start-sse - Start the MCP server with SSE transport"
@echo " make start-stdio - Start the MCP server with stdio transport"
# Install dependencies
install:
npm install
# Build the project
build:
npm run build
# Run tests
test:
npm test
# Run linter
lint:
npm run lint
# Clean build artifacts
clean:
rm -rf build
rm -rf dist
rm -rf coverage
rm -rf .tmp
rm -rf *.tsbuildinfo
# Start the server
start:
node build/index.js
# Start in development mode
dev:
npm run dev
# Run all checks (lint and test)
check: lint test
@echo "All checks passed!"
# Run pre-commit checks manually
precommit:
npm run lint && npm run test
# Start the MCP server with SSE transport
start-sse:
@echo "Starting MCP server with SSE transport on port 3001..."
@npm run start:sse
# Start the MCP server with stdio transport
start-stdio:
@echo "Starting MCP server with stdio transport..."
@npm run start:stdio
# Run transport-specific tests
test-transport:
npm run test:transport