Successfully consolidated all MCP server functionality into unified MCPServer

- Combined external server management from MCPServerManager (stdio/http support)
- Integrated session tracking and heartbeat from EnhancedMCPServer
- Added auto-registration and unified interface from UnifiedMCPServer
- Fixed HTTP server support to prevent crashes on mcp_figma config
- All 15+ agent coordination tools now properly registered and working
- External servers (context7, filesystem, memory, sequentialthinking) starting correctly
- HTTP servers handled gracefully with proper fallback logging
- Application.ex updated to start only consolidated MCPServer
- Ready to remove duplicate files after verification
This commit is contained in:
Ra
2025-09-03 00:19:39 -07:00
parent 074c4473ca
commit ea3c390257
4 changed files with 625 additions and 41 deletions

View File

@@ -28,10 +28,10 @@ exec mix run --no-halt -e "
# MCPServerManager is now started by the application supervisor automatically
case AgentCoordinator.UnifiedMCPServer.start_link() do
case AgentCoordinator.MCPServer.start_link() do
{:ok, _} -> :ok
{:error, {:already_started, _}} -> :ok
{:error, reason} -> raise \"Failed to start UnifiedMCPServer: #{inspect(reason)}\"
{:error, reason} -> raise \"Failed to start MCPServer: #{inspect(reason)}\"
end
# Log that we're ready
@@ -64,7 +64,7 @@ defmodule UnifiedMCPStdio do
request = Jason.decode!(json_line)
# Route through unified MCP server for automatic task tracking
response = AgentCoordinator.UnifiedMCPServer.handle_mcp_request(request)
response = AgentCoordinator.MCPServer.handle_mcp_request(request)
IO.puts(Jason.encode!(response))
rescue
e in Jason.DecodeError ->