- Explore MCP Servers
- wp-code-review-mcp-server
Wp Code Review Mcp Server
Overview
What is Wp Code Review Mcp Server
wp-code-review-mcp-server is a lightweight, configurable MCP (Model Context Protocol) server designed for development teams to fetch coding guidelines, security rules, and validation patterns from external sources.
Use cases
Use cases include validating code against specific coding standards, performing security vulnerability scans, and fetching development guidelines tailored to a teamβs needs.
How to use
To use wp-code-review-mcp-server, clone the repository, install dependencies, host your custom guidelines, and configure the server settings in your development environment.
Key features
Key features include fetching guidelines from any URL, dynamic configuration via environment variables, custom validation for coding standards and security rules, and a lightweight codebase.
Where to use
wp-code-review-mcp-server can be used in software development environments, particularly for teams working on WordPress projects that require adherence to coding standards and security practices.
Content
WordPress Code Review MCP Server v2.0
A lightweight, configurable MCP (Model Context Protocol) server for development teams. Fetches coding guidelines, security rules, and validation patterns from external sources or URL where you have hosted your custom guidelines.
π Key Features
- β No hardcoded rules - Fetch guidelines from any URL
- β Dynamic configuration - Specify source via environment variables
- β Custom validation - Add your own coding standards and security rules
- β Lightweight - External guidelines, minimal codebase
π Available Tools
get_guidelines
- Fetch development guidelines by categoryvalidate_code
- Validate code against configured standardssecurity_check
- Security vulnerability scanning
π Prerequisites
- Node.js installed (v18+)
π Installation & Setup
Step 1: Clone Repository
git clone https://github.com/miniOrangeDev/wp-code-review-mcp-server.git
cd wp-code-review-mcp
Step 2: Install Dependencies & Build
npm install npm run build
Step 3: Host Your Guidelines
Host the files from sample-guidelines/html/
on your web server and configure your base URL, for example: https://yourdomain.com/guidelines/
The MCP server will fetch:
https://yourdomain.com/guidelines/guidelines.md
https://yourdomain.com/guidelines/validation-rules.md
https://yourdomain.com/guidelines/security-rules.md
Step 4: Configure Cursor
Add to your Cursor settings (Ctrl+Shift+P
β βPreferences: Open User Settings (JSON)β):
{
"mcpServers": {
"wp-code-review-mcp": {
"command": "node",
"args": [
"/path/to/wp-code-review-mcp-server/build/index.js"
],
"env": {
"GUIDELINES_URL": "https://yourdomain.com/guidelines"
}
}
}
}
Replace /path/to/wp-code-review-mcp-server
with your actual path (e.g., /home/wp-code-review-mcp-server
)
Why the path? Unlike published npm packages, this is a local MCP server. The path tells Cursor exactly where to find your built server file.
If you donβt see MCP server connected, restart Cursor and the MCP server will be available.
Guidelines Format
Your guidelines server should serve these files:
/guidelines.md
- Main development guidelines/validation-rules.md
- Code validation rules/security-rules.md
- Security scanning rules
Step 5: Test in Cursor
- Open any PHP file in Cursor
- Ask the AI: βCheck this code for security issues:
class mo_Test {}
β - The AI should detect the short prefix violation!
π§ Troubleshooting
Having configuration issues? See the Configuration Troubleshooting Guide for common mistakes and solutions.
π Customizing Guidelines
Edit the files in sample-guidelines/html/
to add your own:
- Coding standards
- Validation rules
- Security patterns
- Company-specific guidelines
The MCP server automatically uses updated rules without restart.
π License
MIT License
Built for Dynamic, Maintainable Development Guidelines π‘οΈ