Ensure multi-client configurations use new ProxyClient (#1045)

* Validate elicitation responses are dicts

* Ensure advanced MCP features are forwarded through proxy

* Use proxy client in tests
This commit is contained in:
Jeremiah Lowin 2025-07-05 11:57:03 -04:00 committed by GitHub
commit ef742d9400
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 145 additions and 29 deletions

View file

@ -725,7 +725,7 @@ class TestProxy:
def proxy_server(self, mcp_server: FastMCP) -> FastMCP:
from fastmcp.client.transports import FastMCPTransport
proxy = FastMCP.as_proxy(Client(transport=FastMCPTransport(mcp_server)))
proxy = FastMCP.as_proxy(FastMCPTransport(mcp_server))
return proxy
async def test_transform_proxy(self, proxy_server: FastMCP):