Add loopback TCP support for VS Code inproc MCPs - #622
Merged
Matthew Fisher (MicroFish91) merged 17 commits intoOct 1, 2026
Merged
Conversation
Matthew Fisher (MicroFish91)
requested a review
from a team
as a code owner
September 28, 2026 17:48
Copilot started reviewing on behalf of
Matthew Fisher (MicroFish91)
September 28, 2026 17:49
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
One or more issues must be addressed before approval.
Review effort: Lite
Findings: 2
Open (3)
What changed in this PR
Adds optional loopback TCP transport for in-process MCP servers to support VS Code’s Copilot harness while preserving socket-based transport by default.
Changes:
- Starts TCP servers during MCP definition discovery.
- Adds loopback binding, Host/Origin validation, and DNS rebinding protection.
- Reorders package export conditions.
| File | Description |
|---|---|
| packages/vscode-inproc-mcp/src/vscode/registerMcpHttpProvider.ts | Updated as part of this pull request. |
| packages/vscode-inproc-mcp/src/vscode/McpProviderOptions.ts | Updated as part of this pull request. |
| packages/vscode-inproc-mcp/src/vscode/inProcHttpServer.ts | Updated as part of this pull request. |
| packages/vscode-inproc-mcp/package.json | Updated as part of this pull request. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Matthew Fisher (MicroFish91)
marked this pull request as draft
September 28, 2026 18:38
Matthew Fisher (MicroFish91)
marked this pull request as ready for review
September 28, 2026 19:01
Brandon Waterloo [MSFT] (bwateratmsft)
previously approved these changes
Oct 1, 2026
Brandon Waterloo [MSFT] (bwateratmsft)
left a comment
Collaborator
There was a problem hiding this comment.
Might need a version bump for release right?
Brandon Waterloo [MSFT] (bwateratmsft)
approved these changes
Oct 1, 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.


VS Code is transitioning away from their "Local" harness towards the "Copilot" harness which breaks us if we stick with a socket implementation. This gives us a new tcp transport option that we can leverage to keep our MCP support compatible.
Verified socket implementation still works with the local harness and the new tcp implementation works with the Copilot harness.