Kaballas commited on
Commit
bf03758
·
1 Parent(s): a68009f
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,10 +2,11 @@ from fastapi import FastAPI
2
  from fastapi.routing import APIRoute
3
  from mcp_server_mariadb_vector.server import mcp
4
 
 
5
  app = FastAPI()
6
 
7
- # Mount the FastMCP HTTP app
8
- app = mcp.http_app()
9
 
10
  # Health endpoint
11
  @app.get("/", tags=["health"])
 
2
  from fastapi.routing import APIRoute
3
  from mcp_server_mariadb_vector.server import mcp
4
 
5
+ # Create the main FastAPI app
6
  app = FastAPI()
7
 
8
+ # Mount the FastMCP HTTP app at /sse
9
+ app.mount("/sse", mcp.http_app())
10
 
11
  # Health endpoint
12
  @app.get("/", tags=["health"])