PatchLabs MCP sunucusu
Commit 15 Kas 2026Yapay zeka ile oluşturulan uygulamalarda RLS, header'lar ve veri ifşası konularına odaklanarak güvenlik sızıntısı kontrolleri gerçekleştirir ve otomatik düzeltmeler sağlar.
Ayrıca bilinen adı manra399/patchlabs
- Yıldızlar
- 0
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- 3.1.0
- Son commit
- 15 Kas 2026
- Lisans
- —
PatchLabs MCP nedir?
PatchLabs bir MCP sunucusudur. Yapay zeka ile oluşturulan uygulamalarda RLS, header'lar ve veri ifşası konularına odaklanarak güvenlik sızıntısı kontrolleri gerçekleştirir ve otomatik düzeltmeler sağlar.
Özet, projenin README dosyasından oluşturuldu
PatchLabs MCP sunucusu hakkında
PatchLabs, yapay zeka ile oluşturulan uygulamalar için güvenlik sızıntısı tespiti ve otomatik iyileştirme hizmeti sunar. Satır Düzeyinde Güvenlik (RLS), hatalı header kullanımı ve istenmeyen veri ifşası ile ilgili güvenlik açıklarını belirlemeye odaklanır. Geliştiriciler, kişisel verilerin yetkisiz kullanıcılar tarafından erişilebilir olmadığını doğrulamak için GitHub depolarını taramak amacıyla bu hizmeti kullanırlar.
Sistem, bir deponun migration dosyalarından kontrollü bir laboratuvar ortamında veritabanını yeniden oluşturarak çalışır. Sızıntıları bulmak ve düzeltmeler oluşturmak için Docker ve Claude Code içeren bir pipeline kullanır. Servis bu süreçte farklı Claude modellerini kullanır; Haiku ile başlayıp, ilk laboratuvar kanıtı başarısız olursa Sonnet veya Opus modellerine geçer.
Kullanıcılar servis ile web arayüzü üzerinden veya MCP server aracılığıyla etkileşime girebilirler. MCP implementasyonu; rls_check, start_check, get_check, list_apps ve run_check gibi özel araçlar sunar. Entegrasyon için başlangıç kontrollerinde bir GitHub deposu ve e-posta adresi gerekirken, CI/CD iş akışları için API erişimi X-API-Key kimlik doğrulaması kullanır.
Neler yapabilirsiniz
- 1Satır Düzeyinde Güvenliği DoğrulayınBir yapay zeka istemcisi, veritabanı erişim açıklarını kontrol etmek için özelleşmiş RLS aracını kullanabilir.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
PatchLabs MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıCursor'a ekleGoose'a eklePatchLabs MCP'yi Claude Code içine yükleyin
$ claude mcp add --transport http patchlabs https://api.patchlabs.dev/mcpPatchLabs MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"patchlabs": {
"url": "https://api.patchlabs.dev/mcp"
}
}
}PatchLabs MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"patchlabs": {
"type": "http",
"url": "https://api.patchlabs.dev/mcp"
}
}
}PatchLabs MCP'yi VS Code CLI içine yükleyin
$ code --add-mcp '{"name":"patchlabs","type":"http","url":"https://api.patchlabs.dev/mcp"}'PatchLabs MCP'yi Codex içine yükleyin
$ codex mcp add patchlabs --url https://api.patchlabs.dev/mcpPatchLabs MCP'yi Codex config.toml içine yükleyin
~/.codex/config.toml
[mcp_servers.patchlabs] url = "https://api.patchlabs.dev/mcp"
PatchLabs MCP'yi Gemini CLI içine yükleyin
$ gemini mcp add -s user --transport http patchlabs https://api.patchlabs.dev/mcpPatchLabs MCP'yi Gemini settings.json içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"patchlabs": {
"url": "https://api.patchlabs.dev/mcp",
"type": "http"
}
}
}Otomatik kontroller
Çalıştırıldı 15 Kas 2026Tam rapor →Henüz doğrulanmadı. Bir sunucunun 80 puana, ciddi bir bulgu olmamasına ve kontrol edebilmemiz için yeterli veriye ihtiyacı vardır. Kontroller nasıl çalışır · Daha fazla puan için nelerin düzeltileceği
- Kaynak deposu bağlantılı ve erişilebilirmanra399/patchlabs is public and reachablegithub.com/manra399/patchlabs ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyorKontrol edilmedi
- Derleme kökeni (Sigstore onayı)Kontrol edilmedi
- Açık kaynak lisansı (OSI)No licenseBulgu
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-11-15github.com/manra399/patchlabs ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilKontrol edilmedi
- Pakette veya bağımlılıklarında kritik uyarı yokKontrol edilmedi
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorinitialize answered with protocol 2025-06-18 in 428 msGeçti
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 soruları
PatchLabs MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add --transport http patchlabs https://api.patchlabs.dev/mcp komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
PatchLabs MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
Bir kontrol için bir GitHub deposuna sahip olduğumu nasıl doğrulayabilirim?
Depoya, tek kullanımlık bir kod içeren patchlabs-verify.txt adlı bir dosya commit ederek sahipliğinizi kanıtlamanız gerekir.
MCP server üzerinden hangi araçlar kullanılabilir?
MCP server; RLS kontrolleri, kontrol başlatma, kontrol bilgilerini alma, uygulamaları listeleme ve kontrol çalıştırma için araçlar sağlar.