mcp: refine extension API (#246856)

- Replace SSE with HTTP in the API (although this still supports the
  same SSE fallback we otherwise have, this is not documented)
- Add a new `resolveMcpServerDefinition` step that is only run before
  the MCP server is started -- both from a cache or from a running
  extension. This lets extensions do user interaction is a more correct way.
- Add appropriate docs and such.
This commit is contained in:
Connor Peet
2025-04-17 14:17:04 -07:00
committed by GitHub
parent 6738af2d26
commit dede7bb4b7
9 changed files with 175 additions and 43 deletions

View File

@@ -1830,7 +1830,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
AISearchKeyword: AISearchKeyword,
TextSearchCompleteMessageTypeNew: TextSearchCompleteMessageType,
ChatErrorLevel: extHostTypes.ChatErrorLevel,
McpSSEServerDefinition: extHostTypes.McpSSEServerDefinition,
McpHttpServerDefinition: extHostTypes.McpHttpServerDefinition,
McpStdioServerDefinition: extHostTypes.McpStdioServerDefinition,
};
};