We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c1fae3 commit c432e8bCopy full SHA for c432e8b
src/server/mcp.ts
@@ -793,7 +793,7 @@ export class McpServer {
793
remove: () => registeredTool.update({ name: null }),
794
update: (updates) => {
795
if (typeof updates.name !== "undefined" && updates.name !== name) {
796
- if (updates.name) validateAndWarnToolName(updates.name);
+ if ('name' in updates) validateAndWarnToolName(updates.name);
797
delete this._registeredTools[name]
798
if (updates.name) this._registeredTools[updates.name] = registeredTool
799
}
0 commit comments