fastmcp/tests/server/providers/proxy
Bill Easton 4ea102b433
fix: ProxyTool crashes on non-TextContent error responses (#3926)
* fix: handle non-TextContent error responses in ProxyTool

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Avoid serializing binary content into ToolError messages

Use type name instead of str(content) to prevent dumping
large base64 payloads into error messages.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* ruff format fix

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 12:10:23 -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 fix: ProxyTool crashes on non-TextContent error responses (#3926) 2026-04-14 12:10:23 -04:00
test_stateful_proxy_client.py Fix stale request context in StatefulProxyClient handlers (#3172) 2026-02-12 17:13:23 -05:00