fastmcp/tests/server/providers/proxy
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
..
__init__.py Replace FastMCP.as_proxy() with create_proxy() function (#2829) 2026-01-10 11:39:06 -05:00
test_proxy_client.py Apply ruff-format: drop now-unused imports and reflow 2026-07-07 07:53:11 -04:00
test_proxy_server.py Surface resource, prompt, and proxy errors on the modern protocol era (#4579) 2026-07-20 17:52:12 -04:00
test_stateful_proxy_client.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00