loading…
Search for a command to run...
loading…
Exposes MAID Runner validation tools (validate, snapshot, test) as MCP tools, resources, and prompts for AI agents like Claude Code and Aider, enabling seamless
Exposes MAID Runner validation tools (validate, snapshot, test) as MCP tools, resources, and prompts for AI agents like Claude Code and Aider, enabling seamless integration with AI development workflows.
Model Context Protocol server for MAID Runner validation tools.
MAID Runner MCP exposes MAID Runner validation capabilities via the Model Context Protocol (MCP), enabling seamless integration with AI development tools like Claude Code, Aider, and custom AI agents.
MAID Runner MCP is a bridge between AI agents and MAID Runner's validation framework. It provides:
maid validate, maid snapshot, maid test, and other commandsThink of it as an API layer that lets AI agents interact with MAID Runner using standardized MCP protocol instead of subprocess calls.
🚧 Alpha Release - Under active development.
This is part of the MAID ecosystem and follows the MAID methodology itself (self-dogfooding).
# Install from PyPI
pip install maid-runner-mcp
# Or with uv
uv pip install maid-runner-mcp
# Start MCP server (stdio transport)
maid-runner-mcp
# Or with uv
uv run maid-runner-mcp
Add to your .claude/mcp.json:
{
"mcpServers": {
"maid-runner": {
"command": "uv",
"args": ["run", "maid-runner-mcp"],
"env": {
"MAID_MANIFEST_DIR": "manifests"
}
}
}
}
Now Claude Code can:
maid_validate toolmaid_snapshot toolmanifest:// resourcesAI Agents (Claude, GPT-4, etc.)
↓
MCP Protocol (JSON-RPC)
↓
maid-runner-mcp (MCP Server)
↓
MAID Runner (Validation Core)
maid_validate - Validate manifests (structural + behavioral + implementation)maid_snapshot - Generate manifest snapshots from existing codemaid_snapshot_system - Generate system-wide architecture snapshotmaid_list_manifests - Find manifests referencing a filemaid_init - Initialize MAID project structuremaid_get_schema - Get manifest JSON schemamaid_generate_stubs - Generate test stubs from manifestmaid_files - Check file tracking statusmanifest://{name} - Access manifest contentschema://manifest - Get manifest JSON schemavalidation://{name}/result - Access cached validation resultssnapshot://system - Get system-wide architecture snapshotgraph://query - Query manifest knowledge graphfile-tracking://analysis - Get file tracking statusplan-task - Guide AI through manifest creationimplement-task - Guide AI through implementationrefactor-code - Guide AI through safe refactoringreview-manifest - Guide AI through manifest review| Component | Role | What It Does |
|---|---|---|
| MAID Runner | Validation framework | CLI tool for validating MAID manifests |
| MAID Runner MCP | MCP interface | Exposes MAID Runner to AI agents via MCP |
MAID Runner MCP doesn't replace the CLI—it complements it:
maid): For humans and shell scriptsmaid-runner-mcp): For AI agents and programmatic accessBoth use the same underlying validation logic.
AI agents can validate code as they generate it:
# AI agent workflow
result = await session.call_tool("maid_validate", {
"manifest_path": "manifests/task-013.manifest.json",
"use_manifest_chain": true
})
if not result["success"]:
# Fix issues based on errors
...
AI agents can understand system architecture:
# Get system snapshot
snapshot = await session.read_resource("snapshot://system")
# Query knowledge graph
results = await session.read_resource(
"graph://query?type=class&name=EmailValidator"
)
Custom agents can automate MAID workflow:
# Get planning guidance
prompt = await session.get_prompt("plan-task", {
"goal": "Add email validation"
})
# Follow prompt to create manifest
...
# Clone repository
git clone https://github.com/mamertofabian/maid-runner-mcp
cd maid-runner-mcp
# Install dependencies
uv pip install -e ".[dev]"
# Run tests
pytest tests/ -v
make install # Install package
make test # Run tests
make lint # Check code style
make format # Format code
make validate # Validate MAID manifests
This project follows the MAID methodology itself:
manifests/tests/maid validate --use-manifest-chainSee CLAUDE.md for development guidelines.
See CONTRIBUTING.md for development workflow and guidelines.
MIT License - see LICENSE file.
Выполни в терминале:
claude mcp add maid-runner-mcp -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.