feat: any code

This commit is contained in:
junjun
2025-06-09 16:36:49 +08:00
parent dbb721d550
commit af6a32ee4d
3 changed files with 1 additions and 13 deletions
+1 -3
View File
@@ -20,9 +20,7 @@ wlist = [
"*.woff2",
"*.ttf",
"*.eot",
"*.otf",
"/mcp",
"/mcp/message"
"*.otf"
]
class WhitelistChecker:
-9
View File
@@ -14,7 +14,6 @@ from common.core.config import settings
from common.core.response_middleware import ResponseMiddleware, exception_handler
from alembic.config import Config
from alembic import command
from fastapi_mcp import FastApiMCP
def run_migrations():
alembic_cfg = Config("alembic.ini")
@@ -39,14 +38,6 @@ app = FastAPI(
lifespan=lifespan
)
mcp = FastApiMCP(
app,
name="My API MCP",
description="My API description",
)
mcp.mount()
# Set all CORS enabled origins
if settings.all_cors_origins:
app.add_middleware(
-1
View File
@@ -34,7 +34,6 @@ dependencies = [
"psycopg2-binary (>=2.9.10,<3.0.0)",
"oracledb (>=3.1.1,<4.0.0)",
"pyyaml (>=6.0.2,<7.0.0)",
"fastapi-mcp (>=0.3.4,<0.4.0)",
]
[[tool.uv.index]]
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"