Skip to content

vscode-inproc-mcp: migrate to MCP server v2.0.0-beta.4#552

Merged
bwateratmsft merged 3 commits into
mainfrom
agents/adapt-vscode-inproc-mcp-to-modelcontextv2
Jul 23, 2026
Merged

vscode-inproc-mcp: migrate to MCP server v2.0.0-beta.4#552
bwateratmsft merged 3 commits into
mainfrom
agents/adapt-vscode-inproc-mcp-to-modelcontextv2

Conversation

@bwateratmsft

Copy link
Copy Markdown
Collaborator

Summary

  • migrate @microsoft/vscode-inproc-mcp from @modelcontextprotocol/sdk to @modelcontextprotocol/server@2.0.0-beta.4
  • update MCP imports and tool registration wiring for v2 server/context/schema typing
  • map MCP v2 ServerContext to existing tool execution extras in registerMcpTool
  • refactor in-proc HTTP transport to use @modelcontextprotocol/node NodeStreamableHTTPServerTransport instead of custom Express↔Web request/response bridging
  • update changelog and lockfile

Why

@modelcontextprotocol/server v2 is the current split package and has API/type differences from the legacy monolithic SDK. This PR adapts vscode-inproc-mcp to 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 lint
  • pnpm --filter @microsoft/vscode-inproc-mcp run build
  • pnpm --filter @microsoft/vscode-inproc-mcp run test

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
Copilot AI review requested due to automatic review settings July 23, 2026 14:36
@bwateratmsft
bwateratmsft requested a review from a team as a code owner July 23, 2026 14:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/server v2 equivalents and adapt tool registration to ServerContext.
  • Refactor the in-proc HTTP transport to use NodeStreamableHTTPServerTransport from @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.

Comment thread packages/vscode-inproc-mcp/package.json
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
@bwateratmsft
bwateratmsft merged commit a23ba50 into main Jul 23, 2026
2 checks passed
@bwateratmsft
bwateratmsft deleted the agents/adapt-vscode-inproc-mcp-to-modelcontextv2 branch July 23, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants