Skip to content

Commit 03faee3

Browse files
committed
use .remove() function
1 parent 705b4f0 commit 03faee3

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
@@ -1104,7 +1104,7 @@ export class McpServer {
11041104
removeTool(name: string) {
11051105
const tool = this._registeredTools[name];
11061106
if (tool) {
1107-
tool.update({ name: null });
1107+
tool.remove();
11081108
}
11091109
}
11101110

0 commit comments

Comments
 (0)