Skip to main content
Glama

rush

智能体代码质量 CLI + stdio MCP 服务器。它是 headcleaner 的配套工具。

状态: v0.1.0-alpha。Rush 通过 CLI 运行真实的 Python 和 JS/TS 质量引擎,并通过其本地 stdio MCP 服务器运行相同的规范实现。

安装

# From this checkout
uv sync

# Windows (PowerShell or Git Bash)
.venv/Scripts/rush.exe --help

# macOS/Linux
.venv/bin/rush --help

若要从当前检出目录获得持久化的全局命令,请在 Windows 上使用 scripts/install.ps1,或在 macOS/Linux 上使用 scripts/install.sh。Rush 会从你的环境中发现质量引擎;当需要相应的检查时,请单独安装 Ruff、pytest、pip-audit、ESLint、Prettier、Vitest 或 npm。

Related MCP server: mcp-lint-tools

快速开始

rush --help
rush review ./src
rush lint ./src --json
rush test ./tests
rush mcp serve            # stdio MCP server (for coding agents)

文档

许可证

MIT

Available Tools

79 tools
rush_actionsA

Check GitHub Actions workflows without rewriting; missing actionlint returns status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_agent_connectionC

Discover, connect, and diagnose local coding agents

Inputs: request (required). Returns: object

rush_ai_evalC

Evaluate LLM prompts, agent workflows, and safety guardrails. Requires explicit permissions for live inference runs.

Inputs: path (required), allow_slow, allow_build, allow_browser, +4 more. Returns: raw, tool, engine, status, +9 more

rush_api_diffA

Detect breaking public API changes against base Git ref

Inputs: base. Returns: result

rush_arch_guardB

Validate codebase against clean architecture layer boundaries

Inputs: no named parameters. Returns: result

rush_attestC

Generate in-toto Statement v1 SLSA provenance unsigned draft for build artifacts.

Inputs: path (required), verify, allow_slow, builder_id, +11 more. Returns: raw, tool, engine, status, +9 more

rush_attest_generateB

Deprecated alias for rush_attest

Inputs: path (required), verify, allow_slow, builder_id, +11 more. Returns: raw, tool, engine, status, +9 more

rush_benchmarkB

Compare performance samples against baseline thresholds at ; baseline recording requires --allow-cache-write. Returns {status, findings[], summary}.

Inputs: path (required), options (required), record, samples, +10 more. Returns: raw, tool, engine, status, +9 more

rush_blast_radiusA

Calculate downstream transitive blast radius for a changed file

Inputs: path (required), depth. Returns: result

rush_ciA

Inspect local CI workflow configuration without accessing credentials or remote status.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_codeqlC

Import a local CodeQL SARIF report or run CodeQL analysis under --allow-build.

Inputs: path (required), allow_slow, allow_build, report_path, +5 more. Returns: raw, tool, engine, status, +9 more

rush_cold_startB

Audit import overhead and cold-start latency at ; dynamic -X importtime requires --allow-slow. Returns {status, findings[], summary}.

Inputs: path (required), options (required), dynamic, allow_slow, +7 more. Returns: raw, tool, engine, status, +9 more

rush_commit_msgC

Validate supplied Conventional Commit messages without modifying Git history.

Inputs: path (required), message, allow_slow, allow_build, +5 more. Returns: raw, tool, engine, status, +9 more

rush_complexityA

Measure Python and JS/TS complexity at . Uses radon or jscpd; missing engines return status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_containerfileA

Check container files without rewriting; missing hadolint returns status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_context_gain_statsB

Get real-time token economy savings and cost metrics

Inputs: no named parameters. Returns: result

rush_context_mistakes_checkB

Check git revert history for past mistakes and anti-patterns

Inputs: no named parameters. Returns: result

rush_context_packC

Pack graph-pruned context outline under a strict token budget

Inputs: path (required), budget, symbol, allow_cache_write.

rush_context_retrieveC

Retrieve uncompressed content from CCR chunk store by hash

Inputs: chunk_hash (required), path.

rush_continuityC

Save, list, or restore a local Rush session checkpoint. Returns {status, findings[], summary}; saving requires explicit cache-write permission.

Inputs: path (required), name, as_v1, files, +20 more. Returns: result

rush_contractC

Import a local Pact report or run local contract verifications under --allow-slow.

