Skip to content

Commit 371842c

Browse files
committed
Fix misleading HTTP transport error message
- Remove reference to non-existent --legacy flag - Clarify that HTTP transport is not implemented with official rmcp SDK - Update README.md to remove HTTP transport example - Add note explaining STDIO is the only supported transport - Improve error message formatting and clarity
1 parent 7a1cdba commit 371842c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,13 +492,12 @@ codegraph index -r /path/to/project
492492
# Start MCP server (for Claude Desktop, LM Studio, etc.)
493493
codegraph start stdio
494494

495-
# Start streamable HTTP server (alternative)
496-
codegraph start http
497-
498495
# List available MCP tools
499496
codegraph tools list
500497
```
501498

499+
**Note:** HTTP transport is not yet implemented with the official rmcp SDK. Use STDIO transport for all MCP integrations.
500+
502501
### Using with Claude Desktop
503502

504503
Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on Mac):

crates/codegraph-mcp/src/bin/codegraph.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -832,14 +832,17 @@ async fn handle_start(
832832
key,
833833
cors: _,
834834
} => {
835-
eprintln!("🚧 HTTP transport with official SDK not yet implemented");
836-
eprintln!("💡 Use STDIO transport for 100% official SDK compliance:");
835+
eprintln!("🚧 HTTP transport not yet implemented with official rmcp SDK");
836+
eprintln!();
837+
eprintln!("💡 Use STDIO transport instead (recommended):");
837838
eprintln!(" codegraph start stdio");
838-
eprintln!("💡 Or use legacy HTTP server:");
839-
eprintln!(" codegraph start http --legacy");
839+
eprintln!();
840+
eprintln!("📋 HTTP transport implementation is tracked in the roadmap.");
841+
eprintln!(" The official rmcp SDK supports streamable HTTP, but integration");
842+
eprintln!(" with CodeGraph's agentic tools is not yet complete.");
840843

841844
return Err(anyhow::anyhow!(
842-
"HTTP transport requires legacy mode or official SDK implementation"
845+
"HTTP transport not yet implemented - use 'codegraph start stdio' instead"
843846
));
844847
}
845848
TransportType::Dual {

0 commit comments

Comments
 (0)