fastmcp/tests/server/providers
Jeremiah Lowin 57bbc9859e
Surface resource, prompt, and proxy errors on the modern protocol era (#4579)
Three defects hidden by tests pinned to the handshake era, where a raw
exception reaches the wire as str(exc). At 2026-07-28 the runner masks
anything that is not an MCPError/ValidationError as "Internal server error".

- _on_read_resource / _on_get_prompt now translate FastMCPError through
  to_mcp_error, mirroring _on_call_tool. Masking is unchanged.
- FastMCPProxy registers a server/discover handler so upstream instructions
  reach modern clients; on_initialize only fires for the handshake.
- ProxyProvider's list methods normalize transport failures into MCPError.
2026-07-20 17:52:12 -04:00
..
local_provider_tools Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
openapi Migrate to MCP SDK v2.0.0b2 (httpx2) (#4503) 2026-07-18 15:12:47 -04:00
proxy Surface resource, prompt, and proxy errors on the modern protocol era (#4579) 2026-07-20 17:52:12 -04:00
__init__.py Refactor MountedProvider into FastMCPProvider + TransformingProvider (#2653) 2025-12-19 11:42:59 -05:00
test_addressing.py Replace ___ with hash-based backend tool routing and per-tool prefab resources (#3824) 2026-04-12 12:52:07 -04:00
test_base_provider.py Surface proxy upstream failures (#4227) 2026-05-23 14:56:10 -04:00
test_fastmcp_provider.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_local_provider.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00
test_local_provider_prompts.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_local_provider_resources.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_prefab_roundtrip.py Replace ___ with hash-based backend tool routing and per-tool prefab resources (#3824) 2026-04-12 12:52:07 -04:00
test_prefab_synthesis.py Replace ___ with hash-based backend tool routing and per-tool prefab resources (#3824) 2026-04-12 12:52:07 -04:00
test_skills_provider.py Apply ruff formatting to attack corpus tests 2026-07-06 21:32:47 -04: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