SwiPR

SwiPR

swipr•bynochinxx

A hosted MCP server that surfaces GitHub pull request review context, including risk scores, similar past changes, contributor history, callers, and related tests, for agents and chat clients.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Looks up and analyzes a specific pull request by owner/repo and number, returning files, patches, risk score, contributor stats, and cached AI summary.
  • •Computes a heuristic risk score from 0 to 100 with reasons, based on signals like diff size, files changed, config/CI changes, test coverage, and contributor history.
  • •Finds semantically similar past pull requests and surfaces contributor history such as PR count, merge rate, and first contribution date.
  • •Helps inspect changed code by searching patches for function callers, locating test files likely covering the diff, and summarizing recent contributors to a file.

BEST FOR

  • •Reviewing a specific pull request from chat and understanding its risk and similar past changes.
  • •Finding open pull requests in a repository that touch a particular area such as the router.
  • •Locating tests that cover the files changed in a pull request.

ABOUT SWIPR

SwiPR is cataloged as an MCP server attributed to nochinxx. A hosted MCP server that surfaces GitHub pull request review context, including risk scores, similar past changes, contributor history, callers, and related tests, for agents and chat clients. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for SwiPR are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do the hosted MCP tools consume AI credits?

No; all 12 MCP tools are pure database reads, so using the hosted server consumes zero AI credits.

How is the risk score calculated?

The risk heuristic lives entirely in plain TypeScript in lib/scoring.ts, using no ML or external calls, and adds points for signals such as large diffs, many changed files, config/CI changes, missing tests, or first-time contributors.

Does SwiPR post reviews or modify pull requests?

No; the project intentionally keeps read-only access and does not add GitHub OAuth or actual PR posting.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f21d9c02ab76 · 采集于 2026-11-13 11:42:17 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

SwiPR

Swipe-to-review GitHub PRs with AI context. Works as a Claude MCP plugin.

Try the live demo → · Add to Claude Desktop ↓ · Listed on smithery.ai


Why this exists

Zeno Rocha (CEO of Resend) on X:

"the cost of opening a PR has dropped to zero. now, we have tons of draft PRs waiting for a finite (and ultra precious) resource: attention. turns out the bottleneck is no longer creation. it's reviewing." — Feb 2026

"before our main repo had an average of ~20–40 open PRs on any given day. now, we average ~130–200 open PRs." — May 2026

PR review is a context problem. Whether a maintainer is triaging or an AI agent is deciding whether to merge, the question is the same: is this safe to ship? Answering it well requires knowing the risk level, contributor history, similar past changes, and which tests cover the diff — not just reading the lines changed.

SwiPR surfaces that context as a swipe UI for humans and an MCP server for agents.


How it works

  1. Paste any public GitHub repo — SwiPR fetches open PRs and stores them with embeddings
  2. Swipe right to approve, left to request changes, down to skip — or use J / F / Space
  3. The right panel surfaces: risk score, AI summary, similar past PRs, contributor history
  4. Hit "Why is this risky?", "Show me callers", or "What tests cover this?" for deeper context on demand
  5. Ask anything in the chat — the AI has access to the full diff and codebase context

AI context is cached per PR — no repeated API calls on every card view.


MCP server

SwiPR exposes the same PR context as an MCP server. Add it to Claude Desktop or Cursor and review PRs directly from chat — no browser required.

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "swipr": {
      "command": "npx",
      "args": ["-y", "supergateway", "--streamableHttp", "https://v0-swipr-build.vercel.app/api/mcp"]
    }
  }
}

Then ask Claude:

  • "Look up resend/resend-node PR #1247 — what's the risk and are there similar past changes?"
  • "Which open PRs in vercel/next.js touch the router?"
  • "Find tests that cover the changed files in PR #892."

All 12 MCP tools are pure database reads — zero AI credits consumed when using the hosted server.

SwiPR is listed on smithery.ai and mcp.so.

Available tools

