feat: use click

This commit is contained in:
Sun-ZhenXing
2025-09-18 11:13:23 +08:00
parent dc8d7bb12d
commit 177d797ad2
7 changed files with 102 additions and 100 deletions

View File

@@ -1,6 +1,6 @@
import contextlib
from fastapi import FastAPI
from fastapi import FastAPI, Response
from .__about__ import __version__
from .app import MCP_MAP
@@ -27,10 +27,7 @@ app = FastAPI(
@app.get("/")
async def root():
"""Root endpoint."""
return {
"message": "Welcome!",
"tools": list(MCP_MAP.keys()),
}
return Response("<script>location.href='/docs'</script>")
@app.get("/health")