You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The mcp.tool() method checks _registeredTools and errors if the tool has already been created. Unfortunately there is no method exposed to delete a tool. This means that a use case we have (a tool can change) cannot be supported.
To Reproduce
You could register a tool and then try to update it by re-registering, but also just look at the code above.
Expected behavior
This is half-way between bug and feature request - but I would like it to simply overwrite the tool.
Or to simply have a deleteToolIfExists() method.
Logs
If applicable, add logs to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
@samdoeswork did you find a workaround for this in the mean time? I've just run into this and it's a pretty big feature gap to not be able to remove or update tools!
Describe the bug
The mcp.tool() method checks _registeredTools and errors if the tool has already been created. Unfortunately there is no method exposed to delete a tool. This means that a use case we have (a tool can change) cannot be supported.
To Reproduce
You could register a tool and then try to update it by re-registering, but also just look at the code above.
Expected behavior
This is half-way between bug and feature request - but I would like it to simply overwrite the tool.
Or to simply have a deleteToolIfExists() method.
Logs
If applicable, add logs to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: