Skip to content

Commit 59d4d6d

Browse files
committed
docs: add HTTP server quick start to README
1 parent 14e03da commit 59d4d6d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,40 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
580580

581581
---
582582

583+
### HTTP Server Mode (Experimental)
584+
585+
For web integrations and multi-client scenarios:
586+
587+
```bash
588+
# Build with HTTP support
589+
make build-mcp-http
590+
591+
# Start server
592+
./target/release/codegraph start http
593+
594+
# Test endpoints
595+
curl http://127.0.0.1:3000/health
596+
curl -X POST http://127.0.0.1:3000/mcp \
597+
-H "Content-Type: application/json" \
598+
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'
599+
```
600+
601+
**Features:**
602+
- ✅ Session-based stateful connections
603+
- ✅ SSE streaming for real-time progress
604+
- ✅ Automatic session management
605+
- ✅ Reconnection support with Last-Event-Id
606+
607+
**Use Cases:**
608+
- Web-based code analysis dashboards
609+
- Multi-client collaborative environments
610+
- API integrations
611+
- Development/debugging (easier to inspect than STDIO)
612+
613+
**Note:** For production use with Claude Desktop, use STDIO mode.
614+
615+
---
616+
583617
## 📚 For AI Agents: Using CodeGraph MCP
584618

585619
CodeGraph provides powerful code intelligence tools via the Model Context Protocol (MCP).

0 commit comments

Comments
 (0)