Runs code quality checks entirely on your machine without API calls or network requests. Exposes five MCP tools: inspect_file and inspect_directory for running nine different analyzers (complexity, naming, security, duplication, AI-generated code detection, and more), get_metrics for quantitative stats, compare_files for diff analysis between versions, and suggest_fixes for actionable recommendations. Supports deep AST analysis for JavaScript, TypeScript, Python, Go, and Rust, with regex-based checks for Java, C#, Ruby, PHP, and others. Ships with two prompts for structured code reviews and project health checks. Also works as a standalone CLI tool with watch mode, SARIF output for GitHub integration, and baseline tracking to show only new issues. Reach for this when you want code review feedback without sending code to external services.
Zero-cost MCP server for local code inspection. Analyzes your code for clean code practices, best practices, and gives actionable recommendations — without modifying your code or making API calls.
ready @filename and AI terminal commands for standalone use.readyorai.json for shared settings// readyorai-ignore commentsClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"readyorai": {
"command": "npx",
"args": ["-y", "readyorai"]
}
}
}
Claude Code:
claude mcp add readyorai -- npx -y readyorai
VS Code (.vscode/mcp.json):
{
"servers": {
"readyorai": {
"command": "npx",
"args": ["-y", "readyorai"]
}
}
}
npm install -g readyorai
ready @src/index.ts # Inspect a single file
ready @src/ # Inspect a directory
ready @src/index.ts --checks security,naming # Run specific checks
ready @src/index.ts --json # JSON output
ready @src/index.ts --sarif # SARIF output (GitHub Code Scanning)
ready @src/index.ts --severity warning # Only warnings and errors
ready @src/index.ts --watch # Re-analyze on file changes
ready @src/ --baseline baseline.json # Compare against saved baseline
ready @src/ --save-baseline baseline.json # Save current results as baseline
AI # Inspect current directory
AI @src/utils.ts # Alias with file target
| Code | Meaning |
|---|---|
0 | No issues found |
1 | Warnings found |
2 | Errors found |
3 | Runtime error |
Create a .readyorai.json in your project root:
{
"checks": ["complexity", "naming", "security"],
"severity": "warning",
"exclude": ["dist/**", "node_modules/**"]
}
Silence specific findings on a line:
eval(code); // readyorai-ignore
| Tool | Description |
|---|---|
inspect_file | Analyze a single file for code quality issues |
inspect_directory | Batch analysis of all source files in a directory |
get_metrics | Get quantitative metrics (LOC, complexity, function count) |
compare_files | Compare two file versions and show fixed, introduced, or unchanged findings |
suggest_fixes | Get actionable fix suggestions with context for each finding |
| Prompt | Description |
|---|---|
review-code | Structured code review with optional focus area |
health-check | Project-level health assessment |
| Check | What it detects |
|---|---|
complexity | Cyclomatic/cognitive complexity, deep nesting |
naming | Convention violations, single-letter vars, boolean prefixes |
structure | Long files/functions, too many parameters, long lines |
patterns | console.log, empty catch, magic numbers, nested ternaries, TODOs |
imports | Unused imports, wildcard imports, scattered imports |
documentation | Missing JSDoc/docstrings, low comment ratio |
security | Hardcoded secrets, eval(), SQL injection, XSS patterns |
duplication | Duplicate code blocks, repeated magic strings |
ai-detection | Detects patterns common in AI-generated code |
| Tier | Languages | Analysis |
|---|---|---|
| 1 | JavaScript, TypeScript, Python, Go, Rust | Full AST-powered analysis |
| 2 | Java, C#, Ruby, PHP, Swift, Kotlin, C, C++ | Regex + heuristic analysis |
| 3 | Any text file | Line-based checks (length, TODOs, secrets, duplication) |
git clone https://github.com/TedoNeObichaJavaScript/ReadyOrAI.git
cd ReadyOrAI
npm install
npm run build
npm test
If you find ReadyOrAI useful, consider supporting the project:
MIT