Skip to content

Commit a270998

Browse files
committed
feat: Add root_path configuration for server
1 parent e33cd41 commit a270998

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class Settings(BaseSettings, Generic[LifespanResultT]):
8989
# HTTP settings
9090
host: str = "0.0.0.0"
9191
port: int = 8000
92+
root_path: str = "/" # root path, same with root_path in uvicorn config, for sse or streamable http
9293
mount_path: str = "/" # Mount path (e.g. "/github", defaults to root path)
9394
sse_path: str = "/sse"
9495
message_path: str = "/messages/"

0 commit comments

Comments
 (0)