Skip to content

Conversation

@jba
Copy link
Contributor

@jba jba commented Sep 3, 2025

Log the result of a tool call in the middleware.

This example now fully demonstrates that receiving middleware can effectively wrap a ToolHandler. That means that one reason for ToolFor is moot: you don't need to get your hands on the returned ToolHandler in order to wrap it.

Log the result of a tool call in the middleware.

This example now fully demonstrates that receiving middleware can
effectively wrap a ToolHandler. That means that one reason for ToolFor
is moot: you don't need to get your hands on the returned ToolHandler
in order to wrap it.
@jba jba requested a review from findleyr September 3, 2025 14:49
@jba jba mentioned this pull request Sep 3, 2025
@jba jba merged commit 0bb1a42 into modelcontextprotocol:main Sep 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants