Skip to main content
Glama

Checkride MCP 服务器

Checkride 是一个 Model Context Protocol(MCP)服务器,作为 AI 编码代理的快速、本地 "CI 预检" 验证边车。

在 AI 代理提交或推送代码之前,它可以调用 Checkride 工具,在具有即时 SHA-256 缓存的沙箱化进程环境中执行测试、类型检查、lint 检查、安全审计、Git 安全扫描,生成 AI 修复提示,并导出可视化报告。


功能

  • 快速预检流水线:并发运行测试套件、类型检查器和 linter。

  • 智能 SHA-256 缓存:在代码未变更时实现即时、亚 10ms 的响应([已完成 < 10ms])。

  • Git 与暂存文件智能:仅对已修改 atau 已暂存的 Git 文件运行有目标验证和安全检查。

  • Pre-commit Git 钩子:轻松安装本地 .git/hooks/pre-commit 以在手动提交前自动进行代码验证码。

  • Docker 沙箱:可选容器化执行("sandbox": "docker")以隔离进程执行程。

  • 依赖安全审计:运行包安全审计(npm auditcargo auditpip-audit)以检测 AI 代理引入的漏洞洞。

  • AI 修复生成器:解析错误与类型不匹配,返回可用提示的修复建议与代码片段。断点语句。

  • 可视化报告导出器:导出 Markdown(.checkride/summary.md) 和 HTML (.linkride/report.html) 验证摘要。

  • Git 安全防护扫描器:检测遗留的冲突标记(<<<<<<<)、泄露的 API 密钥/账号密码和调试语句(console.logdebuggerbreak())。

  • 自动检测:自动检测包管理器(pnpmyarnbunnpm)及语言(TypeScript、JavaScript、Python、Rust、Go)。

  • 可配置边车:可通过 .checkriderc.json 自定义命令、单次检查超时时间、排除项和自定义构建步骤。


公开 MCP 工具

工具名

工具说明

参数

输出 Schema

run_checks

运行带有智能 SHA-256 缓存功能的完整验证流水线(对未更改代码 <10ms)

project_path (字符串,可选)bypass_cach (布尔值,可选)

{ passed, results: { test, typecheck, lint, custom }, summary, cached }

run_staged_checks

对已修改/暂存的 Git 文件运行针对性检查

project_path (字符串,可选)

{完成状态、staged_files、safety、lint、summary}

check_git_safety

扫描文件中的冲突、泄漏与调试日志

project_path (字符串,可选)files (字符串数组,可选)

{ passed, issues: [{ type, file, content, description }], scanned_files, summary }

run_security_audit

运行依赖漏洞安全审计

project_path (字符串,可选)

{ passed, vulnerabilities: { critical, high, moderate, low, total }, issues: [{ package, severity, title, url, fix_available }], summary }

suggest_fixes

生成修复测试失败与 TS 错误的 AI 提示

project_path (字符串,可选)

{ count, suggestions: [{ category, file, line, issue, hint, prompt_snippet }], summary }

export_report

将可视化 Markdown/HTML 报告导出 .checkride/ 目录

project_path (字符串,可选)format ("markdown" 或 "html",可选)

{ file_path, format, content, summary }

run_tests

仅执行测试套件

project_path (字符串,可选)test_pattern (字符串,可选)

{ passed, output, failed_tests: string[] }

run_typecheck

执行类型检查(tscmy pycargo checkgo vet

project_path (字符串,可选)

{ passed, output, errors: string[] }

run_lint

执行代码 linter(eslintbiomeruf0clippy

project_path (字符串,可选)fix (布尔值,可选)

{ passed, output, issues: number }

get_check_status

获取上次检查运行状态

{ last_run, passed, summary, results }


安装 Git Pre-commit 钩子

安装本地 .git/hooks/pre-commit,以便在任何手动 git commit 之前自动运行 Checkride 检查:

npx checkride init-hooks

配置(.checkriderc.json

Checkride 会自动在项目根目录查找 .checkriderc.json.checkriderccheckride.config.json

{
  "sandbox": "docker",
  "docker_image": "node:18-alpine",
  "timeouts": {
    "test": 60000,
    "typecheck": 60000,
    "lint": 30000,
    "security": 60000,
    "default": 60000
  },
  "commands": {
    "test": "pnpm test",
    "typecheck": "tsc --noEmit",
    "lint": "eslint .",
    "security": "npm audit --json",
    "custom": [
      {
        "name": "Format Check",
        "command": "prettier --check .",
        "timeout": 15000
      }
    ]
  },
  "exclude": ["node_modules", "dist", "build", ".git"],
  "env": {
    "CI": "true"
  }
}

连接至 AI 代理

1. Claude Desktop 配置(claude_desktop_config.json

{
  "mcpServers": {
    "checkride": {
      "command": "node",
      "args": ["/absolute/path/to/checkride-mcp/dist/index.js"]
    }
  }
}

2. Cursor / Antigravity / Claude Code 配置

GXP4:4


许可证

MIT

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • Git-backed platform for skills, tools, and context for AI agents

  • Build, validate, and deploy multi-agent AI solutions from any AI environment.

  • Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/siqah/Checkride'

If you have feedback or need assistance with the MCP directory API, please join our Discord server