BruceWayne1 commited on
Commit
a97a070
·
1 Parent(s): 84c1478
Files changed (1) hide show
  1. mcp_server.py +2 -2
mcp_server.py CHANGED
@@ -396,8 +396,8 @@ def start_mcp_server():
396
  from starlette.responses import JSONResponse, PlainTextResponse, Response
397
  import uvicorn
398
 
399
- # Build root app
400
- root_app = FastAPI()
401
 
402
  @root_app.get("/")
403
  async def _root():
 
396
  from starlette.responses import JSONResponse, PlainTextResponse, Response
397
  import uvicorn
398
 
399
+ # Build root app with slash redirects disabled to avoid 307s on /mcp
400
+ root_app = FastAPI(redirect_slashes=False)
401
 
402
  @root_app.get("/")
403
  async def _root():