Feat: Remote MCP transports - #276
Open
Fluzko wants to merge 43 commits into
Open
Conversation
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.
depends on #269
What does this PR do?
Until now Symposium could only talk to MCP servers it launched itself as child processes. A growing share of servers are hosted instead, reached over HTTP, and most of those want a real sign-in. This adds both: remote servers, and the authorization flow they need.
For plugin authors
An
mcp_serversentry with aurlinstead of acommandis a remote server, reached over streamable HTTP:urlandheadersexpand${VAR}and${VAR:-default}, so a manifest can name a credential without carrying its value. A variable that is unset and has no default refuses the server by name, rather than sending the literal${VAR}text and turning it into a confusing authentication failure.transport = "sse"is rejected with a pointer to streamable HTTP. The HTTP+SSE transport has been deprecated since protocol revision 2025-03-26 and is eligible for removal.Signing in
Servers that require authorization are handled with OAuth, no token pasting:
Tokens live one file per server under
~/.symposium/credentials, and refresh on their own. Revoking one server is deleting one file.Login is a command rather than something the meta-server does, because that process is a child of the agent: its stdout carries JSON-RPC and it has no terminal, so it can neither open a browser nor print a URL. When a server does need signing in, the meta-server says so by name and tells the agent the exact
command to suggest, and
cargo agents statuslists each remote server with whether a token is stored.Endpoint safety
A manifest names the destination, so the destination is checked. Plain HTTP is allowed only for loopback, which is already as trusted as the process itself. Private and link-local addresses are refused, both from the URL and again from every address it actually resolves to, since a public-looking hostname can answer with a private one. Redirects are not followed.
Known gap
Servers that do not offer dynamic client registration cannot be used yet, because there is no way yet to supply a pre-registered client id. GitHub's MCP server is the notable example. TBD to discuss.
Disclosure questions
AI disclosure.
Questions for reviewers.