Use _ as default mount separator and make configurable

This commit is contained in:
Jeremiah Lowin 2025-04-12 21:30:14 -04:00
commit e5843f9782
6 changed files with 48 additions and 38 deletions

View file

@ -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()