PatchLabs MCP server
2026년 11월 15일 커밋AI로 구축된 애플리케이션의 보안 유출을 점검하고 RLS, 헤더, 데이터 노출 문제를 중심으로 자동 수정 기능을 제공합니다.
다른 이름 manra399/patchlabs
- 스타
- 0
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 3.1.0
- 마지막 커밋
- 2026년 11월 15일
- 라이선스
- —
PatchLabs MCP란?
PatchLabs은(는) MCP server입니다. AI로 구축된 애플리케이션의 보안 유출을 점검하고 RLS, 헤더, 데이터 노출 문제를 중심으로 자동 수정 기능을 제공합니다.
프로젝트 README에서 생성된 요약
PatchLabs MCP server 정보
PatchLabs는 AI로 구축된 애플리케이션을 대상으로 보안 유출 탐지 및 자동 복구 기능을 제공합니다. Row Level Security (RLS), 부적절한 헤더, 의도치 않은 데이터 노출과 관련된 취약점을 식별하는 데 집중합니다. 개발자는 이 서비스를 사용하여 GitHub repository를 스캔함으로써 개인 데이터가 권한이 없는 사용자에게 노출되지 않도록 보장할 수 있습니다.
시스템은 통제된 랩 환경 내에서 repository의 migrations를 기반으로 데이터베이스를 재구축하여 작동합니다. Docker와 Claude Code를 포함하는 파이프라인을 활용하여 유출을 찾아내고 수정 사항을 생성합니다. 이 과정에서 다양한 Claude 모델을 사용하며, 초기 랩 테스트가 실패할 경우 Haiku에서 Sonnet 또는 Opus로 모델을 격상하여 처리합니다.
사용자는 웹 인터페이스 또는 MCP server를 통해 서비스를 이용할 수 있습니다. MCP 구현체는 rls_check, start_check, get_check, list_apps, run_check와 같은 특정 도구를 제공합니다. 초기 점검을 위해서는 GitHub repository와 이메일이 필요하며, CI/CD 워크플로우를 위한 API 액세스에는 X-API-Key 인증을 사용합니다.
활용 사례
- 1Row Level Security 검증AI 클라이언트는 특화된 RLS 도구를 사용하여 데이터베이스 액세스 취약점을 점검할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
PatchLabs MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 PatchLabs MCP 설치
$ claude mcp add --transport http patchlabs https://api.patchlabs.dev/mcpCursor에 PatchLabs MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"patchlabs": {
"url": "https://api.patchlabs.dev/mcp"
}
}
}VS Code에 PatchLabs MCP 설치
.vscode/mcp.json
{
"servers": {
"patchlabs": {
"type": "http",
"url": "https://api.patchlabs.dev/mcp"
}
}
}VS Code CLI에 PatchLabs MCP 설치
$ code --add-mcp '{"name":"patchlabs","type":"http","url":"https://api.patchlabs.dev/mcp"}'Codex에 PatchLabs MCP 설치
$ codex mcp add patchlabs --url https://api.patchlabs.dev/mcpCodex config.toml에 PatchLabs MCP 설치
~/.codex/config.toml
[mcp_servers.patchlabs] url = "https://api.patchlabs.dev/mcp"
Gemini CLI에 PatchLabs MCP 설치
$ gemini mcp add -s user --transport http patchlabs https://api.patchlabs.dev/mcpGemini settings.json에 PatchLabs MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"patchlabs": {
"url": "https://api.patchlabs.dev/mcp",
"type": "http"
}
}
}자동 검사
2026년 11월 15일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능manra399/patchlabs is public and reachablegithub.com/manra399/patchlabs ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)No license결함 발견
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-15github.com/manra399/patchlabs ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답initialize answered with protocol 2025-06-18 in 428 ms통과
README
GitHub에서 보기PatchLabs
Leak checks and tested fixes for AI-built apps: https://patchlabs.dev
| Part | Where | Runs on |
|---|---|---|
docs/ |
Website: landing page, check status and report page, privacy | GitHub Pages (patchlabs.dev) |
api/ |
FastAPI: checks, accounts, workspaces, monitored apps, receipts, free RLS tool, MCP (see API below) | Azure Container Apps (api.patchlabs.dev) |
db/schema.sql |
Postgres schema, idempotent and additive; applied by the API on start | Azure Database for PostgreSQL, database patchlabs |
worker/ |
Takes verified checks, runs the lab pipeline (Docker + Claude Code), posts reports; deletes run folders older than 30 days | Manraj's Mac, kept alive by launchd |
Flow
- Visitor enters a GitHub repo and email on patchlabs.dev →
POST /checks. - They prove the repo is theirs by committing
patchlabs-verify.txtwith a one-time code →POST /checks/{id}/verify. - The worker claims the check (
POST /worker/claim), rebuilds the database from the repo's migrations in a lab, finds personal data the wrong people can read, has the fix agent write a fix (Haiku first, escalating to Sonnet then Opus only if the lab proof fails), and posts the report (POST /worker/checks/{id}/result). - The check page shows the report, the proof table and the fix, and offers the fix as a download. An email goes out at each step once SMTP is configured.
API
Contract: SPEC.md. JSON everywhere; errors are {"detail": "..."}. Signed-in calls send Authorization: Bearer <session>,
CI calls send X-API-Key: pl_live_..., worker and admin calls send their bearer tokens.
| Module | Endpoints |
|---|---|
app.py |
GET /health, POST /checks, GET /checks/{id}, POST /checks/{id}/verify, POST /worker/heartbeat|claim (claim also runs the scheduler), POST /worker/checks/{id}/result, GET /admin/checks |
accounts.py |
POST /workspaces/{wid}/webhook/rotate-secret, POST /auth/start|finish|logout, POST /invites/accept, GET|PATCH|DELETE /me, GET /me/export, GET /me/checks, GET|PATCH /workspaces/{wid}, POST /workspaces/{wid}/webhook/test, POST /workspaces/{wid}/invites, DELETE /workspaces/{wid}/invites/{id}, PATCH|DELETE /workspaces/{wid}/members/{uid}, GET|POST /workspaces/{wid}/api-keys, DELETE /workspaces/{wid}/api-keys/{kid}, POST /workspaces/{wid}/upgrade-request, GET /admin/workspaces, PATCH /admin/workspaces/{wid}, GET /admin/upgrade-requests |
monitor.py |
GET|POST /workspaces/{wid}/apps, GET|PATCH|DELETE /apps/{aid}, POST /apps/{aid}/verify, POST /apps/{aid}/checks, GET /badge/{aid}.svg, GET /public/apps/{aid}, GET /stats, POST /v1/apps/{aid}/checks, GET /v1/checks/{cid} |
receipts.py |
POST /checks/{id}/decision, POST /checks/{id}/answers, GET /checks/{id}/decisions (members), GET /receipts/{id}, GET /.well-known/patchlabs-receipt-key |
rls.py |
POST /tools/rls-check |
mcp_server.py |
POST /mcp (tools: rls_check, start_check, get_check, list_apps, run_check) |
Env: DATABASE_URL, WORKER_TOKEN, ADMIN_TOKEN, SITE_URL, CORS_ORIGINS, SMTP_*, RECEIPT_PRIVATE_KEY (required: base64
of a 32-byte Ed25519 seed, python3 -c "import os,base64;print(base64.b64encode(os.urandom(32)).decode())"; the API refuses to
start without it unless PATCHLABS_DEV=1), optional GITHUB_TOKEN, FOUNDER_EMAIL. Test hooks: EMAIL_OUTBOX, GITHUB_API,
RAW_GITHUB. Security rules (rate limits, verification, masking): see "Security rules" in SPEC.md.
Webhooks are signed: X-PatchLabs-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>"> with the workspace's
whsec_ secret and X-PatchLabs-Timestamp; verification snippet at https://patchlabs.dev/docs/webhooks#security.
Verify a receipt (signed bytes are the receipt as JSON with sorted keys and (",", ":") separators):
import base64, json, urllib.request
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PublicKey
API, CHECK = "https://api.patchlabs.dev", "<check id>"
r = json.load(urllib.request.urlopen(f"{API}/receipts/{CHECK}"))
k = json.load(urllib.request.urlopen(f"{API}/.well-known/patchlabs-receipt-key"))
assert r["key_id"] == k["key_id"], "signed with a different key"
msg = json.dumps(r["receipt"], sort_keys=True, separators=(",", ":")).encode()
pub = Ed25519PublicKey.from_public_bytes(base64.b64decode(k["public_key"]))
pub.verify(base64.b64decode(r["signature"]), msg) # raises InvalidSignature if anything was changed
print("receipt is genuine:", r["receipt"]["status"], r["receipt"]["tables_leaking"])
Tests: tools/test-api.sh runs the whole suite in Docker (throwaway postgres:17 + python:3.13-slim) and cleans up after
itself; extra arguments go to pytest, e.g. tools/test-api.sh -k webhook -x.
Deploy the API
TAG=$(date +%Y%m%d%H%M)
az acr build -r sponsorjobsregistry -t patchlabs-api:$TAG -f api/Dockerfile .
az containerapp update -g ics-rg -n patchlabs-api --image sponsorjobsregistry.azurecr.io/patchlabs-api:$TAG
Before the first v2 deploy, set RECEIPT_PRIVATE_KEY as a secret on the container app: without it the new image won't start.
PatchLabs MCP 질문
PatchLabs MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --transport http patchlabs https://api.patchlabs.dev/mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
PatchLabs MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
점검을 위해 GitHub repository 소유권을 어떻게 확인하나요?
일회용 코드가 포함된 patchlabs-verify.txt 파일을 해당 repository에 커밋하여 소유권을 증명해야 합니다.
MCP server를 통해 어떤 도구를 사용할 수 있나요?
MCP server는 RLS 점검, 점검 시작, 점검 조회, 앱 목록 확인, 점검 실행을 위한 도구를 제공합니다.