Prufa Mcp

io.github.prufa-dev由 GitHub 账号 prufa-dev 发布v0.2.3更新于 Oct 24, 2026

The full Prufa QA agent over MCP: audits, flows, monitors, gremlin chaos, discovery.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

Prufa 的 QA 智能体 MCP 服务器:审计网页应用的流程、控制台错误、埋点、合规、安全响应头与无障碍问题,并返回分级结果。

可以做什么
  • 对公开页面执行一次性审计,返回含严重级别、影响说明与修复建议的分级 JSON 报告
  • 获取、轮询、列出报告、运行记录、发现项与告警
  • 创建、确认、编辑、运行和删除多步骤测试流程,并保存流程凭据
  • 启动、暂停、恢复、触发定时监控并轮换部署钩子密钥,查看投递日志
  • 在已授权域名上运行混沌测试,授权写操作,并把复现的缺陷路径转为流程
  • 对 DNS 验证过的域名进行爬取以发现并起草流程,并管理工作区、用量、通知与账单链接
适用场景
适合快速上线网页应用、希望让编码智能体检查已部署或预发布地址是否存在严重回归的场景,也适合把重复检查变成监控或 CI 门禁。需要脚本化用户流程和混沌测试的团队同样适用。
运行要求
以 stdio 本地进程运行,从 PyPI 安装(pipx 或 pip),需要 Python 环境。审计需要 Prufa 账号与 API 密钥,通过 PRUFA_API_TOKEN 环境变量或配置文件提供。需要能访问 Prufa API 的网络。
安装前请注意
需要提供可访问工作区的 API 令牌(PRUFA_API_TOKEN),应避免写入命令历史或共享配置。付费工具会返回 402 与结账链接,账单工具返回 Stripe 链接,套餐与额度可能产生费用。流程凭据与混沌测试保存的登录信息会存放在服务端,混沌测试在你授权的域名上可能执行真实写操作。审计会把目标网址与页面数据发送到 Prufa 服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Prufa Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

prufa-mcp — the QA agent for your vibe-coded app

Vibe-coded apps ship faster than anyone can review them. In June 2026 we audited 49 fresh Show HN launches — 38 had a critical bug on day one: a broken signup, a silent console error, analytics that never fired, a consent banner that did nothing.

Prufa is the agent that catches those before your users do. Point it at a URL and it audits the things humans skip when they're moving fast — broken flows, JS console errors, missing tracking, consent violations, security headers, mobile tap targets, accessibility — and hands back machine-verified findings, graded A–F. This repo is the open-source MCP server that wires that audit straight into your coding agent.

30-second demo

[Installing prufa-mcp and wiring it into Claude Code]

What an audit gives you

Ask your agent to audit https://yourapp.com and prufa_run_audit returns one JSON report. Findings are grouped into graded sections, each finding carries a severity, the impact (why it matters), and a fix hint. Real output, trimmed:

jsonc
{  "url": "https://yourapp.com",  "headline": "2 warnings found",  "counts": { "critical": 0, "warning": 2, "info": 5 },  "sections": [    { "label": "Works",     "grade": "C", "counts": { "warning": 2, "info": 1 } },    { "label": "Fast",      "grade": "A" },    { "label": "Found",     "grade": "A" },    { "label": "Compliant", "grade": "A" }  ],  "check_results": [    {      "check_id": "ux",      "findings": [{        "severity": "warning",        "title": "2 javascript console error(s) during page load",        "impact": "Errors at load time often mean broken features visitors never report.",        "evidence": { "count": 2, "sample": [          "Access to XMLHttpRequest at 'https://api.fontshare.com/...' blocked by CORS policy",          "Failed to load resource: net::ERR_FAILED"        ]}      }]    },    {      "check_id": "mobile",      "findings": [{        "severity": "warning",        "title": "13 tap target(s) smaller than 24px",        "impact": "Fingers are not cursors — undersized buttons mean mis-taps on exactly the elements you want pressed.",        "fix_hint": "Give interactive elements at least 24x24px of hit area (WCAG 2.5.8)."      }]    },    {      "check_id": "security",      "findings": [{        "severity": "info",        "title": "no Content-Security-Policy header",        "impact": "Without a CSP, one injected script owns the page — and every third-party tag you load is trusted completely.",        "fix_hint": "Start with a report-only CSP and tighten from real violation reports."      }]    }  ],  "report_url": "/r/G82RpzTi_zn-o71_XoMLCprP7uvCQP87"}

