# Multi-Platform Configuration Guide
Complete configuration examples for connecting the Magento Coding Standards MCP server to your AI tool.
## 1. Claude Code (CLI)
```bash
# Quick add (recommended)
claude mcp add magento-coding-standard -- node /path/to/magento-coding-standard-mcp/dist/index.js
```
## 2. Claude Desktop
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"magento-coding-standard": {
"command": "node",
"args": ["/path/to/magento-coding-standard-mcp/dist/index.js"]
}
}
}
```
## 3. Cursor IDE
**File**: `.cursor/mcp.json` (project root) or global settings
```json
{
"mcpServers": {
"magento-coding-standard": {
"command": "node",
"args": ["/path/to/magento-coding-standard-mcp/dist/index.js"]
}
}
}
```
## 4. VS Code Copilot (GitHub Copilot)
**File**: `.vscode/mcp.json` (project root)
```json
{
"servers": {
"magento-coding-standard": {
"type": "stdio",
"command": "node",
"args": ["/path/to/magento-coding-standard-mcp/dist/index.js"]
}
}
}
```
## 5. Gemini CLI
**File**: `~/.gemini/settings.json`
```json
{
"mcpServers": {
"magento-coding-standard": {
"command": "node",
"args": ["/path/to/magento-coding-standard-mcp/dist/index.js"]
}
}
}
```
## 6. Continue.dev
**File**: `~/.continue/config.json`
```json
{
"mcpServers": [
{
"name": "magento-coding-standard",
"command": "node",
"args": ["/path/to/magento-coding-standard-mcp/dist/index.js"]
}
]
}
```
## 7. Windsurf
Add in Windsurf MCP settings:
```json
{
"mcpServers": {
"magento-coding-standard": {
"command": "node",
"args": ["/path/to/magento-coding-standard-mcp/dist/index.js"]
}
}
}
```
## 8. Augment Code
Add in Augment Code settings:
```json
{
"mcpServers": {
"magento-coding-standard": {
"command": "node",
"args": ["/path/to/magento-coding-standard-mcp/dist/index.js"],
"metadata": {
"name": "Magento Coding Standards",
"description": "Magento 2 coding standards and patterns"
}
}
}
}
```
## Notes
- Replace `/path/to/` with your actual installation path
- On Windows, use forward slashes in paths: `C:/Users/name/magento-coding-standard-mcp/dist/index.js`
- All platforms use stdio transport by default
- Requires Node.js >= 18
## Available Tools After Setup
Once connected, your AI tool has access to 7 tools:
| Tool | Use Case |
|------|----------|
| `get_magento_pattern` | "How do I read a file in Magento?" |
| `validate_code` | "Check this PHP code for Magento violations" |
| `check_security` | "Is this code secure?" |
| `explain_rule` | "What is FinalImplementation rule?" |
| `list_rules` | "Show all security rules" |
| `get_rules_summary` | "Overview of all coding standards" |
| `manage_theme` | "Set theme to Hyva" / "List available themes" |
## Theme Setup
After connecting, activate your theme:
```
"Set the theme to hyva" → AI calls manage_theme({ action: "set", themeId: "hyva" })
"What theme is active?" → AI calls manage_theme({ action: "info" })
"List available themes" → AI calls manage_theme({ action: "list" })
"Clear theme, use base only" → AI calls manage_theme({ action: "clear" })
```
Available built-in themes: `hyva`, `luma`, `breeze`, `porto`