-
Notifications
You must be signed in to change notification settings - Fork 165
Description
Before opening, please confirm:
Operating System
macOS
Kiro Version
0.2.59
Bug Description
The MCP install URL handler is used by MCP providers as an easy method for users to setup MCP configurations without needing to lookup and manually enter it.
When using this URL in Kiro, the "MCP Server" editor tabs says its disabled because the chat.mcp.enabled setting is not enabled. This setting is not available in "Open Settings (UI)". If I go and manually set "chat.mcp.enabled": true in my settings.json, the install button appears and I was able to click Install. The "MCP" menu option then appears in "Add Context" in the Kiro chat, but no MCP servers are shown.
Steps to Reproduce
- Open Kiro and install the latest Web Component AI Tools (d13.vscode-web-components-ai)
- Run "Web Component AI Tools: MCP Server Information" in the Command Palette
- Click "Copy Config JSON" in the toast
- Create an MCP install URL and open it
- "MCP Server: Web Component AI Tools" editor tab appears with the following warning: "This mcp server cannot be installed because Model Context Protocol servers are disabled in the Editor. Please check your settings."
Creating an example link:
// Sample output from "Copy Config JSON"
// {
// "mcpServers": {
// "mcp-wcai-http": {
// "type": "http",
// "url": "http://127.0.0.1:60924/mcp"
// },
// "mcp-wcai-sse": {
// "type": "sse",
// "url": "http://127.0.0.1:60924/sse"
// }
// }
// }
// Encode MCP info as a param on the URL
const obj = {
"name": "Web Component AI Tools",
"type": "http",
"url": "http://127.0.0.1:60924/mcp"
};
const link = `kiro:mcp/install?${encodeURIComponent(JSON.stringify(obj))}`;Encoded example:
kiro:mcp/install?%7B%22name%22%3A%22Web%20Component%20AI%20Tools%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22http%3A%2F%2F127.0.0.1%3A60924%2Fmcp%22%7D
Expected Behavior
"MCP Server: Web Component AI Tools" editor tab should appear with an active Install button. After clicking the Install button, the MCP server should appear under the MCP menu option of "Add Context" in Kiro's chat.
Conversation ID
No response
Additional Context
- This feature was introduced with VS Code
1.102.0 - MCP URL handler documentation: https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_url-handler