chore: update deps & config

This commit is contained in:
Sun-ZhenXing
2025-06-30 10:47:00 +08:00
parent b53f744aa7
commit 7d9b5e0679
6 changed files with 194 additions and 56 deletions

View File

@@ -19,6 +19,12 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan)
@app.get("/")
async def root():
return {"message": "Welcome to the MCP Template Python Server!"}
for name, mcp in MCP_MAP.items():
app.mount(f"/{name}/compatible", mcp.sse_app())
app.mount(f"/{name}", mcp.streamable_http_app())