Kaballas commited on
Commit
5e15700
·
1 Parent(s): c613728
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -1,16 +1,11 @@
1
  from fastapi import FastAPI
2
- import fastmcp, inspect
3
- print(fastmcp.__version__)
4
- print(dir(fastmcp)[:20]) # see what is really exported
5
-
6
 
7
  app = FastAPI()
8
 
9
- # Mount the existing FastMCP server so `/sse/` streams as before
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"}