๐ 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โ
| Client | Config File | Command | Best For |
|---|---|---|---|
| Claude Desktop | claude_desktop_config.json | npx -y mcp-adr-analysis-server | General use, best AI integration |
| Cline | cline_mcp_settings.json | npx -y mcp-adr-analysis-server | VS Code development |
| Cursor | .cursor/mcp.json | npx -y mcp-adr-analysis-server | AI-powered coding |
| Gemini | gemini_mcp_config.json | npx -y mcp-adr-analysis-server | Google AI integration |
| Windsurf | mcp_config.json | npx -y mcp-adr-analysis-server | Professional development |
| Continue.dev | config.json | npx -y mcp-adr-analysis-server | VS Code AI extension |
| Aider | .aider_config.yaml | mcp-adr-analysis-server | Command-line AI coding |
๐ฅ๏ธ Claude Desktop (Recommended)โ
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:
-
"Server not found"
# Verify Node.js is installednode --versionnpx --version -
"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โ
- Use workspace variables:
${workspaceFolder}for PROJECT_PATH - npx command: Ensures latest version without global install
- 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โ
- Relative paths: Use
"."for PROJECT_PATH in Cursor - Version in .gitignore: Add
.cursor/to.gitignoreif it contains secrets - Team sharing: Commit
.cursor/mcp.jsonfor 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โ
- Workspace Integration: Use
${workspaceFolder}for seamless VS Code integration - 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โ
- YAML Format: Use proper YAML indentation and syntax
- Absolute Paths: Always use absolute paths for PROJECT_PATH
- 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โ
| Issue | Symptom | Solution |
|---|---|---|
| Server not found | "Unknown tool" errors | Ensure Node.js โฅ20.0.0 is installed: node --version |
| Permission denied | File access errors | Use absolute paths, check permissions |
| Slow performance | Long response times | Enable 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"
}
}
๐ Related Documentationโ
- Environment Configuration - Complete environment variable reference
- Troubleshooting - Common issues and solutions
- API Reference - Complete tool documentation
- Security Guide - Security configuration
Configuration not working? โ Troubleshooting Guide or File an Issue