-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
41 lines (32 loc) · 1.12 KB
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
.PHONY: dev build build-ui build-server clean typecheck lint
# Development — starts MCP server + Vite with HMR preview
dev:
cd ui && npm run dev
# Build — UI + server deps
build: build-ui
build-ui:
cd ui && npm install && npm run build
# Run server in stdio mode
run:
uv run python -m mcp_hello.server
# Run server in HTTP mode
run-http:
uv run uvicorn mcp_hello.server:app --port 8001
# Verify
typecheck:
uv run ty check src/
lint:
uv run ruff check src/
clean:
rm -rf ui/dist ui/node_modules deps/*.egg-info
# Version bump — updates manifest.json, pyproject.toml, __init__.py
bump:
ifndef VERSION
$(error VERSION is required. Usage: make bump VERSION=0.2.0)
endif
@echo "Bumping to $(VERSION)"
@jq --arg v "$(VERSION)" '.version = $$v' manifest.json > manifest.tmp.json && mv manifest.tmp.json manifest.json
@jq --arg v "$(VERSION)" '.version = $$v' server.json > server.tmp.json && mv server.tmp.json server.json
@sed -i '' 's/^version = .*/version = "$(VERSION)"/' pyproject.toml
@sed -i '' 's/^__version__ = .*/__version__ = "$(VERSION)"/' src/mcp_hello/__init__.py
@echo "Done. Don't forget to commit and tag."