Skip to content

Commit 1ecc96a

Browse files
committed
build: add Makefile targets for HTTP server
1 parent 2fcb5fa commit 1ecc96a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ build-release:
1515
build-mcp-autoagents:
1616
cargo build --release -p codegraph-mcp --bin codegraph --features "ai-enhanced,autoagents-experimental,faiss,ollama"
1717

18+
# Build MCP HTTP server with experimental HTTP transport
19+
.PHONY: build-mcp-http
20+
build-mcp-http:
21+
cargo build --release -p codegraph-mcp --bin codegraph --features "ai-enhanced,autoagents-experimental,faiss,embeddings-ollama,server-http"
22+
23+
# Run HTTP server (depends on build)
24+
.PHONY: run-http-server
25+
run-http-server: build-mcp-http
26+
./target/release/codegraph start http --port 3000
27+
1828
# Build API with size-optimized profile and strip/compress
1929
build-api-size:
2030
cargo build --profile release-size --bin codegraph-api

0 commit comments

Comments
 (0)