Update src/fastmcp/server/proxy.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
yihuang 2025-04-21 11:24:33 +08:00 committed by GitHub
commit 4bb3503b63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,7 +176,7 @@ class FastMCPProxy(FastMCP):
async with self.client:
try:
client_tools =await self.client.list_tools()
client_tools = await self.client.list_tools()
except McpError as e:
if e.error.code == METHOD_NOT_FOUND:
client_tools = []