ccc
Browse files
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
|
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"])
|