mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Use _ as default mount separator and make configurable
This commit is contained in:
parent
eea8fa0f1f
commit
e5843f9782
6 changed files with 48 additions and 38 deletions
|
|
@ -64,10 +64,11 @@ def check_app_status() -> dict[str, str]:
|
|||
|
||||
# Mount sub-applications
|
||||
app.mount("weather", weather_app)
|
||||
|
||||
app.mount("news", news_app)
|
||||
|
||||
|
||||
async def start_server():
|
||||
async def get_server_details():
|
||||
"""Print information about mounted resources."""
|
||||
# Print available tools
|
||||
tools = app._tool_manager.list_tools()
|
||||
|
|
@ -105,7 +106,7 @@ async def start_server():
|
|||
|
||||
if __name__ == "__main__":
|
||||
# First run our async function to display info
|
||||
asyncio.run(start_server())
|
||||
asyncio.run(get_server_details())
|
||||
|
||||
# Then start the server (uncomment to run the server)
|
||||
# app.run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue