refactor: remove all MCP code from codebase#359
Merged
santoshkumarradha merged 3 commits intomainfrom Apr 7, 2026
Merged
Conversation
MCP UI was already removed in the latest main revamp. This cleans up all remaining MCP backend code, endpoints, CLI commands, SDK integrations, types, tests, and documentation across the entire codebase. Removed: - control-plane/internal/mcp/ (manager, discovery, protocol client, etc.) - control-plane/internal/cli/mcp.go + mcp/ stubs (CLI commands) - control-plane/internal/handlers/ui/mcp.go (HTTP handlers) - control-plane/internal/core/domain/mcp_health.go (domain models) - MCP routes from server.go (/mcp/health, /mcp/status, etc.) - MCP methods from AgentClient interface + HTTP implementation - MCPStatusInfo from types, AgentStatus, heartbeat processing - MCP health tracking from HealthMonitor and StatusManager - MCP event types from node events - sdk/python: mcp_manager, mcp_client, mcp_stdio_bridge, agent_mcp, dynamic_skills, and all MCP test files - sdk/typescript: src/mcp/, types/mcp.ts, and MCP test files - web/client: src/mcp/, components/mcp/, mcpUtils.ts, and all MCP references in pages/components/hooks/types - MCP knowledgebase article, config models, benchmark references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Performance
⚠ Regression detected:
|
- Remove unused `AgentNodeDetailsForUI` import in api.ts (TS6196) - Remove unused `asdict` import in test_types.py (F401) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
santoshkumarradha
approved these changes
Apr 7, 2026
Member
|
Longoverdue ! |
This was referenced Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.go,.py,.ts,.tsx,.yaml,.yml,.json, or.tomlfileWhat was removed
Control Plane (Go):
internal/mcp/- entire MCP package (manager, discovery, protocol client, stdio client, skill generator, etc.)internal/cli/mcp.go+internal/cli/mcp/- all MCP CLI commands (status, start, stop, restart, logs, remove, discover, skills, migrate)internal/cli/add.go- MCP-only add commandinternal/handlers/ui/mcp.go- all 6 MCP HTTP endpointsinternal/core/domain/mcp_health.go- MCP domain modelsserver.goAgentClientinterface andHTTPAgentClientimplementationMCPStatusInfofrom types,AgentStatus, heartbeat processingHealthMonitorandStatusManagerPython SDK:
mcp_manager.py,mcp_client.py,mcp_stdio_bridge.py,agent_mcp.py,dynamic_skills.pypyproject.tomlcreate_input_schema_from_mcp_tooltocreate_input_schema_from_toolTypeScript SDK:
src/mcp/directory (MCPClient, MCPClientRegistry, MCPToolRegistrar)src/types/mcp.tsand MCP types fromagent.tsWeb Client:
src/mcp/,src/components/mcp/,src/utils/mcpUtils.tsTest plan
go build ./...passes cleanlygo vet ./...passes cleanlyTestRunAgent_Successtimeout is unrelated to this change)tsc --noEmitpasses cleanlytsc --noEmitpasses cleanlyimport agentfieldsucceeds🤖 Generated with Claude Code