Skip to content

Commit af6a32e

Browse files
committed
feat: any code
1 parent dbb721d commit af6a32e

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

backend/common/utils/whitelist.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"*.woff2",
2121
"*.ttf",
2222
"*.eot",
23-
"*.otf",
24-
"/mcp",
25-
"/mcp/message"
23+
"*.otf"
2624
]
2725

2826
class WhitelistChecker:

backend/main.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from common.core.response_middleware import ResponseMiddleware, exception_handler
1515
from alembic.config import Config
1616
from alembic import command
17-
from fastapi_mcp import FastApiMCP
1817

1918
def run_migrations():
2019
alembic_cfg = Config("alembic.ini")
@@ -39,14 +38,6 @@ def custom_generate_unique_id(route: APIRoute) -> str:
3938
lifespan=lifespan
4039
)
4140

42-
mcp = FastApiMCP(
43-
app,
44-
name="My API MCP",
45-
description="My API description",
46-
)
47-
48-
mcp.mount()
49-
5041
# Set all CORS enabled origins
5142
if settings.all_cors_origins:
5243
app.add_middleware(

backend/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ dependencies = [
3434
"psycopg2-binary (>=2.9.10,<3.0.0)",
3535
"oracledb (>=3.1.1,<4.0.0)",
3636
"pyyaml (>=6.0.2,<7.0.0)",
37-
"fastapi-mcp (>=0.3.4,<0.4.0)",
3837
]
3938
[[tool.uv.index]]
4039
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"

0 commit comments

Comments
 (0)