Skip to content

Add MCP config tab with stdio-to-SSE bridge#48

Open
chrysb wants to merge 2 commits intomainfrom
chrysb/mcp-server-config
Open

Add MCP config tab with stdio-to-SSE bridge#48
chrysb wants to merge 2 commits intomainfrom
chrysb/mcp-server-config

Conversation

@chrysb
Copy link
Copy Markdown
Owner

@chrysb chrysb commented Mar 29, 2026

Summary

  • Adds a new "MCP" tab under Config in the sidebar for managing the OpenCLAW MCP server bridge
  • Implements a stdio-to-SSE bridge (mcp-bridge.js) that spawns openclaw mcp serve server-side and exposes it over HTTP endpoints (/mcp/sse, /mcp/message) so remote MCP clients (Cursor, Claude Desktop) can connect
  • Provides start/stop controls, live status display, a copyable client config JSON snippet (auto-filled with the host URL and gateway token), and a reference list of the 9 available MCP tools

Test plan

  • Verify "MCP" appears in the sidebar under Config with the plug icon
  • Click Start — bridge process spawns, status turns green
  • Copy config snippet and paste into an MCP client (Cursor/Claude Desktop)
  • Verify MCP tools are accessible and functional through the SSE bridge
  • Click Stop — bridge stops, status turns red

🤖 Generated with Claude Code

chrysb and others added 2 commits March 29, 2026 11:29
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The gateway binds to 127.0.0.1 with plain WebSocket, matching how
chat-ws.js and gateway.js connect. The wss:// caused TLS handshake
failures (EPROTO packet length too long).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant