mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
mcp: expose MCP server definitions to ext host (#288798)
* Expose MCP server definitions to ext host * Fixes * Update src/vs/workbench/api/common/extHostTypeConverters.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/vs/workbench/api/browser/mainThreadMcp.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Address review comments * address review comments * Reuse McpServerDefinition.Serialized instead of custom DTOs (#289165) * Initial plan * Reuse McpServerDefinition.Serialized instead of custom DTO interfaces Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1630,6 +1630,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
registerMcpServerDefinitionProvider(id, provider) {
|
||||
return extHostMcp.registerMcpConfigurationProvider(extension, id, provider);
|
||||
},
|
||||
onDidChangeMcpServerDefinitions: (...args) => {
|
||||
checkProposedApiEnabled(extension, 'mcpServerDefinitions');
|
||||
return _asExtensionEvent(extHostMcp.onDidChangeMcpServerDefinitions)(...args);
|
||||
},
|
||||
get mcpServerDefinitions() {
|
||||
checkProposedApiEnabled(extension, 'mcpServerDefinitions');
|
||||
return extHostMcp.mcpServerDefinitions;
|
||||
},
|
||||
onDidChangeChatRequestTools(...args) {
|
||||
checkProposedApiEnabled(extension, 'chatParticipantAdditions');
|
||||
return _asExtensionEvent(extHostChatAgents2.onDidChangeChatRequestTools)(...args);
|
||||
|
||||
Reference in New Issue
Block a user