Registers a provider that publishes Model Context Protocol servers for the editor to
consume. This allows MCP servers to be dynamically provided to the editor in
addition to those the user creates in their configuration files.
Before calling this method, extensions must register the contributes.mcpServerDefinitionProviders
extension point with the corresponding id, for example:
When a new McpServerDefinitionProvider is available, the editor will present a 'refresh'
action to the user to discover new servers. To enable this flow, extensions should
call registerMcpServerDefinitionProvider during activation.
Parameters
id: string
The ID of the provider, which is unique to the extension.
Registers a provider that publishes Model Context Protocol servers for the editor to consume. This allows MCP servers to be dynamically provided to the editor in addition to those the user creates in their configuration files.
Before calling this method, extensions must register the
contributes.mcpServerDefinitionProvidersextension point with the corresponding id, for example:When a new McpServerDefinitionProvider is available, the editor will present a 'refresh' action to the user to discover new servers. To enable this flow, extensions should call
registerMcpServerDefinitionProviderduring activation.