fastmcp/tests/server
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
..
http Update all tests 2025-06-27 21:41:37 -04:00
middleware Fix middleware tests 2025-06-26 18:13:32 -04:00
openapi Add output schema support for OpenAPI tools (#1073) 2025-07-07 12:51:01 -04:00
proxy Fix concurrent proxy client operations with session isolation (#1083) 2025-07-08 17:22:43 -04:00
__init__.py restore 1.x code 2025-04-09 11:54:42 -04:00
test_app_state.py Update docs and test 2025-06-20 13:06:48 -04:00
test_auth_integration.py Add audio support 2025-06-14 08:59:48 -04:00
test_context.py Fix formatting per pre-commit hooks 2025-06-19 18:22:02 -04:00
test_file_server.py Remove empty parens 2025-06-04 15:37:55 -04:00
test_import_server.py Ensure multi-client configurations use new ProxyClient (#1045) 2025-07-05 11:57:03 -04:00
test_logging.py Use anyio.event 2025-05-31 18:12:17 -04:00
test_mount.py Ensure multi-client configurations use new ProxyClient (#1045) 2025-07-05 11:57:03 -04:00
test_resource_prefix_formats.py Update tests 2025-06-19 14:05:19 -04:00
test_run_server.py Update tests for prompts 2025-06-04 16:37:41 -04:00
test_server.py Update all tests 2025-06-27 21:41:37 -04:00
test_server_interactions.py Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
test_tool_annotations.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_tool_exclude_args.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00