Files
Vladimir Krasnoselskikh e76f5e7622 feat(python)(client): allow middleware to modify context params (#522)
* fix(python): Params modified by middleware are lost when calling call_tool

* Allow middleware to mutate request params (and replace context.params) and ensure those changes are passed to the underlying client session. Update CallbackClientSession/process_request to call the final client with the live MiddlewareContext so replacements are respected. Also update docs and examples.

---------

Co-authored-by: pietrozullo <pietro.zullo@gmail.com>
2025-11-25 08:31:56 +01:00

3.8 KiB