Skip to main content

๐Ÿ”Œ MCP Client Configuration Reference

Complete guide to configuring MCP ADR Analysis Server with different MCP clients.

CE-MCP mode (the default) requires no API key. Your host LLM executes analysis via orchestration directives returned by the 63 tools. All configurations below use CE-MCP mode unless noted otherwise.


๐Ÿ“‹ Quick Setup Matrixโ€‹

ClientConfig FileCommandBest For
Claude Desktopclaude_desktop_config.jsonnpx -y mcp-adr-analysis-serverGeneral use, best AI integration
Clinecline_mcp_settings.jsonnpx -y mcp-adr-analysis-serverVS Code development
Cursor.cursor/mcp.jsonnpx -y mcp-adr-analysis-serverAI-powered coding
Geminigemini_mcp_config.jsonnpx -y mcp-adr-analysis-serverGoogle AI integration
Windsurfmcp_config.jsonnpx -y mcp-adr-analysis-serverProfessional development
Continue.devconfig.jsonnpx -y mcp-adr-analysis-serverVS Code AI extension
Aider.aider_config.yamlmcp-adr-analysis-serverCommand-line AI coding

Configuration Locationโ€‹

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json

Basic Configurationโ€‹

{
"mcpServers": {
"adr-analysis": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "/absolute/path/to/your/project"
}
}
}
}

That's it โ€” CE-MCP mode is the default, so no API key or execution mode setting is needed.

Multi-Project Setupโ€‹

{
"mcpServers": {
"adr-frontend": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "/Users/username/frontend-project",
"ADR_DIRECTORY": "./adrs"
}
},
"adr-backend": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "/Users/username/backend-project",
"ADR_DIRECTORY": "architecture/decisions"
}
}
}
}

Troubleshooting Claude Desktopโ€‹

Common Issues:

  1. "Server not found"

    # Verify Node.js is installed
    node --version
    npx --version
  2. "Permission denied"

    {
    "env": {
    "PROJECT_PATH": "/absolute/path/not/relative"
    }
    }

๐Ÿ”ง Cline (VS Code Extension)โ€‹

Configuration Locationโ€‹

File: cline_mcp_settings.json (in workspace or global settings)

Basic Configurationโ€‹

{
"mcpServers": {
"mcp-adr-analysis-server": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "${workspaceFolder}"
}
}
}
}

Workspace-Specific Configurationโ€‹

Create .vscode/cline_mcp_settings.json:

{
"mcpServers": {
"project-adr-analysis": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "${workspaceFolder}",
"ADR_DIRECTORY": "architecture/adrs",
"LOG_LEVEL": "INFO"
}
}
}
}

Cline Best Practicesโ€‹

  1. Use workspace variables: ${workspaceFolder} for PROJECT_PATH
  2. npx command: Ensures latest version without global install
  3. DEBUG logging: Helpful during development

๐ŸŽฏ Cursorโ€‹

Configuration Locationโ€‹

File: .cursor/mcp.json (in project root)

Basic Configurationโ€‹

{
"mcpServers": {
"adr-analysis": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "."
}
}
}
}

Team Configurationโ€‹

{
"mcpServers": {
"adr-analysis": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": ".",
"ADR_DIRECTORY": "./architecture/decisions",
"LOG_LEVEL": "WARN",
"ENABLE_CONTENT_MASKING": "true",
"MASKING_LEVEL": "strict"
}
}
}
}

Cursor Tipsโ€‹

  1. Relative paths: Use "." for PROJECT_PATH in Cursor
  2. Version in .gitignore: Add .cursor/ to .gitignore if it contains secrets
  3. Team sharing: Commit .cursor/mcp.json for team-wide configuration

๐Ÿค– Gemini (Google AI)โ€‹

Configuration Locationโ€‹

File: gemini_mcp_config.json (in project root or user config directory)

Basic Configurationโ€‹

{
"mcpServers": {
"adr-analysis": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "/absolute/path/to/project"
}
}
}
}

๐Ÿ”„ Continue.dev (VS Code Extension)โ€‹

Configuration Locationโ€‹

File: config.json (in .continue directory)

Basic Configurationโ€‹

