vscode-inproc-mcp: migrate to MCP server v2.0.0-beta.4#552
Merged
bwateratmsft merged 3 commits intoJul 23, 2026
Conversation
Replace @modelcontextprotocol/sdk usage with @modelcontextprotocol/server@2.0.0-beta.4 and adapt tool registration/context handling for the v2 API surface. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 316293d4-9557-439b-966e-b31fce9e2bd3
Replace the manual Express-to-Web request/response bridge with @modelcontextprotocol/node's NodeStreamableHTTPServerTransport while preserving session lifecycle behavior. Add the node package dependency and update changelog notes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 316293d4-9557-439b-966e-b31fce9e2bd3
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates @microsoft/vscode-inproc-mcp from the legacy @modelcontextprotocol/sdk package to the split MCP v2 packages (@modelcontextprotocol/server + @modelcontextprotocol/node), updating tool registration and the in-proc HTTP transport implementation to align with the new server/context/schema types and transport APIs.
Changes:
- Replace MCP SDK imports/types with
@modelcontextprotocol/serverv2 equivalents and adapt tool registration toServerContext. - Refactor the in-proc HTTP transport to use
NodeStreamableHTTPServerTransportfrom@modelcontextprotocol/node. - Update changelog and dependency lockfile to reflect the MCP v2 package split and versions.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Replaces @modelcontextprotocol/sdk with @modelcontextprotocol/server + @modelcontextprotocol/node v2.0.0-beta.4 and updates resolved dependency graph. |
| packages/vscode-inproc-mcp/src/vscode/registerMcpToolWithTelemetry.ts | Updates MCP server type import to v2 package. |
| packages/vscode-inproc-mcp/src/vscode/McpProviderOptions.ts | Updates McpServer type import to v2 package. |
| packages/vscode-inproc-mcp/src/vscode/inProcHttpServer.ts | Switches HTTP transport wiring to NodeStreamableHTTPServerTransport and updates lazy imports accordingly. |
| packages/vscode-inproc-mcp/src/mcp/registerMcpTool.ts | Adapts tool registration to MCP v2 ServerContext and schema typing expectations. |
| packages/vscode-inproc-mcp/package.json | Swaps MCP dependency from legacy SDK to v2 server + node packages. |
| packages/vscode-inproc-mcp/CHANGELOG.md | Notes the MCP v2 migration and transport wiring change in Unreleased. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Move the MCP v2 migration notes from Unreleased into the 1.0.0 section and update the release date to 23 July 2026 per review feedback. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 316293d4-9557-439b-966e-b31fce9e2bd3
patverb
approved these changes
Jul 23, 2026
bwateratmsft
deleted the
agents/adapt-vscode-inproc-mcp-to-modelcontextv2
branch
July 23, 2026 18:38
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
@microsoft/vscode-inproc-mcpfrom@modelcontextprotocol/sdkto@modelcontextprotocol/server@2.0.0-beta.4ServerContextto existing tool execution extras inregisterMcpTool@modelcontextprotocol/nodeNodeStreamableHTTPServerTransportinstead of custom Express↔Web request/response bridgingWhy
@modelcontextprotocol/serverv2 is the current split package and has API/type differences from the legacy monolithic SDK. This PR adaptsvscode-inproc-mcpto the new server package while keeping existing behavior for session lifecycle and provider registration.Validation
Ran for
@microsoft/vscode-inproc-mcp:pnpm --filter @microsoft/vscode-inproc-mcp run lintpnpm --filter @microsoft/vscode-inproc-mcp run buildpnpm --filter @microsoft/vscode-inproc-mcp run test