Repository navigation
feat: gateway MCP server — agents as tools over streamable HTTP (#73) - #74
Merged
Merged
Conversation
POST /mcp: JSON-RPC 2.0, spec 2025-03-26, stateless single-shot JSON (JSS's transport style), Bearer/query token auth. Tools speak openclaw's bridge vocabulary and delegate to the existing dispatch: conversations_list (sessions.list), messages_send (chat.send into a session key, returns the reply), messages_read (chat.history), plus agents_list and skills_list. Protocol envelope in src/mcp.js; notifications answer 202; tool failures return isError content, not protocol errors.
This was referenced Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Built to the audited design on #73: openclaw's MCP bridge vocabulary (conversations_list, messages_send, messages_read — verified against their 'mcp serve' tool surface) over JSS's stateless Streamable HTTP transport (verified against their src/mcp, spec 2025-03-26), plus jsclaw-natural agents_list and skills_list. Every tool is pure delegation to the gateway's existing dispatch — runner-agnostic by construction, no agent-micro or default-runner changes. Auth reuses the gateway token (Bearer header or ?token=). Deferred per issue: stdio transport, events_poll/wait, permissions_* (#58), SSE. Tests 153/153.