# Run the setup wizard with MCP configuration
code-audit setup
# Or configure all Claude environments automatically
code-audit setup --auto# Show MCP configuration status
code-audit mcp status
# Configure MCP servers interactively
code-audit mcp configure
# Configure specific environment
code-audit mcp configure --environment desktop
code-audit mcp configure --environment code-global
code-audit mcp configure --environment project# After Claude reset, run the restore script:
./scripts/setup-mcp-claude.sh
# Or if installed globally:
/path/to/code-audit-mcp/scripts/setup-mcp-claude.sh"code-audit": {
"command": "/Users/warrengates/Documents/code/code-audit-mcp/bin/code-audit.js",
"args": ["start", "--stdio"],
"env": {}
}"sequential-thinking": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
}"kb-mcp": {
"command": "npx",
"args": ["kb", "serve"]
}- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Global:
~/.config/claude/mcp-settings.json - Project:
.claude/mcp-settings.jsonor.mcp.json
- Ensure Claude Desktop/Code is completely closed
- Run
code-audit mcp statusto check configuration - Run
code-audit mcp configureto reconfigure - Start Claude fresh
# Check status
code-audit mcp status
# Manual verification for Claude Desktop (macOS)
cat "$HOME/Library/Application Support/Claude/claude_desktop_config.json" | jq .
# Manual verification for Claude Code
cat "$HOME/.config/claude/mcp-settings.json" | jq .# Backup all MCP configurations
code-audit mcp backup
# Restore from backup
code-audit mcp restore --restore mcp-backup-2024-01-01.jsoncode-audit mcp status- Show current configuration statuscode-audit mcp configure- Configure MCP serverscode-audit mcp remove- Remove MCP server configurationcode-audit mcp backup- Backup current configurationscode-audit mcp restore- Restore from backup
--environment <env>- Target specific environment (desktop, code-global, project)--force- Skip confirmation prompts--restore <file>- Specify backup file for restore
Edit the appropriate configuration file and add your new server to the mcpServers object:
"your-server-name": {
"command": "path/to/command",
"args": ["arg1", "arg2"],
"env": {
"ENV_VAR": "value"
}
}