Remove redundant MCP server code and clean up commented code
The backend had a redundant MCP server implementation that was commented out and not being used. The standalone MCP server in /mcp-server/ is already functional and provides complete MCP integration. Changes: - Removed commented MCP server import and initialization code from main.py - Deleted redundant /backend/app/mcp/distributed_mcp_server.py - Cleaned up unused imports and code paths Benefits: - Eliminates code duplication and maintenance burden - Removes confusion about which MCP server to use - Simplifies backend codebase - Standalone MCP server in /mcp-server/ provides full functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,6 @@ import socketio
|
||||
from .core.unified_coordinator import UnifiedCoordinator
|
||||
from .core.database import engine, get_db, init_database_with_retry, test_database_connection
|
||||
from .api import agents, workflows, executions, monitoring, projects, tasks, cluster, distributed_workflows, cli_agents, auth
|
||||
# from .mcp.distributed_mcp_server import get_mcp_server
|
||||
from .models.user import Base
|
||||
from .models import agent, project # Import the new agent and project models
|
||||
|
||||
@@ -45,10 +44,6 @@ async def lifespan(app: FastAPI):
|
||||
print("🤖 Initializing Unified Coordinator...")
|
||||
await unified_coordinator.start()
|
||||
|
||||
# Initialize MCP server
|
||||
# print("🔌 Initializing MCP server...")
|
||||
# mcp_server = get_mcp_server()
|
||||
# await mcp_server.initialize(distributed_coordinator)
|
||||
|
||||
startup_success = True
|
||||
print("✅ Hive Orchestrator with Unified Coordinator started successfully!")
|
||||
|
||||
Reference in New Issue
Block a user