RepoPilot MCP Server
Audits public GitHub repositories and generates a structured launch-readiness report with evidence-backed findings, rule-based scoring, and ready-to-paste launch copy.
Enables payments through the OKX.AI / Agent Payments Protocol using the opt-in OkxPaymentAdapter with x402 v2, EIP-3009, and EIP-712 support.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RepoPilot MCP ServerAudit https://github.com/octocat/Hello-World and summarize launch readiness"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RepoPilot
One repo in. A launch-ready plan out.
RepoPilot is the quality layer for agents that ship code. Point it at a public GitHub repository and get a structured launch-readiness report — evidence-backed findings, explainable scoring, and ready-to-paste launch copy — plus a fix plan per finding that an agent can act on directly.
It closes the loop: audit → fix plan → fix → re-audit → compare. The comparison attributes score movement rule by rule and splits findings into resolved, new and still-open. Built for Web3 developers, hackathon contestants, and other AI agents.
📚 Looking for a specific doc? Start at docs/INDEX.md — it lists every document with one-line descriptions and points you at the right one.
RepoPilot runs static analysis only. It does not execute the audited repository's code. It does not perform a formal security audit. It does not custody funds or read private keys.
Why RepoPilot
Evidence first. Every finding has at least one
path:line:reasonpointer, and so does every fix step. The score is rule-based and reproducible.A plan, not just a report. Each finding gets a fix plan with ordered steps, tests to add, acceptance criteria, estimated effort and risks — plus an
agentInstructionsblock you can hand straight to Codex, Claude Code or OpenCode.Before/after, attributed. Re-audit after fixing and RepoPilot says what moved: the score delta per dimension, the exact scoring rules that changed, and which findings were resolved, appeared or persist.
Built for AI agents. The report is a single JSON document with a stable schema (
reportVersion: "1.1";"1.0"still parses). The MCP server exposes seven tools and marks which of them are free, so any MCP-compatible client can drive the whole loop.No surprise charges. Reading a fix plan or a comparison is free; only running an audit costs anything. A
MockPaymentAdapteris the default, the realOkxPaymentAdapteris opt-in. Seedocs/EXTERNAL_ACTIONS.mdfor the Beta gate.No execution, and no LLM in the scoring. The pipeline reads text only. Binary files are skipped, prompt-injection patterns are reported as findings, and the LLM (when enabled) may only rewrite natural language — never a score, a priority or a piece of evidence.
Related MCP server: repo-doctor
Quick start
git clone <repo>
cd repopilot
pnpm install
cp .env.example .env
pnpm db:migrate
pnpm build
pnpm --filter @repopilot/api start
# API on http://localhost:4000
# Web on http://localhost:5173 (run pnpm --filter @repopilot/web dev in another shell)Or with Docker:
docker build -t repopilot:0.1.0-rc.2 .
docker run --rm -p 4000:4000 \
-e NODE_ENV=production -e PAYMENT_MODE=mock \
-e DATABASE_URL=file:/data/repopilot.db \
-e ALLOWED_REPO_HOSTS=github.com,raw.githubusercontent.com \
-v $(pwd)/data:/data \
repopilot:0.1.0-rc.2A first audit takes 5–15 seconds for a typical mode: 'quick':
# 1. Submit a repo for audit (returns 402 with a payment challenge)
curl -X POST http://localhost:4000/api/v1/audits \
-H 'content-type: application/json' \
-d '{"repoUrl":"https://github.com/octocat/Hello-World",
"mode":"quick","target":"open_source","outputLanguage":"en"}'
# 2. Replay with the mock X-PAYMENT header (use the paymentId from step 1)
curl -X POST http://localhost:4000/api/v1/audits \
-H 'content-type: application/json' \
-H "x-payment: mock:mock_xxx" \
-d '{"repoUrl":"https://github.com/octocat/Hello-World",
"mode":"quick","target":"open_source","outputLanguage":"en"}'Then close the loop. These three are free and never re-scan the repo:
# 3. Get an actionable plan for every finding
curl http://localhost:4000/api/v1/audits/<jobId>/fix-plan
# 4. Fix something, then audit the same repository again
curl -X POST http://localhost:4000/api/v1/repositories/octocat/Hello-World/reaudit
# 5. See what actually changed, attributed rule by rule
curl "http://localhost:4000/api/v1/audits/<newJobId>/diff?base=<jobId>"Documentation
Doc | What's in it |
Layering, data flow, evidence rules | |
Docker, nginx, Caddy, Railway, Render, VPS | |
Threat model, mitigations, redaction | |
Full HTTP API reference | |
Claude Code / Codex / OpenClaw / generic | |
Repository intelligence roadmap | |
The only place that lists what a human must do | |
Pre-tag checklist | |
Marketplace hero spec | |
OKX.AI / Agent Payments Protocol integration | |
EN + CN marketplace copy |
Project meta:
File | Purpose |
What the project is, right now | |
What's next | |
Prioritised TODO list | |
Architecture Decision Records | |
Active risks + mitigations | |
Per-release notes |
Project layout
repopilot/
apps/
api/ Fastify HTTP API
web/ React + Vite admin UI
packages/
core/ analyzers + scoring + report + security + schemas + llm
+ fixplan (report -> fix plan) + diff (report -> diff)
mcp-server/ MCP server (stdio), seven tools
okx-adapter/ PaymentAdapter interface, mock + OKX implementations
fixtures/ 6 sample repos for tests
docs/ ARCHITECTURE / DEPLOYMENT / SECURITY / API / MCP / EXTERNAL
scripts/ env-check, verify-release, docker-check, lint
.github/workflows/ ci.yml + docker.ymlSee docs/ARCHITECTURE.md for the layering diagram.
Scripts
Command | What it does |
| Install all workspace deps |
|
|
| All unit + integration tests |
| tsc + custom static rules |
| All packages and apps |
| Validate env (no secret values printed) |
| Static Docker check (or full build if Docker is present) |
| Static docker-compose review |
| End-to-end smoke (env → lint → test → build → API → MCP) |
| Apply DB migrations (SQLite + Postgres) |
| Start the MCP server over stdio |
| Start the API server |
| See all targets (Makefile mirrors the above) |
Tech stack
Node.js 22 LTS, TypeScript 5.7 strict + NodeNext ESM
pnpm 11.x workspaces
Fastify 5, Zod 3.24, Octokit, Drizzle (SQLite + Postgres)
Vitest, Pino 10, React 18 + Vite 6
@modelcontextprotocol/sdk@1.22(official MCP TS SDK, stdio)viem 2.x for EIP-3009 / EIP-712 in the OKX adapter
Known limitations
OKX.AI Marketplace went GA on 2026-06-30. The
OkxPaymentAdapteris fully wired (x402 v2 + EIP-3009 + EIP-712) and acceptsPAYMENT_MODE=okxwith a validOKX_PAYMENT_ADDRESS. To publish the marketplace listing, runonchainos agent register --role asp(see docs/EXTERNAL_ACTIONS.md item 2). The product still ships withPAYMENT_MODE=mockas the default so the full audit flow works without external services.mode: 'full'runs synchronously inside the HTTP request. Very large repos (> 50 MiB / 2000 files) may time out. A background worker is on the P1 backlog.The LLM is optional. With
LLM_PROVIDER=noopthesummaryandlaunchCopyare template-generated; scores are always rule-based.
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Audit and repair any public GitHub repo. Free survey; paid source, unified diffs and a pull request.
Audit GitHub repos for malicious and supply-chain code before you depend on them.
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Related MCP Servers
- AlicenseBqualityCmaintenanceAnalyze GitHub repositories with health scores, issue triage, and action items through MCP tools.4MIT

repo-doctorofficial
AlicenseNot gradedqualityCmaintenanceMCP server that produces scored, evidence-cited audits of public GitHub repos via tools for fetching metadata, reading files, scanning git history, and checking hygiene.MIT- AlicenseNot gradedqualityBmaintenanceScans repositories to produce a readiness score and actionable fixes across positioning, tryability, community, MCP, and monetization, plus generates launch assets and sponsor-tier ideas.10 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables AI clients to audit GitHub repositories for Dependabot, code scanning, and secret scanning alerts, generate conservative remediation plans, and execute verified fixes through MCP tools with fail-closed mutation controls.-