fastmcp/tests/server/providers/proxy
Jeremiah Lowin a52036ed0f
Cache component lists in ProxyProvider (#3479)
* fix: cache component lists in ProxyProvider to avoid redundant backend connections

Every call_tool through a proxy was triggering _list_tools() to resolve
the tool by name, opening a full MCP session just for the lookup, then
opening a second session for the actual execution. This caches component
lists on the ProxyProvider with a configurable TTL (default 300s),
cutting backend handshakes in half for repeated calls.

* docs: document component caching and session reuse for proxy providers

* fix: add sleep in cache TTL test for Windows clock resolution

* docs: clarify cache scope and dynamic backend guidance
2026-03-13 19:44:45 -04:00
..
__init__.py Replace FastMCP.as_proxy() with create_proxy() function (#2829) 2026-01-10 11:39:06 -05:00
test_proxy_client.py Avoid stale context leakage when proxying with an already‑connected ProxyClient (#3408) 2026-03-07 11:40:43 -05:00
test_proxy_server.py Cache component lists in ProxyProvider (#3479) 2026-03-13 19:44:45 -04:00
test_stateful_proxy_client.py Fix stale request context in StatefulProxyClient handlers (#3172) 2026-02-12 17:13:23 -05:00