Wondering how to split big applications in several files #2049
majorgilles
started this conversation in
General
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Obviously it's not ideal to endup with a great deal of mcp functions in the same file but do you have examples on how to develop a large fastmcp implementation in severa files, with a single mcp = FastMCP() app.
I tried splitting my main.py file holding the mcp variable and the mcp.tool calls in several files importing the mcp in each file.
This approach worked for integration tests (using fastmcp's client) but failed when actually importing the tools in a client (no tools were registered).
Would using this be the way to go?:
Beta Was this translation helpful? Give feedback.
All reactions