Add MCP Comms Relay specification and research - #217
Draft
nsheaps wants to merge 3 commits into
Draft
Conversation
Grounding research for a self-hosted MCP comms relay (Docker + cloudflared) to be added to claude.ai as a custom connector. Captures the OAuth 2.1/PKCE Streamable-HTTP requirements, the RFC 8414/9728/7591 discovery chain, tool result/timeout limits, MCP TS SDK notes, and the deployment decision. https://claude.ai/code/session_01746yPFhHs256Qvnp54hEH3
Adds the design spec for a publicly-reachable MCP rendezvous + broker that two AI agents (claude.ai custom connector + local Claude Code) dial out to in order to advertise, discover, handshake, and exchange messages. Covers OAuth 2.1 + PKCE for connector compatibility, the relay tool protocol, and a cloudflared + 1Password deployment that mirrors the portainer-stacks pattern. File sharing is explicitly deferred. Phased for incremental sign-off before any implementation code. https://claude.ai/code/session_01746yPFhHs256Qvnp54hEH3
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.
Summary
This PR introduces the specification and research documentation for the MCP Comms Relay — a publicly reachable relay service that enables two AI agents on opposite sides of a network boundary to exchange messages without either running a public server.
Changes
docs/specs/draft/mcp-comms-relay.md— Complete specification (v0.1.0) covering:advertise,discover,handshake,send,receive(long-poll)docs/research/mcp-comms-relay-requirements.md— Research grounding document covering:@modelcontextprotocol/sdkv1.x,StreamableHTTPServerTransport)Implementation Notes
nsheaps/agentsatservices/mcp-comms-relay/with a droppable docker-compose stackhttps://claude.ai/code/session_01746yPFhHs256Qvnp54hEH3