Inputs: path (required), options (required), allow_slow, pact_files, +9 more. Returns: raw, tool, engine, status, +9 more

rush_coverageC

Import a local coverage report or run coverage analysis under --allow-slow.

Inputs: path (required), allow_slow, allow_build, report_path, +5 more. Returns: raw, tool, engine, status, +9 more

rush_db_driftB

Audit ORM models against migrations to detect schema drift

Inputs: no named parameters. Returns: result

rush_deadA

Find unused Python and JS/TS code at . Uses vulture or knip; missing engines return status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_dead_assetA

Detect unreferenced images, fonts, and media assets under (strictly read-only). Returns {status, findings[], summary}; export manifest requires --allow-artifact-write.

Inputs: path (required), export_manifest, allow_artifact_write. Returns: raw, tool, engine, status, +9 more

rush_doctorA

Diagnose environment health, toolchain integrity, and binary resolution at . Returns {status, findings[], summary}.

Inputs: path. Returns: raw, tool, engine, status, +9 more

rush_e2eC

Run configured E2E tests only with --allow-browser.

Inputs: path (required), options (required), allow_slow, allow_build, +5 more. Returns: raw, tool, engine, status, +9 more

rush_error_catalogB

Extract Python, TypeScript, and Rust exceptions at , generate RFC 7807 problem catalog; export markdown requires --allow-artifact-write.

Inputs: path (required), export_path, allow_artifact_write. Returns: raw, tool, engine, status, +9 more

rush_fixB

Safely auto-remediate formatting and linter issues at . Returns {status, findings[], summary}. Enforces strict path confinement.

Inputs: path, force, dry_run, allow_artifact_write. Returns: raw, tool, engine, status, +9 more

rush_flakyC

Import a local JUnit report or run duplicate test analysis under --allow-slow.

Inputs: path (required), allow_slow, allow_build, report_path, +5 more. Returns: raw, tool, engine, status, +9 more

rush_formatA

Format Python/JS/TS files at . Returns {status, findings[], summary}. Engines: ruff format (Python), prettier (JS/TS). Always check-only in v0.1.

Inputs: path (required), check. Returns: raw, tool, engine, status, +9 more

rush_fuzzC

Import a local fuzz report or execute local fuzz tests under --allow-slow.

Inputs: path (required), options (required), seed, corpus, +11 more. Returns: raw, tool, engine, status, +9 more

rush_hallu_guardB

Audit code imports against installed packages and stdlib

Inputs: path. Returns: result

rush_iacB

Check Terraform without rewriting; missing local engines return status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_iam_auditC

Audit cloud SDK calls in code, inspect Terraform HCL2 policies for wildcards, and synthesize minimal least-privilege IAM policies. Returns {status, findings[], summary}.

Inputs: path (required), allow_slow, allow_build, allow_browser, +5 more. Returns: raw, tool, engine, status, +9 more

rush_license_matrixC

Audit open-source dependencies for license risks and copyleft compliance. Returns {status, findings[], summary}.

Inputs: path (required), allow_slow, allow_build, allow_browser, +6 more. Returns: raw, tool, engine, status, +9 more

rush_lintA

Lint Python/JS/TS files at . Returns {status, findings[], summary}. Engines: ruff (Python), eslint (JS/TS). status='skipped' means engine not on PATH.

Inputs: path (required), engine_args. Returns: raw, tool, engine, status, +9 more

rush_loadC

Import a local load report or execute load traffic under --allow-network.

Inputs: path (required), options (required), vus, script, +11 more. Returns: raw, tool, engine, status, +9 more

rush_markdownA

Check Markdown at without rewriting files; missing markdownlint-cli returns status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_media_optC

Audit media assets for CLS and SVG security at ; writes optimized assets with --allow-artifact-write. Returns {status, findings[], summary}.

Inputs: path (required), options (required), optimize, sanitize, +7 more. Returns: raw, tool, engine, status, +9 more

rush_memoryC

Query, write, or promote a cross-tool memory artifact in the typed artifact store. Returns {status, findings[], summary}; write/promote/maintain/verify_attempt require explicit permissions.

Inputs: path (required), task, query, source, +18 more. Returns: raw, tool, engine, status, +9 more

rush_mem_profileB

Audit memory usage and unclosed resources at ; dynamic probe requires --allow-slow. Returns {status, findings[], summary}.

