Replies: 1 comment
-
Same for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've implemented a proxy server to act as an intermediary for connecting to multiple MCP servers via HTTP. My implementation uses FastMCP as the base class, and I successfully overrode the list_tools and call_tools methods while using earlier fastmcp versions.
The core logic involves retrieving a user's MCP configurations from MongoDB, instantiating them as MCPConfig objects, and then initializing Client objects to establish connections to these individual MCP servers. My application connects to this proxy server via a GoLang server, also utilizing an MCP
Client
object.The Problem:
Upon upgrading to fastmcp version 2.9.0 or higher (specifically for its concurrent request handling improvements), my custom list_tools and call_tools methods are no longer being invoked. I've confirmed that ListToolsRequest objects are being sent to my proxy server through middleware logging, but the overridden methods themselves are not being called. This indicates a change in how fastmcp handles method dispatch or overriding in its newer versions.
Potential Causes I'm Considering:
Method Overriding Changes: It's possible that direct method overriding is no longer the intended or supported mechanism for custom logic in fastmcp 2.9+. Perhaps custom logic now needs to be implemented within middleware, even though initial attempts to do so didn't work.
ProxyClient Usage: Is it necessary to use a ProxyClient when connecting from my GoLang application to my fastmcp-based proxy, or when the proxy itself connects to other MCP servers?
Beta Was this translation helpful? Give feedback.
All reactions