{
"mcpServers": [
{
"name": "adr-analysis",
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "${workspaceFolder}"
}
}
]
}

Continue.dev Best Practicesโ€‹

  1. Workspace Integration: Use ${workspaceFolder} for seamless VS Code integration
  2. Environment Variables: Leverage VS Code's environment variable support

๐Ÿ› ๏ธ Aider (Command Line)โ€‹

Configuration Locationโ€‹

File: .aider_config.yaml (in project root or home directory)

Basic Configurationโ€‹

mcp_servers:
- name: adr-analysis
command: mcp-adr-analysis-server
env:
PROJECT_PATH: '/absolute/path/to/project'

Advanced Aider Configurationโ€‹

mcp_servers:
- name: adr-analysis
command: mcp-adr-analysis-server
env:
PROJECT_PATH: '/Users/username/project'
ADR_DIRECTORY: './architecture/decisions'
LOG_LEVEL: 'DEBUG'
ENABLE_CONTENT_MASKING: 'true'
MASKING_LEVEL: 'strict'

Aider Best Practicesโ€‹

  1. YAML Format: Use proper YAML indentation and syntax
  2. Absolute Paths: Always use absolute paths for PROJECT_PATH
  3. Security: Enable content masking for sensitive projects

๐ŸŒŠ Windsurfโ€‹

Configuration Locationโ€‹

File: ~/.codeium/windsurf/mcp_config.json

Basic Configurationโ€‹

{
"mcpServers": {
"adr-analysis": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "/absolute/path/to/your/project"
}
}
}
}

Enterprise Configurationโ€‹

{
"mcpServers": {
"enterprise-adr": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "/enterprise/project/path",
"ADR_DIRECTORY": "architecture/decisions",
"LOG_LEVEL": "WARN",
"ENABLE_CONTENT_MASKING": "true",
"MASKING_LEVEL": "strict"
}
}
}
}

๐Ÿ”ง Custom MCP Clientโ€‹

import { Client } from '@modelcontextprotocol/sdk/client/index.js';

const client = new Client({
name: 'adr-analysis-client',
version: '1.0.0'
});

await client.connect({
command: 'npx',
args: ['-y', 'mcp-adr-analysis-server'],
env: {
PROJECT_PATH: '/path/to/project'
}
});

๐Ÿ”’ Legacy Full Mode Configurationโ€‹

If you need server-side AI execution instead of CE-MCP, add EXECUTION_MODE and OPENROUTER_API_KEY:

{
"mcpServers": {
"adr-analysis": {
"command": "npx",
"args": ["-y", "mcp-adr-analysis-server"],
"env": {
"PROJECT_PATH": "/path/to/project",
"EXECUTION_MODE": "full",
"OPENROUTER_API_KEY": "${OPENROUTER_API_KEY}"
}
}
}
}

Note: CE-MCP mode (the default) is recommended for most users. It produces better results because your host LLM already has your conversation context and requires no additional API key.


๐Ÿšจ General Troubleshootingโ€‹

Test Server Installationโ€‹

# Test with npx (no install needed)
npx -y mcp-adr-analysis-server --version

# Test global installation
mcp-adr-analysis-server --version

Common Issuesโ€‹

IssueSymptomSolution
Server not found"Unknown tool" errorsEnsure Node.js โ‰ฅ20.0.0 is installed: node --version
Permission deniedFile access errorsUse absolute paths, check permissions
Slow performanceLong response timesEnable caching: AI_CACHE_ENABLED=true

Debug Configurationโ€‹

Add these env vars temporarily to diagnose issues:

{
"env": {
"LOG_LEVEL": "DEBUG"
}
}

๐Ÿ”’ Security Best Practicesโ€‹

File Permissionsโ€‹

# Secure config file permissions
chmod 600 ~/.config/Claude/claude_desktop_config.json
chmod 600 .cursor/mcp.json

Content Maskingโ€‹

For sensitive projects, enable content masking:

{
"env": {
"ENABLE_CONTENT_MASKING": "true",
"MASKING_LEVEL": "strict"
}
}


Configuration not working? โ†’ Troubleshooting Guide or File an Issue