Inputs: path (required), options (required), dynamic, allow_slow, +7 more. Returns: raw, tool, engine, status, +9 more

rush_mesh_acquire_lockC

Acquire non-blocking multi-agent file lock

Inputs: path (required), agent_id (required), capability. Returns: result

rush_mesh_release_lockB

Release multi-agent file lock

Inputs: path (required), agent_id (required), capability. Returns: result

rush_mutationC

Import a local mutation report or run mutation testing under --allow-slow.

Inputs: path (required), options (required), allow_slow, test_paths, +9 more. Returns: raw, tool, engine, status, +9 more

rush_offline_reviewA

Run air-gapped code review using external local LLM (ollama/llama-cli) on PATH; returns skipped if no local runner is found. Returns {status, findings[], summary}.

Inputs: path (required), options (required), model, allow_slow, +7 more. Returns: raw, tool, engine, status, +9 more

rush_patch_applyA

Verify a contained unified diff in an isolated checkout. Defaults to dry-run; promotion requires artifact-write permission. Returns status, findings, summary.

Inputs: patch_file (required), path, dry_run, circuit_breaker, +1 more. Returns: raw, tool, engine, status, +9 more

rush_pbtC

Import a local property-test report or run property tests under --allow-slow.

Inputs: path (required), allow_slow, allow_build, report_path, +5 more. Returns: raw, tool, engine, status, +9 more

rush_projectD

Register, discover, select, and configure Rush projects

Inputs: request (required). Returns: object

rush_prompt_evalC

Evaluate recorded prompt runs against golden task criteria at . Returns {status, findings[], summary}.

Inputs: path (required), options (required), records, allow_slow, +10 more. Returns: raw, tool, engine, status, +9 more

rush_provenance_aiC

Analyze git commit trailers for AI attribution, calculate empirical code survival curves (30/60/90d), and compute defect correlation. Returns {status, findings[], summary}.

Inputs: path (required), allow_slow, allow_build, allow_browser, +4 more. Returns: raw, tool, engine, status, +9 more

rush_pr_synthesizeA

Synthesize semantic PR markdown card from git diff and evidence at ; export requires --allow-artifact-write.

Inputs: path (required), base_ref, export_path, allow_artifact_write. Returns: raw, tool, engine, status, +9 more

rush_releaseB

Create a dry-run release plan; publishing requires explicit confirmation.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_reviewA

Review code at for size, TODO density, missing docstrings, naming, complexity. Returns {status, findings[], summary}. Default: heuristic. Pass use_llm=true to call configured model.

Inputs: path (required), use_llm, use_graft, changed_files. Returns: raw, tool, engine, status, +9 more

rush_sbomB

Generate an SBOM only to a safe explicit output path; missing cdxgen returns status='skipped'.

Inputs: path (required), overwrite, allow_slow, allow_build, +6 more. Returns: raw, tool, engine, status, +9 more

rush_scanC

Plan, run, and check status of a full-project scan

Inputs: request (required). Returns: object

rush_scan_handoffC

Prepare, dispatch, and acknowledge a bounded agent handoff of scan findings

Inputs: request (required). Returns: object

rush_secretsA

Scan for secrets without exposing values; missing gitleaks returns status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_securityC

Scan deps at for known vulnerabilities. Returns {status, findings[], summary}. Engines: pip-audit (Python), npm audit (JS/TS). status='skipped' means engine not on PATH.

Inputs: path (required), allow_slow, allow_build, allow_browser, +4 more. Returns: raw, tool, engine, status, +9 more

rush_semantic_driftB

Semantic drift detection comparing rendered DOM/accessibility against baseline. Requires both --allow-browser and --allow-slow.

Inputs: path (required), allow_slow, allow_build, allow_browser, +4 more. Returns: raw, tool, engine, status, +9 more

rush_ship_cleanB

Clean scratch directories and build caches before release

Inputs: path, apply, allow_artifact_write. Returns: object

rush_ship_envA

Audit codebase environment variable usage against .env.example

Inputs: no named parameters. Returns: result

rush_ship_gateC

Run 7-vector pre-flight release readiness cockpit

Inputs: no named parameters. Returns: result

rush_simplifyB

Decompose high-complexity functions into modular helpers

Inputs: file (required), max_complexity. Returns: result

rush_slopB

