Implementation: How to properly integrate MCP servers with Claude Code exten...

Documentation for Sessions

⚙️ Implementation: How to properly integrate MCP servers with Claude Code exten...

📋 Decision Context

Question:

How to properly integrate MCP servers with Claude Code extension in VS Code/Cursor?

Task: Enable mcp-gograb-ai in Claude Code extension while preserving Cursor's native MCP integration


🎯 Decision Made

Chosen:

Use Claude CLI command claude mcp add --transport stdio --scope project to register the MCP server, not just create a config file

Options Considered:

  1. Create workspace-local .claude/mcp.json only
  2. Use Claude CLI to register MCP server
  3. Configure via VS Code settings.json
  4. Use --mcp-config flag when starting Claude
  5. Wait for native extension support

💭 Reasoning

Claude Code extension documentation explicitly states: 'MCP features can only be configured using the command-line interface'. Creating .claude/mcp.json alone is insufficient. The extension requires CLI registration using claude mcp add command. This is confirmed by testing - the config file alone showed no servers, but after running the CLI command, mcp-gograb-ai appeared as 'connected' in the Manage MCP Servers dialog. The --scope project flag ensures workspace-local configuration, and --transport stdio uses the standard input/output communication method that our MCP server expects.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation