๐ง NeuroDev MCP Server
*Intelligent Code Analysis, Test Generation & Execution*
A powerful Model Context Protocol (MCP) server that supercharges your Python development workflow with AI-powered code review, intelligent test generation, and comprehensive test execution.
Features โข Installation โข Quick Start โข Tools โข Examples
โจ Features
๐ **Code Review**
|
๐งช **Test Generation**
|
โถ๏ธ **Test Execution**
|
๐จ **Code Formatting**
|
๐ฆ Installation
**Quick Install**
```bash
# Clone the repository
git clone https://github.com/ravikant1918/neurodev-mcp.git
cd neurodev-mcp
# Create virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\\Scripts\\activate
# Install the package
pip install -e .
\`\`\`
### **Verify Installation**
\`\`\`bash
# Run tests (should show 15/15 passing)
python test_installation.py
# Test the server
python -m neurodev_mcp.server
\`\`\`
<details>
<summary><b>๐ Project Structure</b> (click to expand)</summary>
\`\`\`
neurodev-mcp/
โโ neurodev_mcp/ # ๐ฆ Main package
โ โโ __init__.py # Package exports
โ โโ server.py # MCP server entry point
โ โโ analyzers/ # ๐ Code analysis
โ โ โโ __init__.py
โ โ โโ code_analyzer.py # Multi-tool static analysis
โ โโ generators/ # ๐งช Test generation
โ โ โโ __init__.py
โ โ โโ test_generator.py # AST-based test creation
โ โโ executors/ # โถ๏ธ Test execution
โ โโ __init__.py
โ โโ test_executor.py # Test running & formatting
โโ pyproject.toml # Project configuration
โโ README.md # This file
โโ test_installation.py # Installation validator
โโ examples.py # Usage examples
โโ requirements.txt # Dependencies
๐ Quick Start
**Step 1: Configure Your MCP Client**
๐ฅ๏ธ Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"neurodev-mcp": {
"command": "/absolute/path/to/neurodev-mcp/.venv/bin/python",
"args": ["-m", "neurodev_mcp.server"]
}
}
}
๐ก Tip: Replace
/absolute/path/to/neurodev-mcpwith your actual path
๐ง Cline (VSCode)
Add to your MCP settings:
{
"neurodev-mcp": {
"command": "python",
"args": ["-m", "neurodev_mcp.server"]
}
}
๐ Standalone Usage
Run the server directly:
# Using the module
python -m neurodev_mcp.server
# Or as a command (if installed)
neurodev-mcp
**Step 2: Restart Your Client**
Restart Claude Desktop or reload VSCode to load the server.
**Step 3: Start Using! ๐**
Try these commands with your AI assistant:
- "Review this Python code for issues"
- "Generate unit tests for this function"
- "Run these tests with coverage"
- "Format this code to PEP8 standards"
๐ Transport Options
NeuroDev MCP supports multiple transport protocols for different use cases:
**STDIO (Default) - Local CLI**
Perfect for local development with MCP clients like Claude Desktop or Cline:
# Default STDIO transport
neurodev-mcp
# Or explicitly specify STDIO
neurodev-mcp --transport stdio
Configuration (Claude Desktop): ```json
Tools 4
analyze_codePerforms static analysis on Python code using pylint, flake8, mypy, bandit, and radon.generate_testsGenerates pytest unit tests for specified functions or classes using AST analysis.run_testsExecutes test suites with coverage reporting and performance metrics.format_codeAutomatically formats Python code using black and autopep8.