generated from coulomb/repo-seed
feat(ops-bridge): add HTTP/SSE MCP transport for remote Claude Code sessions
server.py: MCP_TRANSPORT and MCP_PORT env vars select transport at startup
(default: stdio — no behaviour change for local use)
Makefile: `make mcp-http` starts SSE server on 127.0.0.1:8001
Remote registration (one-liner on COULOMBCORE after tunnel is up):
claude mcp add-json -s user state-hub \
'{"type":"sse","url":"http://127.0.0.1:18001/sse"}'
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
7
Makefile
7
Makefile
@@ -28,6 +28,13 @@ seed:
|
||||
api:
|
||||
uv run uvicorn api.main:app --reload --host 127.0.0.1 --port 8000
|
||||
|
||||
## MCP server in SSE/HTTP mode for remote Claude Code sessions (e.g. COULOMBCORE).
|
||||
## Exposes the same tools as the stdio server over HTTP at http://127.0.0.1:8001/sse
|
||||
## Remote clients connect via the ops-bridge tunnel (port 18001 on the remote host).
|
||||
## Registration on the remote: claude mcp add-json -s user state-hub '{"type":"sse","url":"http://127.0.0.1:18001/sse"}'
|
||||
mcp-http:
|
||||
MCP_TRANSPORT=sse MCP_PORT=8001 uv run python mcp_server/server.py
|
||||
|
||||
dashboard:
|
||||
cd dashboard && npm run dev
|
||||
|
||||
|
||||
Reference in New Issue
Block a user