Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro IDE does not handle MCP notifications/tools/list_changed — dynamic tools not refreshed

Open neJoe-ch opened this issue 8 months ago • 8 comments

Before opening, please confirm:

Operating System

macOS 26.3.1

Kiro Version

0.11.34

Bug Description

Kiro IDE does not handle the MCP notifications/tools/list_changed notification. When an MCP server dynamically adds or removes tools at runtime and sends this notification per the MCP spec, Kiro IDE does not re-query tools/list, so the new tools never appear until the server is manually reconnected.

Both VS Code (Copilot) and Kiro CLI correctly handle this notification and refresh the tool list automatically. Only Kiro IDE ignores it.

References:

MCP Spec — List Changed Notification: https://modelcontextprotocol.io/specification/2025-11-25/server/toolsundefined

Steps to Reproduce

Create a minimal MCP server that supports dynamic tool registration (see repro below) Add it to ~/.kiro/settings/mcp.json: "dynamic-tool-test": { "command": "node", "args": ["/path/to/dynamic-tool-test/index.js"] } Connect — you see hello and add_tool Call add_tool with name: "apple" Server responds with success and sends notifications/tools/list_changed The new apple_1 tool never appears in Kiro IDE's tool list Expected behavior: Kiro IDE should re-query tools/list when it receives notifications/tools/list_changed, as specified in the MCP spec. This already works correctly in Kiro CLI and VS Code.

Minimal repro server (index.js):

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { z } from "zod";

let counter = 0; const server = new McpServer( { name: "dynamic-tool-test", version: "1.0.0" }, { capabilities: { tools: { listChanged: true } } } );

server.tool("hello", "A simple hello tool", { name: z.string() }, async ({ name }) => ({ content: [{ type: "text", text: Hello, ${name}! }], }));

server.tool("add_tool", "Add a new tool at runtime", { name: z.string() }, async ({ name }) => { const toolName = ${name}_${++counter}; server.tool(toolName, Dynamic tool: ${toolName}, {}, async () => ({ content: [{ type: "text", text: I am ${toolName} }], })); return { content: [{ type: "text", text: Added tool: ${toolName} }] }; });

await server.connect(new StdioServerTransport()); package.json: { "type": "module", "dependencies": { "@modelcontextprotocol/sdk": "^1.12.0" } }

Expected Behavior

MCP Spec — List Changed Notification: https://modelcontextprotocol.io/specification/2025-11-25/server/tools#list-changed-notification

Kiro IDE re-queries tool list after list_changed notification is received.

Conversation ID

No response

Additional Context

No response

neJoe-ch avatar Mar 20 '26 15:03 neJoe-ch

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues report MCP server tools not loading properly in Kiro, though this one focuses on HTTP-based servers while the new issue focuses on dynamic tool refresh notifications

github-actions[bot] avatar Mar 20 '26 15:03 github-actions[bot]

No this is not a duplicate of those issues. Explanation: #4717 is a Kiro CLI bug about HTTP-based MCP servers. This is a Kiro IDE bug for local MCP servers. Probably HTTP based also, but that one was not tested. #4280 That is a bug in Kiro CLI what is working in Kiro IDE and about reloading the MCP server manually. This is a failimplementation of the MCP protocol in Kiro IDE.

neJoe-ch avatar Mar 20 '26 15:03 neJoe-ch

Thank you for your feedback! 🙏

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar Mar 20 '26 15:03 github-actions[bot]

I reported same issue here: https://github.com/kirodotdev/Kiro/issues/9002 D:

miyako11 avatar May 31 '26 03:05 miyako11

Thanks for the detailed repro and comparison with VS Code/CLI behavior! Dynamic tool list refresh via notifications/tools/list_changed is clearly supported by the MCP spec and works in other clients — this is a valid gap in Kiro IDE. Tracking as a feature request. 👍

AnilMaktala avatar Jun 23 '26 20:06 AnilMaktala

@AnilMaktala this issue is in Kiro CLI v3 as well so this is a issue in the new unified agent harness. So this is a regression, can we prioritize this accordingly as it's not necessarily a feature request but a bug fix.

mvhowardAWS avatar Jul 14 '26 16:07 mvhowardAWS

This is resolved in CLI 2.14.0 — Kiro now re-queries tools/list when it receives notifications/tools/list_changed from an MCP server. Dynamic tool registration should work without manual reconnection.

@mvhowardAWS — the v3 regression you flagged is addressed in this release as well.

Closing as completed. If you're still seeing issues on 2.14.0, please open a new issue with your current Kiro version and reproduction steps.

AnilMaktala avatar Jul 23 '26 14:07 AnilMaktala

@AnilMaktala : What is the Kiro IDE version where I will see the fix? I have reported the problem for the Kiro IDE originally.

neJoe-ch avatar Jul 24 '26 16:07 neJoe-ch