mcp: export ToolFor (#347)

This is needed so clients can modify tool schemas, and not merely to
wrap ToolHandlers.

(A consequence of returning a copy of Tool instead of modifying it.)
This commit is contained in:
Jonathan Amsterdam 2025-08-21 17:54:17 -04:00 • committed by GitHub
commit 62db914082
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,6 @@
package mcp
// TODO: expand the aliases
type (
CallToolRequest = ServerRequest[*CallToolParams]
CompleteRequest = ServerRequest[*CompleteParams]