fastmcp/tests/client
Jeremiah Lowin c452164e86
Fix concurrent proxy client operations with session isolation (#1083)
* Refactor Client session state with ClientSessionState dataclass

Fixes #1068 by introducing ClientSessionState to encapsulate session management
attributes, simplifying Client.new() and preventing concurrent proxy client
context mixing through client factory pattern.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update proxy documentation for new client factory pattern

Documents the new session management behavior, client_factory parameter,
and concurrent operation safety introduced in v2.10.3 to fix #1068.

* Remove deprecation of client parameter and update documentation

- Undeprecated FastMCPProxy client parameter
- Made client_factory the advanced option for custom control
- Added detailed explanation of how client factories work internally
- Removed outdated note about proxy feature limitations
- Removed fabricated Advanced Usage section

* Re-do proxy documentation

* Fix deprecated client parameter to provide session isolation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-08 17:22:43 -04:00
..
__init__.py clean up test inits 2025-05-31 19:32:08 -04:00
test_client.py Fix concurrent proxy client operations with session isolation (#1083) 2025-07-08 17:22:43 -04:00
test_elicitation.py Ensure multi-client configurations use new ProxyClient (#1045) 2025-07-05 11:57:03 -04:00
test_logs.py Remove empty parens 2025-06-04 15:37:55 -04:00
test_notifications.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_openapi.py Ensure multi-client configurations use new ProxyClient (#1045) 2025-07-05 11:57:03 -04:00
test_progress.py Remove empty parens 2025-06-04 15:37:55 -04:00
test_roots.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_sampling.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_sse.py Update docs and test 2025-06-20 13:06:48 -04:00
test_stdio.py Improve early error handling for stdio transport 2025-06-28 21:37:48 -04:00
test_streamable_http.py Ensure tests use stateless mode 2025-07-03 19:55:49 -04:00