dd
Browse files
app.py
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
-
from mcp_server_mariadb_vector.server import
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
-
|
|
|
7 |
app.mount("/sse", vector_app)
|
8 |
|
|
|
9 |
@app.get("/", tags=["health"])
|
10 |
async def root():
|
11 |
return {"status": "ok"}
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
from mcp_server_mariadb_vector.server import mcp
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
+
# Mount the FastMCP SSE app at /sse
|
7 |
+
vector_app = mcp.sse_app()
|
8 |
app.mount("/sse", vector_app)
|
9 |
|
10 |
+
# Health endpoint
|
11 |
@app.get("/", tags=["health"])
|
12 |
async def root():
|
13 |
return {"status": "ok"}
|