Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Update src/fastmcp/server/proxy.py

yihuang4bb3503b63cb
diff --git a/src/fastmcp/server/proxy.py b/src/fastmcp/server/proxy.py
index 99708b654..39bbc5435 100644
--- a/src/fastmcp/server/proxy.py
+++ b/src/fastmcp/server/proxy.py
@@ -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 = []