Skip to content

Commit 258d948

Browse files
committed
Update dependencies for FastAPI and cryptography; refine MCPType usage in server configuration
1 parent 3c6d1a6 commit 258d948

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

fastmcp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"environment": {
88
"python": ">=3.10",
99
"dependencies": [
10+
"cryptography~=45.0.0",
11+
"fastapi>=0.115.0",
1012
"fastmcp>=2.12.4",
11-
"fastapi",
1213
"httpx>=0.28.1",
1314
"PyJWT>=2.10.1",
1415
"python-dotenv>=1.1.0",
1516
"pydantic>=2.11.4",
16-
"uvicorn>=0.30.0",
17-
"cryptography~=45.0.0"
17+
"uvicorn>=0.30.0"
1818
]
1919
},
2020
"deployment": {

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ authors = [
1515
]
1616
dependencies = [
1717
"cryptography~=45.0.0",
18+
"fastapi>=0.115.0,<1.0.0",
1819
"fastmcp>=2.12.4",
1920
"httpx>=0.28.1,<1.0.0",
2021
"PyJWT>=2.10.1,<3.0.0",

src/sandbox_api_mcp_server/server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from fastapi import FastAPI
88
from fastapi.middleware.cors import CORSMiddleware
99
from fastmcp import FastMCP
10-
from fastmcp.server.openapi import RouteMap
10+
from fastmcp.server.openapi import RouteMap, MCPType
1111
from uvicorn._types import ASGI3Application, ASGIReceiveCallable, ASGISendCallable, Scope
1212
from starlette.middleware.base import BaseHTTPMiddleware
1313
from .auth import fetch_jwks_public_key
@@ -112,7 +112,7 @@ def run():
112112
RouteMap(
113113
methods=["GET"],
114114
pattern=r".*/health$",
115-
mcp_type=None, # Exclude from MCP
115+
mcp_type=MCPType.EXCLUDE, # Exclude from MCP
116116
),
117117
# Map all other endpoints to tools (default behavior)
118118
]
@@ -122,7 +122,6 @@ def run():
122122
mcp = FastMCP.from_fastapi(
123123
app=app,
124124
name="Neo4j Sandbox API MCP Server",
125-
description="Neo4j Sandbox API MCP Server for managing Neo4j sandboxes.",
126125
route_maps=route_maps,
127126
)
128127

uv.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)