Detect Python AI slop and deterministic JS/TS noise at ; missing sloppylint returns status='skipped' when no JS/TS fallback applies.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_snapshotC

Import a local snapshot comparison or run snapshot tests under --allow-slow.

Inputs: path (required), options (required), accept, allow_slow, +7 more. Returns: raw, tool, engine, status, +9 more

rush_sqlB

Check SQL without rewriting; missing sqlfluff returns status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_strictifyC

Synthesize runtime type guards for unvalidated parameters

Inputs: file (required). Returns: result

rush_swarm_mergeC

Execute 3-way AST merge conflict resolution

Inputs: base_code (required), ours_code (required), theirs_code (required). Returns: result

rush_tddC

Verify Test-Driven Development (TDD) compliance at . Returns {status, findings[], summary}.

Inputs: path (required), options (required), allow_slow, allow_build, +5 more. Returns: raw, tool, engine, status, +9 more

rush_templatesA

Check templates without rewriting; missing djlint returns status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_testA

Run tests for project at . Returns {status, findings[], summary}. Engines: pytest (Python), vitest/npm (JS/TS). status='skipped' means engine not on PATH.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_test_healC

Diagnose flaky test race conditions and suggest fixes

Inputs: target (required), runs, seed, dry_run, +3 more. Returns: result

rush_token_outlineB

Generate token-efficient AST skeleton outline of a code file

Inputs: path (required), focus_symbol. Returns: result

rush_traceB

Scan codebase and specs to output requirement traceability matrix

Inputs: no named parameters. Returns: result

rush_tui_diffC

Compute Git commit and quality findings deltas at ; renders Rich tables in CLI. Returns {status, findings[], summary}.

Inputs: path (required), options (required), base_ref, allow_slow, +8 more. Returns: raw, tool, engine, status, +9 more

rush_typecheckA

Type-check Python and JS/TS at . Uses mypy or tsc; missing engines return status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

rush_visualB

Check visual baselines; updates require --accept.

Inputs: path (required), options (required), allow_slow, allow_build, +5 more. Returns: raw, tool, engine, status, +9 more

rush_yamlA

Check YAML without rewriting; missing spectral returns status='skipped'.

Inputs: path (required). Returns: raw, tool, engine, status, +9 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.6/5.0

    Scored across 79 tools

    Disambiguation2/5

    Many tools fall into the same broad audit/scan bucket, such as rush_review, rush_lint, rush_slop, rush_dead, and rush_complexity, making selection genuinely ambiguous. Test-related tools like rush_test, rush_e2e, rush_snapshot, and rush_visual also blur together, and the deprecated rush_attest_generate alias adds extra confusion.

    Naming Consistency3/5

    All tools share the rush_ prefix and snake_case, which keeps the naming readable. However, the operation part is inconsistent: some are nouns, some are verbs, and some are long descriptive phrases, so there is no predictable verb_noun or noun_verb convention.

    Tool Count1/5

    With 79 tools, this is an extreme over-scoped MCP surface and far exceeds the threshold where a tool set remains navigable. Many related scanners could be consolidated into a single parameterized scan/audit tool, and the sheer count severely harms discoverability.

    Completeness4/5

    The inferred domain is a broad engineering-quality and release-readiness assistant, and the tool set covers static analysis, testing, security, release planning, AI evaluation, context management, and agent coordination. Some gaps remain—many findings can only be remediated by rush_fix and several tools depend on external engines—but agents can generally work around these.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides comprehensive code quality tools including linting, security scanning, TypeScript checking, and testing through a single MCP server. Integrates multiple quality analysis tools like Biome, ESLint, and Playwright for streamlined development workflows.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Code linting and style checking tools for AI agents, exposed as an MCP server. Supports style checks, naming conventions, complexity analysis, dead code detection, and import analysis.
      47 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Autonomous spec-to-product coding-agent CLI. Its MCP server exposes 34 tools over stdio: project state and task-queue ops, memory retrieve/store, code search, quality and verification reports, repo hotspots/co-changes, and structured findings/learnings.
      13,243 npm
      1,125
      Business Source 1.1
    • A
      license
      Not graded
      quality
      D
      maintenance
      Analyzes codebases to produce structured quality health reports with risk-scored modules based on git churn, test coverage, and test-to-source mapping, acting as an MCP server for AI coding agents and a standalone CLI.
      MIT