Skip to content

Conversation

@connor4312
Copy link
Member

#268488 from me since it touches package.json. Note that undici was already a transitive dependency we had in the extension host, so there is no bundle size change from the dependency.

Copilot AI review requested due to automatic review settings September 26, 2025 17:55
@connor4312 connor4312 enabled auto-merge (squash) September 26, 2025 17:55
@connor4312 connor4312 self-assigned this Sep 26, 2025
@connor4312 connor4312 disabled auto-merge September 26, 2025 17:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for connecting to MCP (Model Context Protocol) servers via Unix sockets and Windows named pipes, expanding beyond the existing stdio and HTTP transport methods. The implementation utilizes the undici library to handle custom socket connections while maintaining compatibility with the existing HTTP transport layer.

Key Changes:

  • Extends the HTTP transport handler to support Unix sockets and Windows pipes using URI schemes (unix:// and pipe://)
  • Refactors the MCP HTTP handling to allow Node.js-specific implementations with undici
  • Adds undici as an explicit dependency for advanced HTTP client features

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/api/node/extHostMcpNode.ts Implements Node.js-specific MCP HTTP handler with Unix socket/pipe support using undici
src/vs/workbench/api/common/extHostMcp.ts Refactors base HTTP handler to support extensible fetch implementation and exports necessary types
package.json Adds undici dependency for advanced HTTP client functionality
eslint.config.js Updates ESLint configuration to allow undici imports

@vs-code-engineering vs-code-engineering bot added this to the September 2025 milestone Sep 26, 2025
@connor4312 connor4312 merged commit 2aaf297 into main Sep 26, 2025
27 of 28 checks passed
@connor4312 connor4312 deleted the connor4312/mcpOverUDS3 branch September 26, 2025 19:08
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants