Skip to content

MCP install URL handler is not working #2977

@d13

Description

@d13

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

  1. Open Kiro and install the latest Web Component AI Tools (d13.vscode-web-components-ai)
  2. Run "Web Component AI Tools: MCP Server Information" in the Command Palette
  3. Click "Copy Config JSON" in the toast
  4. Create an MCP install URL and open it
  5. "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
Image

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.

Image Image

Conversation ID

No response

Additional Context

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions