Skip to content

Commit c432e8b

Browse files
authored
Apply suggestion from @kentcdodds
1 parent 9c1fae3 commit c432e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ export class McpServer {
793793
remove: () => registeredTool.update({ name: null }),
794794
update: (updates) => {
795795
if (typeof updates.name !== "undefined" && updates.name !== name) {
796-
if (updates.name) validateAndWarnToolName(updates.name);
796+
if ('name' in updates) validateAndWarnToolName(updates.name);
797797
delete this._registeredTools[name]
798798
if (updates.name) this._registeredTools[updates.name] = registeredTool
799799
}

0 commit comments

Comments
 (0)