app.py
CHANGED
@@ -1,16 +1,11 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
-
|
3 |
-
print(fastmcp.__version__)
|
4 |
-
print(dir(fastmcp)[:20]) # see what is really exported
|
5 |
-
|
6 |
|
7 |
app = FastAPI()
|
8 |
|
9 |
-
|
10 |
-
vector_app = create_server(transport="sse")
|
11 |
app.mount("/sse", vector_app)
|
12 |
|
13 |
-
# Simple root route – used by generic health-checkers and humans
|
14 |
@app.get("/", tags=["health"])
|
15 |
async def root():
|
16 |
return {"status": "ok"}
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
from fastmcp.server import create_server # corrected import
|
|
|
|
|
|
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
+
vector_app = create_server(transport="sse") # keep your flags
|
|
|
7 |
app.mount("/sse", vector_app)
|
8 |
|
|
|
9 |
@app.get("/", tags=["health"])
|
10 |
async def root():
|
11 |
return {"status": "ok"}
|