@@ -92,34 +92,28 @@ cargo doc --workspace --no-deps --open
9292
9393### Running the MCP Server
9494
95- ** Note:** The MCP server has two binaries:
96- - ` codegraph-official ` (recommended): Uses official rmcp SDK, supports both STDIO and HTTP transports
97- - ` codegraph ` (legacy): Original implementation, STDIO only
98-
99- All examples below use ` codegraph-official ` for consistency.
100-
10195``` bash
10296# Build the MCP server binary (with AutoAgents experimental feature)
103- cargo build --release -p codegraph-mcp --bin codegraph-official --features " ai-enhanced,autoagents-experimental,faiss,ollama"
97+ cargo build --release -p codegraph-mcp --bin codegraph --features " ai-enhanced,autoagents-experimental,faiss,ollama"
10498
10599# Or use Makefile target
106100make build-mcp-autoagents
107101
108102# Or build without AutoAgents (uses legacy orchestrator)
109- cargo build --release -p codegraph-mcp --bin codegraph-official --features " ai-enhanced,faiss,ollama"
103+ cargo build --release -p codegraph-mcp --bin codegraph --features " ai-enhanced,faiss,ollama"
110104
111105# Start MCP server (stdio mode - RECOMMENDED)
112- ./target/release/codegraph-official serve --transport stdio
106+ ./target/release/codegraph start stdio
113107
114108# Check agentic tool configuration
115- ./target/release/codegraph-official config agent-status
109+ ./target/release/codegraph config agent-status
116110```
117111
118112** HTTP Transport (Experimental):**
119113- HTTP transport with SSE streaming is now available
120114- Requires ` server-http ` feature flag
121115- Build: ` cargo build --release --features "ai-enhanced,autoagents-experimental,faiss,ollama,server-http" `
122- - Start: ` ./target/release/codegraph-official serve --transport http --port 3000 `
116+ - Start: ` ./target/release/codegraph start http --port 3000 `
123117- Endpoints:
124118 - ` POST /mcp ` - Send MCP requests (returns SSE stream)
125119 - ` GET /sse ` - Reconnect to existing session
@@ -134,10 +128,10 @@ cargo build --release -p codegraph-mcp --bin codegraph-official --features "ai-e
134128cargo build --release -p codegraph-mcp --features " ai-enhanced,autoagents-experimental,faiss,ollama,server-http"
135129
136130# Start HTTP server (default: http://127.0.0.1:3000)
137- ./target/release/codegraph-official serve --transport http
131+ ./target/release/codegraph start http
138132
139133# Custom host and port
140- ./target/release/codegraph-official serve --transport http --host 0.0.0.0 --port 8080
134+ ./target/release/codegraph start http --host 0.0.0.0 --port 8080
141135
142136# Test with curl
143137curl http://127.0.0.1:3000/health # Should return "OK"
@@ -483,9 +477,9 @@ sudo apt-get install libfaiss-dev # Ubuntu
483477- Verify SurrealDB connection is working
484478
485479** MCP tests fail**
486- - Check binary exists: ` ./target/release/codegraph-official ` or ` ./target/debug/codegraph-official `
487- - Try building with AutoAgents: ` cargo build -p codegraph-mcp --bin codegraph-official --features "ai-enhanced,autoagents-experimental,faiss,ollama" `
488- - Or without AutoAgents (legacy): ` cargo build -p codegraph-mcp --bin codegraph-official --features "ai-enhanced,faiss,ollama" `
480+ - Check binary exists: ` ./target/release/codegraph ` or ` ./target/debug/codegraph `
481+ - Try building with AutoAgents: ` cargo build -p codegraph-mcp --bin codegraph --features "ai-enhanced,autoagents-experimental,faiss,ollama" `
482+ - Or without AutoAgents (legacy): ` cargo build -p codegraph-mcp --bin codegraph --features "ai-enhanced,faiss,ollama" `
489483
490484## Additional Resources
491485
0 commit comments