fix: preserve MCP method metadata in HTTP transport - #309
Open
elibosley wants to merge 1 commit into
Open
Conversation
|
We recently forked mcp-remote and fixed a number of auth-related problems. If it's helpful, you can try the fork here: https://github.com/abluva/mcp-remote We'll be maintaining it going forward, so feel free to open issues or PRs there if you run into anything else. Newly released version 2.0.0 supports MCP 2026-07-28 stateless remote transport; stdio bridge (initialize shim, _meta strip, list-method shims); --protocol CLI; localhost OAuth skip; SDK 1.30 |
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
Some MCP gateways need the request method metadata that newer MCP clients provide. This adds an SDK fetch wrapper that preserves existing headers and injects
Mcp-Methodfrom JSON-RPC request bodies when absent.Validation
pnpm test:unitpnpm checkpnpm build