fastmcp/tests/server/providers
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
..
local_provider_tools Fix $ref output schema object detection regression (#3420) 2026-03-07 12:09:56 -05:00
openapi Redact sensitive headers in OpenAPI provider debug logging (#3436) 2026-03-07 12:10:05 -05:00
proxy Cache component lists in ProxyProvider (#3479) 2026-03-13 19:44:45 -04:00
__init__.py Refactor MountedProvider into FastMCPProvider + TransformingProvider (#2653) 2025-12-19 11:42:59 -05:00
test_base_provider.py Refactor transform list methods to pure function pattern (#2942) 2026-01-19 16:21:35 -05:00
test_fastmcp_provider.py Immutable transform wrapping for providers (#2913) 2026-01-18 19:37:29 -05:00
test_local_provider.py Rename Enabled transform to Visibility (#2950) 2026-01-19 20:46:58 -05:00
test_local_provider_prompts.py Fix ty 0.0.17 diagnostics and bump lockfile 2026-02-16 16:13:38 -05:00
test_local_provider_resources.py Remove deprecated FastMCP() constructor kwargs (#3148) 2026-02-11 11:39:34 -05:00
test_skills_provider.py Block out-of-skill symlink hashing in skills scan (#3410) 2026-03-07 11:40:46 -05:00
test_skills_vendor_providers.py Add Skills Provider for exposing agent skills as MCP resources (#2944) 2026-01-19 18:29:16 -05:00
test_transforming_provider.py Refactor transform list methods to pure function pattern (#2942) 2026-01-19 16:21:35 -05:00