Spaces:
Running
Running
kabudadada commited on
Commit ·
959e169
1
Parent(s): ac1724f
fix: correct FastMCP API usage for root path
Browse files
esm/mcp_output/mcp_plugin/mcp_service.py
CHANGED
|
@@ -261,7 +261,7 @@ def create_app():
|
|
| 261 |
FastMCP: MCP service instance.
|
| 262 |
"""
|
| 263 |
# Add root path handler for health check
|
| 264 |
-
@mcp.
|
| 265 |
async def root():
|
| 266 |
return {"status": "ok", "service": "Code2MCP-esm", "transport": "http"}
|
| 267 |
|
|
|
|
| 261 |
FastMCP: MCP service instance.
|
| 262 |
"""
|
| 263 |
# Add root path handler for health check
|
| 264 |
+
@mcp.get("/")
|
| 265 |
async def root():
|
| 266 |
return {"status": "ok", "service": "Code2MCP-esm", "transport": "http"}
|
| 267 |
|