Skip to content

[NuGet MCP] Add proposal API for mapping MCP server.json to mcp.json #259100

@joelverhagen

Description

@joelverhagen

It appears there is no way for extensions to invoke this routing via the VS Code plugin API:

protected toScannedMcpServerAndInputs(manifest: IMcpServerManifest, packageType?: PackageType): { config: IMcpServerConfiguration; inputs?: IMcpServerVariable[] } {

I am working on the Copilot Chat extension and have NuGet packages which contain an embedded .mcp/server.json file. I would like to map this to VS Code MCP JSON using the toScannedMcpServerAndInputs method.

That way, it can be flowed through the assisted installation flow.

I propose a new enabledApiProposals is added that exposes this mapping behavior.

Alternatively, the contract of github.copilot.chat.mcp.setup.flow could be changed to allow server.json format to be returned while still supporting VS Code's JSON format also -- perhaps with an enum to differentiate, thus allowing VS Code internally to do the mapping.

Related to #257679

Metadata

Metadata

Labels

*out-of-scopePosted issue is not in scope of VS Codechat-mcpchat-mcp-managementIssues related to browsing and managing MCP Servers in VS Codefeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions