Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
from fastapi import FastAPI
|
|
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
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()
|