fastmcp/tests
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
..
auth Support 'scp' claim for OAuth scopes in BearerAuthProvider 2025-07-03 20:18:54 -04:00
cli feat: Add --path Option to CLI for HTTP/SSE Route (#1087) 2025-07-08 11:20:15 -04:00
client Fix concurrent proxy client operations with session isolation (#1083) 2025-07-08 17:22:43 -04:00
contrib Remove asyncio mark 2025-07-06 21:14:30 -04:00
deprecated Fix concurrent proxy client operations with session isolation (#1083) 2025-07-08 17:22:43 -04:00
prompts Avoid propagating logs (#1042) 2025-07-04 12:22:11 -04:00
resources Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
server Fix concurrent proxy client operations with session isolation (#1083) 2025-07-08 17:22:43 -04:00
test_servers Update tests for prompts 2025-06-04 16:37:41 -04:00
tools Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
utilities Fix max recursion error when pruning OpenAPI definitions (#1092) 2025-07-08 17:21:58 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Only apply log config to FastMCP loggers 2025-04-14 15:45:05 -04:00
test_examples.py Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00