Summary
Extend MCP Node to detect MCP server configurations from multiple AI coding tools (Copilot, Codex), similar to the Skills detection implemented in #508.
Background
Currently, MCP Node only reads MCP server configurations from Claude Code paths:
<workspace>/.mcp.json (project)
~/.mcp.json (user)
~/.claude.json (legacy)
According to AI Coding Tools Configuration Reference, other AI tools also have MCP configurations:
| Tool |
Project Path |
User/Global Path |
Format |
| Claude Code |
./.mcp.json |
~/.claude.json |
JSON (mcpServers key) |
| VSCode Copilot |
./.vscode/mcp.json |
VS Code profile |
JSON (servers key) |
| Copilot CLI |
./.copilot/mcp-config.json |
~/.copilot/mcp-config.json |
JSON (mcpServers key) |
| Codex CLI |
- |
~/.codex/config.toml |
TOML (mcp_servers.*) |
Proposed Changes
1. Backend: Extend MCP Config Reader
File: src/extension/services/mcp-config-reader.ts
- Add reading from Copilot paths:
./.vscode/mcp.json (project, servers key)
~/.copilot/mcp-config.json (user)
- Add reading from Codex path:
~/.codex/config.toml (user, TOML format)
- Add
source field to McpServerConfig ('claude' | 'copilot' | 'codex')
- Normalize different key names (
servers → mcpServers)
2. Frontend: Grouped UI with Jump Navigation
File: src/webview/src/components/dialogs/McpNodeDialog.tsx (or related MCP UI)
Similar to SkillBrowserDialog (#508):
- Group MCP servers by source (Claude Code / Copilot / Codex)
- Add jump navigation buttons when multiple sources exist
- Display section headers with
AIProviderBadge
3. Type Updates
File: src/shared/types/mcp-node.ts
interface McpServerReference {
// ... existing fields
source?: 'claude' | 'copilot' | 'codex';
}
Implementation Notes
JSON Key Differences
// Claude Code / Copilot CLI
{ "mcpServers": { ... } }
// VSCode Copilot
{ "servers": { ... } }
Codex TOML Format
[mcp_servers.server-name]
enabled = true
command = "npx"
args = ["-y", "package-name"]
Will need a TOML parser (e.g., @iarna/toml or smol-toml).
Acceptance Criteria
Related
Summary
Extend MCP Node to detect MCP server configurations from multiple AI coding tools (Copilot, Codex), similar to the Skills detection implemented in #508.
Background
Currently, MCP Node only reads MCP server configurations from Claude Code paths:
<workspace>/.mcp.json(project)~/.mcp.json(user)~/.claude.json(legacy)According to AI Coding Tools Configuration Reference, other AI tools also have MCP configurations:
./.mcp.json~/.claude.jsonmcpServerskey)./.vscode/mcp.jsonserverskey)./.copilot/mcp-config.json~/.copilot/mcp-config.jsonmcpServerskey)~/.codex/config.tomlmcp_servers.*)Proposed Changes
1. Backend: Extend MCP Config Reader
File:
src/extension/services/mcp-config-reader.ts./.vscode/mcp.json(project,serverskey)~/.copilot/mcp-config.json(user)~/.codex/config.toml(user, TOML format)sourcefield toMcpServerConfig('claude' | 'copilot' | 'codex')servers→mcpServers)2. Frontend: Grouped UI with Jump Navigation
File:
src/webview/src/components/dialogs/McpNodeDialog.tsx(or related MCP UI)Similar to SkillBrowserDialog (#508):
AIProviderBadge3. Type Updates
File:
src/shared/types/mcp-node.tsImplementation Notes
JSON Key Differences
Codex TOML Format
Will need a TOML parser (e.g.,
@iarna/tomlorsmol-toml).Acceptance Criteria
sourcefieldsourcetreated asclaude)Related