Implementation: How to enable MCP tools in Claude Code extension without bre...

Documentation for Sessions

⚙️ Implementation: How to enable MCP tools in Claude Code extension without bre...

📋 Decision Context

Question:

How to enable MCP tools in Claude Code extension without breaking Cursor's MCP integration?

Task: Setup mcp-gograb-ai for Claude Code CLI while preserving Cursor functionality


🎯 Decision Made

Chosen:

Create workspace-local .claude/mcp.json configuration separate from Cursor's global ~/.cursor/mcp.json

Options Considered:

  1. Wait for native Claude Code MCP support
  2. Use REST API endpoints instead of stdio
  3. Create workspace-local .claude/mcp.json configuration
  4. Share single config file between platforms

💭 Reasoning

Workspace-local configuration prevents conflicts with Cursor's global MCP setup. The MCP server uses stdio transport and can handle multiple clients simultaneously. Platform detection via environment variables (CLAUDE_CODE_AGENT) enables platform-specific behavior while maintaining shared learning. This approach is clean, maintainable, and follows VS Code extension patterns for workspace-specific configuration.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation