mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 03:00:23 +00:00
4e0d8da060
Problem: - GET /api/mcp/servers returned 404 error - MCP servers management UI could not load server list - Root cause: route was placed outside handle_get(), in unreachable code Root Cause: - The MCP servers GET route was incorrectly placed after handle_get() returned False (404) - handle_get() function returns False at line ~1224, so any code after it won't execute - The route was also in handle_post() area but without proper method checking Solution: - Moved GET /api/mcp/servers route inside handle_get() before the return False statement - Removed the misplaced route from the old location (originally around line 1636) - Also updated /api/profiles response format to include full profiles list Testing: - After restart: curl http://localhost:8787/api/mcp/servers returns {"servers": []} - No more 404 errors - WebUI can now properly load MCP servers list