fix: dispatch_mcp.py missing mcp.run() entry point

The FastMCP server never started listening on stdio because the file was
missing 'if __name__ == "__main__": mcp.run(transport="stdio")'. The
LiveKit agent's MCP client got 'Connection closed' during initialize,
which killed the entire toolset setup — ALL tools (weather, memory,
skills, dispatch) were unavailable. This is why Hope could hear you but
never called any tools.
This commit is contained in:
Shane
2026-08-22 19:53:27 -04:00
parent d08a4e1fcb
commit 98168f2876
2 changed files with 156 additions and 0 deletions
+4
View File
@@ -56,3 +56,7 @@ async def _run_worker(worker: "TaskWorker", task_id: str):
except Exception as e:
logger.exception("Task %s crashed: %s", task_id, e)
registry.fail(task_id, str(e))
if __name__ == "__main__":
mcp.run(transport="stdio")