Model Context Protocol (MCP) server for WP Code Check
This server exposes WP Code Check scan results as MCP resources, allowing AI assistants like Claude Desktop and Cline to directly access and analyze your WordPress code quality scans.
# From the repository root
npm installEdit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"wp-code-check": {
"command": "node",
"args": [
"/absolute/path/to/wp-code-check/dist/bin/mcp-server.js"
]
}
}
}Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"wp-code-check": {
"command": "node",
"args": [
"C:\\absolute\\path\\to\\wp-code-check\\dist\\bin\\mcp-server.js"
]
}
}
}Add to Cline MCP settings:
{
"mcpServers": {
"wp-code-check": {
"command": "node",
"args": [
"/absolute/path/to/wp-code-check/dist/bin/mcp-server.js"
]
}
}
}Important: Always use absolute paths, not relative paths or ~.
./dist/bin/check-performance.sh --paths /path/to/your/pluginIn Claude Desktop or Cline:
- "Show me the latest WP Code Check scan results"
- "What are the critical issues in the latest scan?"
- "Summarize the findings from wpcc://latest-scan"
- "What's in the latest HTML report?"
| Resource URI | Description | MIME Type |
|---|---|---|
wpcc://latest-scan |
Most recent JSON scan log | application/json |
wpcc://latest-report |
Most recent HTML report | text/html |
wpcc://scan/{scan-id} |
Specific scan by timestamp ID | application/json |
Example Scan IDs:
2026-01-13-031719-UTC2026-01-12-155649-UTC
# 1. Run a test scan
./dist/bin/check-performance.sh --paths ./dist/tests/fixtures
# 2. Start MCP server manually (for debugging)
node dist/bin/mcp-server.js
# Should output: "WP Code Check MCP Server running on stdio"
# 3. Test with your AI assistant
# Ask: "Read wpcc://latest-scan and summarize the findings"Solution: Run a scan first:
./dist/bin/check-performance.sh --paths /path/to/pluginSolution: Install dependencies:
npm installSolution: Install Node.js 18+ from nodejs.org
Solution:
- Verify absolute paths in config (no
~or relative paths) - Restart your AI assistant after config changes
- Check logs in AI assistant settings
- Full MCP Documentation: PROJECT/1-INBOX/PROJECT-MCP.md
- Main README: README.md
- Changelog: CHANGELOG.md
- Issues: GitHub Issues
- Email: noel@hypercart.io
- Website: wpcodecheck.com
License: Apache-2.0
Version: 1.0.0 (Tier 1 - Basic Resources)