ToolWhat it returns
lookup_prResolve owner/repo#number → internal ID
analyze_prFull PR data: files, patches, risk score, contributor stats, cached AI summary
risk_score0–100 heuristic score with reasons
find_similar_changesPast PRs in the same repo with semantic similarity
get_contributor_historyPR count, merge rate, first contribution date
inspect_fileRaw file content at HEAD
find_callersSearch patches for usages of a function name
find_related_testsTest files that likely cover the changed code
git_blame_summaryRecent contributors to a file path
compare_withFile content at an arbitrary git ref
record_decisionCapture approve / changes / skip
summarize_sessionEnd-of-session stats

Bring your own AI key

The chat feature works with any of these free-tier providers — click the ⌘ button in the header and paste your key. It's stored in your browser's localStorage only, never sent to the server.

ProviderKey formatFree tier
Groqgsk_...Yes — Llama 3.3 70B
Google GeminiAIza...Yes — Gemini 2.0 Flash
Anthropicsk-ant-...Paid — Claude Sonnet 4.6

Customizing risk scoring

The risk heuristic lives entirely in lib/scoring.ts — plain TypeScript, no ML, no external calls. Edit it to match your team's standards.

Default rules:

SignalScore
Large diff (>500 lines)+20
Medium diff (200–500 lines)+10
Many files changed (>20)+15
Touches config/lock/CI files+20
No test files changed+10
Empty PR description+10
First-time contributor+15
New contributor (<3 prior PRs)+8
Low historical merge rate (<40%)+10

To add a rule, add an if block in computeRiskScore:

const touchesAuth = files.some((f) => f.filename.includes("lib/auth"));
if (touchesAuth) {
  score += 25;
  reasons.push("Touches auth module — requires security review");
}

Score is capped at 100. Color thresholds (green/yellow/red) are at 40 and 70 — adjust in app/swipe/_components/view-helpers.ts.


Self-hosting

Requires three services — all have free tiers.

1. Clone and install

git clone https://github.com/nochinxx/SwiPR.git
cd SwiPR
pnpm install

2. Create accounts

ServicePurposeFree tier
NeonPostgres + pgvector512 MB
Vercel AI GatewayClaude + embeddings$5 credits
GitHub PAT (optional)Higher API rate limitsFree

3. Configure environment

cp .env.example .env.local
DATABASE_URL=postgresql://...      # Neon pooled connection string
AI_GATEWAY_API_KEY=...             # Vercel AI Gateway key
GITHUB_TOKEN=...                   # Optional — raises GitHub rate limit to 5000/hr

4. Initialize the database

-- Run in Neon SQL editor
CREATE EXTENSION IF NOT EXISTS vector;
pnpm db:push
-- Add HNSW indexes for fast similarity search
CREATE INDEX IF NOT EXISTS prs_embedding_idx ON prs USING hnsw (embedding vector_cosine_ops);
CREATE INDEX IF NOT EXISTS pr_files_embedding_idx ON pr_files USING hnsw (embedding vector_cosine_ops);

5. Run and deploy

pnpm dev          # local dev
pnpm build        # verify before deploying
pnpm precache     # pre-load repos for a demo

Push to GitHub, connect to a Vercel project, set the same env vars in Vercel settings. Point your Claude Desktop config at your own deployment URL.


Storage limits

Neon's free tier holds ~512 MB. Each ingested PR uses ~100 KB. That's around 5,000 PRs or 40–50 mid-sized repos before needing an upgrade. Ingest is capped at 100 open PRs per repo.


Stack

  • Next.js 16 — App Router, React 19
  • Tailwind v4 + shadcn/ui — styling
  • Framer Motion — card animations
  • Neon Postgres + pgvector — PR storage and similarity search
  • Drizzle ORM — schema and queries
  • Vercel AI Gateway — Claude Sonnet 4.6 (analysis), text-embedding-3-small (vectors)
  • @ai-sdk/anthropic · @ai-sdk/google · @ai-sdk/groq — BYOK chat support
  • mcp-handler — MCP server at /api/mcp

Contributing

Issues and PRs welcome.

  • Stack is Next.js App Router + Drizzle + Neon + Vercel AI SDK — no other abstractions.
  • Risk scoring in lib/scoring.ts — heuristic improvements especially welcome.
  • Don't add GitHub OAuth or actual PR posting. Read-only access is intentional.
  • Run pnpm build before opening a PR.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for SwiPR from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/swipr)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools