-
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
j0KZ edited this page Oct 2, 2025
·
1 revision
Complete configuration guide for all MCP-compatible editors.
MCP Agents can be configured in two ways:
- Global installation - Install once, use in all projects
- Project-level - Install per project (recommended for teams)
Location: Settings β MCP Servers
Method 1: Using GUI
- Open Settings:
Ctrl+,
(Windows/Linux) orCmd+,
(Mac) - Search for "MCP"
- Click "Edit in settings.json"
Method 2: Direct File Edit
File location:
-
Windows:
%APPDATA%\Claude Code\User\settings.json
-
macOS:
~/Library/Application Support/Claude Code/User/settings.json
-
Linux:
~/.config/claude-code/settings.json
Configuration:
{
"mcpServers": {
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"]
},
"test-generator": {
"command": "npx",
"args": ["-y", "@j0kz/test-generator-mcp"]
},
"architecture-analyzer": {
"command": "npx",
"args": ["-y", "@j0kz/architecture-analyzer-mcp"]
},
"security-scanner": {
"command": "npx",
"args": ["-y", "@j0kz/security-scanner-mcp"]
},
"api-designer": {
"command": "npx",
"args": ["-y", "@j0kz/api-designer-mcp"]
},
"db-schema": {
"command": "npx",
"args": ["-y", "@j0kz/db-schema-mcp"]
},
"doc-generator": {
"command": "npx",
"args": ["-y", "@j0kz/doc-generator-mcp"]
},
"refactor-assistant": {
"command": "npx",
"args": ["-y", "@j0kz/refactor-assistant-mcp"]
}
}
}
Location: Settings β MCP Configuration
File location:
-
Windows:
%APPDATA%\Cursor\User\settings.json
-
macOS:
~/Library/Application Support/Cursor/User/settings.json
-
Linux:
~/.config/cursor/settings.json
Configuration (same as Claude Code):
{
"mcpServers": {
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"]
}
}
}
Location: Project root .windsurf/mcp_config.json
{
"servers": {
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"]
},
"test-generator": {
"command": "npx",
"args": ["-y", "@j0kz/test-generator-mcp"]
}
}
}
Location: .roo/mcp.json
in project root
{
"mcpServers": {
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"]
}
}
}
Pros:
- No installation needed
- Always uses latest version
- No PATH issues
- Works on all platforms
Cons:
- Slower first run
- Requires internet
Configuration:
{
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"]
}
Pros:
- Faster startup
- Works offline
- Specific version control
Cons:
- Need to install manually
- PATH configuration required
- Manual updates needed
Installation:
npm install -g @j0kz/smart-reviewer-mcp
Configuration:
{
"command": "smart-reviewer-mcp",
"args": []
}
Pros:
- Version locked per project
- Team consistency
- No global pollution
Cons:
- Larger node_modules
- Duplicate installations
Installation:
npm install --save-dev @j0kz/smart-reviewer-mcp
Configuration:
{
"command": "npx",
"args": ["@j0kz/smart-reviewer-mcp"]
}
{
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"],
"env": {
"NODE_ENV": "production",
"LOG_LEVEL": "debug"
}
}
}
For large projects:
{
"smart-reviewer": {
"command": "node",
"args": [
"--max-old-space-size=4096",
"node_modules/@j0kz/smart-reviewer-mcp/dist/mcp-server.js"
]
}
}
{
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"],
"timeout": 60000
}
}
{
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"],
"config": {
"severity": "strict",
"autoFix": false,
"excludePatterns": ["*.test.ts", "*.spec.ts"]
}
}
}
{
"architecture-analyzer": {
"command": "npx",
"args": ["-y", "@j0kz/architecture-analyzer-mcp"],
"config": {
"detectCircular": true,
"generateGraph": true,
"maxDepth": 10
}
}
}
{
"security-scanner": {
"command": "npx",
"args": ["-y", "@j0kz/security-scanner-mcp"],
"config": {
"minSeverity": "medium",
"scanSecrets": true,
"scanDependencies": true
}
}
}
Windows PowerShell:
$env:MCP_LOG_LEVEL = "debug"
macOS/Linux:
export MCP_LOG_LEVEL=debug
Variable | Values | Description |
---|---|---|
MCP_LOG_LEVEL |
error , warn , info , debug
|
Logging verbosity |
MCP_CACHE_DIR |
Path | Cache directory location |
MCP_TIMEOUT |
Milliseconds | Default operation timeout |
NODE_ENV |
production , development
|
Environment mode |
Create in project root:
{
"excludePatterns": [
"node_modules/**",
"dist/**",
"build/**",
"coverage/**"
],
"severity": "moderate",
"autoFix": false,
"cache": true
}
{
"mcp": {
"reviewRules": {
"complexity": 15,
"maintainability": 70
},
"excludePatterns": ["*.test.ts"]
}
}
Development (.mcp.dev.json
):
{
"severity": "lenient",
"autoFix": true,
"verbose": true
}
Production (.mcp.prod.json
):
{
"severity": "strict",
"autoFix": false,
"failOnError": true
}
Commit .mcprc.json
to git:
{
"version": "1.0.0",
"extends": "@company/mcp-config",
"rules": {
"no-console": "error",
"max-complexity": 10
}
}
# Validate JSON syntax
cat settings.json | jq .
# Check MCP is configured
grep -r "mcpServers" ~/.config/claude-code/
# Test MCP directly
npx @j0kz/smart-reviewer-mcp --help
β Trailing commas:
{
"mcpServers": {
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"], // Remove this comma
}
}
}
β Wrong command path:
{
"command": "smart-reviewer" // Missing -mcp suffix
}
β Missing quotes:
{
"command": npx // Should be "npx"
}
Run this script to auto-configure:
#!/bin/bash
# setup-mcp.sh
EDITOR=$1
if [ "$EDITOR" = "claude-code" ]; then
CONFIG_PATH="$HOME/.config/claude-code/settings.json"
elif [ "$EDITOR" = "cursor" ]; then
CONFIG_PATH="$HOME/.config/cursor/settings.json"
else
echo "Usage: ./setup-mcp.sh [claude-code|cursor]"
exit 1
fi
# Backup existing config
cp "$CONFIG_PATH" "$CONFIG_PATH.backup"
# Add MCP configuration
jq '.mcpServers += {
"smart-reviewer": {
"command": "npx",
"args": ["-y", "@j0kz/smart-reviewer-mcp"]
}
}' "$CONFIG_PATH" > "$CONFIG_PATH.tmp"
mv "$CONFIG_PATH.tmp" "$CONFIG_PATH"
echo "β
MCP configured for $EDITOR"
echo "Restart your editor to activate"
- Quick Start - Get started in 5 minutes
- Troubleshooting - Fix configuration issues
- Integration Patterns - Advanced usage