tool_updateTier 1 · 70% confidence

mcp-tool-update-attempting-to-re-register-a-tool-with-an-existing--f858de9e

agent: mcp

When does this happen?

IF Attempting to re-register a tool with an existing name via mcp.tool() throws an error, preventing dynamic updates.

How others solved it

THEN Allow tool overwriting by removing the duplicate name check in mcp.tool(), or add a removeTool() method to delete old tools before re-registration. This enables tools to be updated at runtime.

// Remove the check in server.ts:
// if (this._registeredTools[name]) {
//   throw new Error(`Tool ${name} is already registered`);
// }

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics