Kaballas commited on
Commit
90467ca
·
verified ·
1 Parent(s): d45366b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,8 +1,9 @@
1
  from fastapi import FastAPI
 
2
 
3
  app = FastAPI()
4
 
5
- @app.get("/")
6
- def greet_json():
7
- return {"Hello": "World!"}
8
-
 
1
  from fastapi import FastAPI
2
+ from fastapi_mcp import FastApiMCP
3
 
4
  app = FastAPI()
5
 
6
+ mcp = FastApiMCP(app)
7
+
8
+ # Mount the MCP server directly to your FastAPI app
9
+ mcp.mount()