kabudadada commited on
Commit
ac1724f
·
1 Parent(s): 0c1bb46

feat: add root path handler for health check

Browse files
esm/mcp_output/mcp_plugin/mcp_service.py CHANGED
@@ -260,4 +260,9 @@ def create_app():
260
  Returns:
261
  FastMCP: MCP service instance.
262
  """
 
 
 
 
 
263
  return mcp
 
260
  Returns:
261
  FastMCP: MCP service instance.
262
  """
263
+ # Add root path handler for health check
264
+ @mcp.app.get("/")
265
+ async def root():
266
+ return {"status": "ok", "service": "Code2MCP-esm", "transport": "http"}
267
+
268
  return mcp