report_url is a shareable HTML version of the same report. The full payload also includes tracking, consent, seo/aeo, a11y, forms, and detected user flows — see the OSS surface below.

Install

The package is on PyPI. Install it globally with pipx (recommended — isolated venv, exposes the prufa-mcp binary on your PATH) or into a project venv with pip:

bash
# Recommended — global install, isolated venvpipx install prufa-mcp
# Or, into your project venvpip install prufa-mcp
# Pin a specific version with ==, e.g. pipx install prufa-mcp==0.1.3
# Verify the binary is on PATHwhich prufa-mcp# Should print something like: /Users/you/.local/bin/prufa-mcp

You also need a free Prufa API key. The first audit is free, no card required.

  1. Sign in at prufa.dev (Google OAuth)
  2. Create an API key from the dashboard

Wire into your agent

The MCP server runs as a stdio subprocess, spawned by your agent on first use. The cleanest way to register it is claude mcp add (Claude Code's built-in command — it writes the config to ~/.claude.json correctly, which the ~/.claude/mcp.json path does NOT).

Claude Code (recommended path)

bash
# Get the absolute path of the binary (use whatever `which prufa-mcp` returned)PRUFA_BIN=$(which prufa-mcp)
# Add the MCP server. The token stays out of your shell history.read -s -p "Prufa API token: " PRUFA_TOKEN && echoclaude mcp add \  --scope user \  --env "PRUFA_API_TOKEN=$PRUFA_TOKEN" \  prufa \  -- "$PRUFA_BIN"

Restart Claude Code (config is read at startup), then verify:

/mcp

You should see prufa listed as Connected, with prufa_run_audit and prufa_get_report as available tools.

Cursor / Cline / Continue (hand-edit .mcp.json)

In your project root or in ~/.config/Claude/ etc.:

json
{  "mcpServers": {    "prufa": {      "command": "/Users/you/.local/bin/prufa-mcp",      "env": {        "PRUFA_API_TOKEN": "your-prufa-api-key"      }    }  }}

Restart the host app. The command path must be the absolute binary path (not ~, not $()) — those don't expand in MCP config.

Prefer config files to env vars? Drop your token in ~/.config/prufa/mcp.json instead — see ADVANCED.md.

Use it

In your agent:

> audit https://my-vibe-coded-app.com and show me the criticals> run prufa on my staging deploy> fetch the report for the audit I just ran

prufa_run_audit with wait=true (the default) blocks until the audit completes and returns the JSON report directly — typically 25–60s for a public page. If you set wait=false, the call returns immediately with the queued state plus a share_token you can poll with prufa_get_report.

What you get — the full agent surface

prufa-mcp exposes the whole product over MCP (44 tools). Point your agent at Prufa and it can audit pages, drive multi-step flows, watch for regressions, run chaos tests, run full-auto discovery, and manage the workspace + billing — no dashboard round-trip. Free/anonymous tools need no card; Pro tools return the API's 402 with a checkout link when you're not on a plan (the tool is visible, the paywall is server-side).

Audit & reports

ToolWhat it does
prufa_run_audit(url, wait=true)One-shot public-page audit; blocks and returns findings JSON.
prufa_get_report(run_id?, share_token?)Fetch a report by UUID or /r/ slug.
prufa_get_run(run_id)Poll a run's status.
prufa_list_runs(limit)Recent runs in the workspace.
prufa_get_finding(run_id, finding_key?)Persisted findings, machine-readable.
prufa_list_alerts()Alert ledger (newest first, incl. suppressions).

Workspace, usage & conversion

ToolWhat it does
prufa_setup_workspace(owner_email, name?)Create a free, no-card agent_temp workspace (7-day trial) and return an API token once. If a token is already set, returns the real workspace + trial state.
prufa_get_workspace()Current workspace + inlined usage + a trial block.
prufa_get_usage()Usage object + trial/upsell blocks — call before metered actions.
prufa_workspace_settings(...)Usage webhook, auto-recharge, email/Slack switches.
prufa_set_notifications(cells)The 9-event × {email, slack} routing matrix.

Billing (returns a URL for the human to open — never takes a card)

ToolWhat it does
prufa_upgrade_plan(tier)Stripe checkout URL for a paid plan (starter/pro/team).
prufa_buy_credits(credits)Stripe checkout URL for a one-time credit pack.
prufa_billing_portal()Stripe customer portal URL (card, invoices, cancel).

Flows (describe a journey → reviewable spec → run)

ToolWhat it does
prufa_create_flow(url, test_case, name?)Compile a plain-text test case to a draft spec.
prufa_confirm_flow(flow_id, spec?)Approve a draft — only confirmed flows run.
prufa_run_flow(flow_id, credentials?)Execute a confirmed flow.
prufa_set_flow_credentials(flow_id, credentials)Store {{VAR}} values (write-only).
prufa_edit_flow(flow_id, spec)Edit the spec (returns it to draft).
prufa_get_flow · prufa_list_flows · prufa_delete_flowRead · list · remove.

Monitors (watch a URL or flow on a schedule)

ToolWhat it does
prufa_start_monitor(url, cadence?, flow_id?)1-click monitor; returns a deploy-hook secret once.
prufa_trigger_monitor(monitor_id)Run now (rate-capped).
prufa_pause_monitor · prufa_resume_monitor · prufa_get_monitor · prufa_list_monitors · prufa_delete_monitorLifecycle.
prufa_rotate_monitor_webhook(monitor_id)Rotate the deploy-hook secret.
prufa_list_monitor_deliveries(monitor_id)Deploy-hook delivery log + CI snippets.

Gremlin (chaos QA)

ToolWhat it does
prufa_run_gremlin(url, persona?, direction?, credentials?)Imitate a difficult user; detectors verify what breaks. Mutations dry-run unless authorized; payments never execute.
prufa_rerun_gremlin(run_id)Re-run a past gremlin with the same intent + saved login.
prufa_authorize_domain(host, allow_mutation?)Allow real (non-payment) writes on a host you own.
prufa_list_gremlin_domains()List mutation authorizations.
prufa_gremlin_saved_logins()Reuse a prior login (owning workspace only — sensitive).
prufa_promote_gremlin_path(share_token, path_index)Turn a reproduced bug path into a draft flow.

Discovery (full-auto — crawl, infer flows, draft them)

ToolWhat it does
prufa_register_discovery_domain(domain)Register a domain, get the DNS TXT record to publish.
prufa_verify_discovery_domain(domain_id)Verify the DNS proof.
prufa_list_discovery_domains · prufa_revoke_discovery_domainManage authorized domains.
prufa_run_discovery(url)Crawl a verified site and draft its meaningful flows.
prufa_get_discovery(discovery_id)Run status + the flows it surfaced.

Plus prufa_health_check() (probe the server/API).

The free trial, and when to upgrade

prufa_setup_workspace mints a free agent_temp workspace: no card, a 7-day trial, and an included credit budget. Monitors, discovery, and full-length gremlin runs work during the trial, then need a paid plan.

The MCP makes this legible to your agent: prufa_get_usage, prufa_setup_workspace, and every metered result carry a trial block (days + credits remaining) and, when you're low on credits or near the trial's end, an upsell block with a message_for_human your agent can relay plus the exact tool to call (prufa_upgrade_plan / prufa_buy_credits). When a Pro tool is called off-plan, the 402 passes through with a checkout_url — no silent failures, no surprise charges.

Examples

Three runnable scripts in examples/:

  • examples/nextjs-app/ — audit a deployed Next.js app
  • examples/vite-spa/ — audit a Vite SPA (focuses on client-side routing audits)
  • examples/stripe-checkout/ — audit a Stripe-checkout page (payment-flow verification)

Each is a copy-pasteable demo:

bash
export PRUFA_API_TOKEN=...python examples/nextjs-app/audit.py https://your-nextjs-app.com

GitHub Action

Fail a PR when Prufa finds a critical regression:

yaml
# .github/workflows/prufa-scan.ymlname: Prufa scanon: [pull_request]jobs:  audit:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4      - uses: actions/setup-python@v5        with:          python-version: "3.11"      - run: pip install prufa-mcp      - name: Run audit        env:          PRUFA_API_TOKEN: ${{ secrets.PRUFA_API_TOKEN }}        run: |          python -c "          import asyncio, sys          from prufa_mcp.audit import run_audit          report = asyncio.run(run_audit(url='${{ secrets.STAGING_URL }}', wait=True))          print(report.get('headline', 'audit complete'))          criticals = report.get('counts', {}).get('critical', 0)          if criticals:              print(f'::error::Prufa found {criticals} critical finding(s)', file=sys.stderr)              sys.exit(1)          "

See examples/prufa-scan.yml for the full template.

License

Apache-2.0. See LICENSE. Contributions welcome — see CONTRIBUTING.md.

来源:README.md,提交 3d9e90b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分