mcp

v0.2.0
tech.bugbrain/mcp Checked 4 days ago Published 4 months ago

BugBrain QA platform for AI coding tools: autonomous exploratory testing, test plans, a11y audits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bugbrain_connect Connect to BugBrain

Validate the API key and return the active organization, plan, usage/quota, and the scopes this key holds. Call this first to confirm the connection.

list_projects List projects

List the projects (web apps under test) in the connected organization.

get_project Get project

Fetch a single project by id (name, websiteUrl, environment, whether credentials are configured).

ParameterTypeDescription
projectId *stringThe project id (proj_…).

start_exploratory_run Start exploratory run (autonomous bug discovery)

Kick off an AUTONOMOUS exploratory test run: the AI agent explores the site, discovers flows, and finds bugs/accessibility issues nobody scripted. Returns immediately with a run id — poll get_run_status (or use watch_run) for progress.

ParameterTypeDescription
projectId *stringThe project id (proj_…) to test.
briefstringOptional 1–3 sentence focus, e.g. "focus on the checkout flow I just changed".
idempotencyKeystringOptional idempotency key; auto-generated when omitted so retries never double-spend quota.
targetUrlstringOptional URL override (e.g. a tunnel URL from create_tunnel) to test instead of the project website.

start_regression_run Start regression run

Start a run intended for regression: explores like an exploratory run, then use get_run_comparison to diff issues against the previous run (new / resolved / still-present).

ParameterTypeDescription
projectId *stringThe project id (proj_…) to test.
briefstringOptional 1–3 sentence focus, e.g. "focus on the checkout flow I just changed".
idempotencyKeystringOptional idempotency key; auto-generated when omitted so retries never double-spend quota.
targetUrlstringOptional URL override (e.g. a tunnel URL from create_tunnel) to test instead of the project website.

list_runs List runs

List recent runs for a project (or across the org when projectId is omitted).

ParameterTypeDescription
projectIdstringOptional project id to scope the list.

get_run_status Get run status

Fetch a run’s status, counters, business context, and discovered test plan.

ParameterTypeDescription
runId *stringThe run id — accepts the short id (e.g. CHK-R12) or the full id.

get_run_trace Get run trace

Fetch the step-by-step agent trajectory (thought / action / observation) for a run.

ParameterTypeDescription
runId *stringThe run id — accepts the short id (e.g. CHK-R12) or the full id.

list_run_issues List run issues

List the issues a run found, with severity, category, page URL, AI confidence, and screenshot links.

ParameterTypeDescription
runId *stringThe run id — accepts the short id (e.g. CHK-R12) or the full id.

get_run_comparison Compare run to previous (regression diff)

Diff a run’s issues against the previous run for the project: new / resolved / still-present.

ParameterTypeDescription
runId *stringThe run id — accepts the short id (e.g. CHK-R12) or the full id.

cancel_run Cancel run

Request cancellation of an in-flight run.

ParameterTypeDescription
runId *stringThe run id — accepts the short id (e.g. CHK-R12) or the full id.

list_test_cases List test cases

List curated test cases for a project (or across the org when projectId is omitted).

ParameterTypeDescription
limitinteger
projectIdstringOptional project id to scope the list.
searchstring
statusstring

create_test_case Create test case from natural language

Create a curated test case from a plain-English description (e.g. "verify a user can reset their password"). The AI turns it into structured steps.

ParameterTypeDescription
naturalLanguage *stringPlain-English description of the flow to test.
projectId *stringThe project id (proj_…).

execute_test_case Execute test case

Run a single curated test case. Returns immediately with an execution id — poll get_execution_result for the PASS / FAIL / INCONCLUSIVE verdict and confidence.

ParameterTypeDescription
testCaseId *stringThe test case id — accepts the short id (e.g. CHK-TC45) or the full id.
idempotencyKeystring

get_execution_result Get test-case execution result

Fetch a test-case execution: status, verdict (PASS/FAIL/INCONCLUSIVE), confidence, and evidence.

ParameterTypeDescription
executionId *stringThe execution id (tce_…).

get_execution_failure Get execution failure (with repro)

For a FAILED execution: the failing step + reasoning, plus a local Playwright reproduce command and trace/HAR/storage-state URLs so you can reproduce it on your machine.

ParameterTypeDescription
executionId *stringThe execution id (tce_…).

generate_test_cases Generate test cases (AI Synthesizer)

Run the Synthesizer agent to generate curated test cases from the project’s learned knowledge + recent runs. Returns a job id immediately; poll list_test_cases to see new cases appear.

ParameterTypeDescription
projectId *stringThe project id (proj_…).
countintegerHow many cases to attempt (default server-side).

list_test_plans List test plans

List test plans (collections of test cases) for a project, or across the org.

ParameterTypeDescription
projectIdstringOptional project id to scope the list.

execute_test_plan Execute test plan

Run an entire test plan (its cases, in parallel). Returns immediately with a test-plan-run id — poll get_test_plan_run for the pass/fail rollup.

ParameterTypeDescription
testPlanId *stringThe test plan id — accepts the short id (e.g. CHK-TP2) or the full id.

get_test_plan_run Get test-plan run

Fetch a test-plan run rollup: items total/passed/failed/skipped, status, duration.

ParameterTypeDescription
testPlanRunId *stringThe test-plan-run id (tpr_…).

run_accessibility_audit Run accessibility audit (WCAG)

Run a dedicated WCAG 2.1/2.2-AA accessibility audit (axe-core + agent verification). Returns immediately with a run id — poll get_run_status, then get_accessibility_report for the score.

ParameterTypeDescription
projectId *stringThe project id (proj_…).
wcagTargetstringWCAG conformance target.

get_accessibility_report Get accessibility report

Fetch the aggregated accessibility report: WCAG score, failing rules (with criteria/level), per-page breakdown, and coverage.

ParameterTypeDescription
projectId *stringThe project id (proj_…).

run_compliance_scan Run compliance scan

Run a compliance scan (SOC2 / GDPR / ADA / WCAG 2.2 AA / ISO 27001 / EU AI Act) that maps findings to framework controls with evidence. Returns a run id immediately — poll get_run_status, then get_compliance_report.

ParameterTypeDescription
projectId *stringThe project id (proj_…).
frameworksarrayFrameworks to scan against; defaults server-side when omitted.

get_compliance_report Get compliance report

Fetch the aggregated compliance report: per-framework score, control-by-control status + evidence counts, manual-only controls, and overall risk level.

ParameterTypeDescription
projectId *stringThe project id (proj_…).

push_finding_to_tracker Push compliance finding to Jira/Linear

File a compliance finding (by its signature) into the org’s connected issue tracker (Jira or Linear). Returns the created issue key + URL.

ParameterTypeDescription
projectId *stringThe project id (proj_…).
signature *stringThe finding signature (from get_compliance_report / list_run_issues).
target *stringWhich connected tracker to file into.

list_project_issues List project issues

List issues for a project, with severity, category, status, page URL, and AI confidence.

ParameterTypeDescription
projectId *stringThe project id (proj_…).

triage_issue Triage an issue (root cause + fix)

Fetch one issue’s full detail incl. the AI triage: root-cause hypothesis, impact area, reproduction confidence, an engineering summary, and a suggested fix.

ParameterTypeDescription
issueId *stringThe issue id — accepts the short id (e.g. CHK-I3) or the full id.
projectId *stringThe project id (proj_…).

test_changed_files Test what I changed

Given the files changed in your diff, pick the most relevant APPROVED test cases (by token overlap vs title/module/tags) and run them. Returns the selection + the queued executions. Set dryRun=true to only see the selection. Poll get_execution_result for each verdict.

ParameterTypeDescription
changedPaths *arrayChanged file paths from your diff, e.g. ["apps/web/app/checkout/page.tsx"].
projectId *stringThe project id (proj_…).
dryRunbooleanWhen true, only return the selection — do not execute.
limitintegerMax cases to select (default 10).
maxExecuteintegerMax cases to actually run (default 5).

get_run_observation Get run observation (trust judge)

Fetch the LLM-as-judge trust report for a run: per-issue validity (real / false-positive / insufficient-evidence), failure root-cause, and an overall run-quality score (1–5). Set generate=true to (re)generate it (spends LLM budget). The honest answer to "can I trust this run?".

ParameterTypeDescription
runId *stringThe run id — accepts the short id (e.g. CHK-R12) or the full id.
generatebooleanGenerate (or regenerate) the report instead of reading the cached one.

ci_gate CI gate (run → wait → pass/fail)

One-call CI gate: start a run (exploratory / accessibility / compliance), wait for it to finish, then PASS/FAIL it against thresholds — severity, max new issues vs the previous run, and a minimum trust score. Returns a clear verdict + reasons for your pipeline. Blocks until the run completes or times out.

ParameterTypeDescription
projectId *stringThe project id (proj_…).
briefstringFocus hint (exploratory mode).
failOnobjectGate thresholds. Omit to pass unless the run itself fails.
frameworksarray
modestring
pollIntervalMsinteger
targetUrlstringURL override, e.g. a tunnel URL (exploratory mode).
timeoutMsintegerMax wait (default 600000).
wcagTargetstringAccessibility mode target.

list_api_keys List API keys

List the organization’s API keys (id, name, scopes, created/last-used). Never returns the secret.

mint_api_key Mint a scoped API key

Create a new least-privilege API key. Pass `scopes` to restrict it (empty = full access). The secret is returned ONCE — store it immediately.

ParameterTypeDescription
name *stringA label, e.g. "CI pipeline" or "local dev".
scopesarrayAllow-list of scopes; omit/empty for full access.

revoke_api_key Revoke an API key

Permanently revoke an API key by id.

ParameterTypeDescription
apiKeyId *stringThe API key id to revoke.

list_webhooks List webhooks

List the organization’s outbound webhook subscriptions (url, events, enabled).

register_webhook Register a webhook

Subscribe a public https URL to run events (run.completed / run.failed) for push-driven CI. Returns the signing secret ONCE — store it to verify the HMAC signature on delivery.

ParameterTypeDescription
url *stringPublic https endpoint to POST events to.
eventsarrayEvents to subscribe to; defaults to all.

delete_webhook Delete a webhook

Remove an outbound webhook subscription by id.

ParameterTypeDescription
webhookId *stringThe webhook id to delete.

list_environments List environments

List the environments available for a project and which one it currently targets (production / staging / development).

ParameterTypeDescription
projectId *stringThe project id (proj_…).

set_environment Set environment

Switch the environment a project targets (production / staging / development).

ParameterTypeDescription
environment *stringEnvironment to target.
projectId *stringThe project id (proj_…).

create_tunnel Create tunnel to local site

Expose a local dev server (http://localhost:PORT) via a secure public tunnel so BugBrain can test it before you deploy. Returns a public URL to pass as targetUrl when starting a run. Requires the local stdio bridge and a tunnel binary (cloudflared by default).

ParameterTypeDescription
port *integerThe local port your dev server listens on, e.g. 3000.
timeoutMsintegerHow long to wait for the tunnel URL (default 25000).

list_llm_targets List AI test targets

List all LLM/AI test targets configured for a project. Each target represents an AI system under test — a chatbot, voice agent, or LLM endpoint.

ParameterTypeDescription
projectId *stringThe project id (proj_…).

list_ai_test_cases List AI test cases

List AI test cases for a project. Optionally filter by kind (e.g. PROMPT_CONSISTENCY, INJECTION_PROBE, HALLUCINATION_SCAN) or status.

ParameterTypeDescription
projectId *stringThe project id (proj_…).
kindstringFilter by test kind. One of: PROMPT_CONSISTENCY, CONVERSATION_FLOW, INJECTION_PROBE, HALLUCINATION_SCAN, TOXICITY_SCAN, VOICE_FLOW, CONTEXT_RETENTION, TOOL_USE_CORRECTNESS, BENCHMARK_SUITE, REGRESSION…
statusstringFilter by status. One of: DRAFT, ACTIVE, ARCHIVED.

run_ai_test Trigger an AI test case run

Trigger execution of an AI test case. Returns immediately with a run id — poll get_ai_test_results for the outcome. Requires the org to have an available AI test quota.

ParameterTypeDescription
testCaseId *stringThe AI test case id to execute.

get_ai_test_results Get AI test run results

Fetch the full results of an AI test run: status, quality metrics (consistency, hallucination risk, toxicity, injection vulnerability), and the per-turn conversation trace.

ParameterTypeDescription
runId *stringThe AI test run id returned by run_ai_test.

list_ai_test_runs List recent AI test runs

List recent AI test runs for a project, optionally filtered by test case. Returns status, key metrics (consistency score, hallucination risk), and timestamps.

ParameterTypeDescription
projectId *stringThe project id (proj_…).
limitintegerMax number of runs to return. Default: 20.
testCaseIdstringFilter to runs for a specific test case id.

get_ai_quality_summary Get AI quality trend summary

Get aggregated AI quality metrics for a project: average consistency score, hallucination risk trend, top issues by category, and recent run health. Useful for CI dashboards and PR quality gates.

ParameterTypeDescription
projectId *stringThe project id (proj_…).

run_web_qa Run Web-Test (multi-agent QA swarm)

Point Web-Test at a URL or an existing project and a swarm of QA agents explores and bug-tests the site — clicking flows, filling forms, probing edge cases — and files what it finds as issues. Returns a runId immediately; poll get_web_qa_report for the consolidated, severity-categorized bug report. For live progress use get_run_status / list_run_issues / watch_run (a Web-Test run is a normal run). Provide EXACTLY ONE of `url` or `projectId`. For a localhost / not-yet-deployed site, create a public tunnel first with create_tunnel and pass the tunnel URL.

ParameterTypeDescription
breadthstringHow wide/deep the swarm goes: quick (fewer agents, fast), standard (default), or thorough (deeper budgets).
devicePresetIdstringOptional Device Preset (id or short-id) to emulate locale / timezone / viewport / dark-mode during the run.
idempotencyKeystringOptional idempotency key; auto-generated when omitted so retries never double-spend quota.
projectIdstringAn existing project id (proj_…) or short-id key to test. Provide this OR `url`, not both.
speedTierstringPer-agent speed/cost tier: thorough (highest accuracy), balanced (default), or fast (cheapest).
uploadTestingbooleanWhen true, the swarm is given synthetic files (image/pdf/csv + oversized/wrong-type) to exercise file-upload flows, including negative cases.
urlstringAn absolute http(s) URL to test (e.g. a tunnel URL from create_tunnel). Provide this OR `projectId`, not both.

run_duo_test Run two-actor test (Admin + Member)

Run a TWO-USER test: two agents drive the app at the same time as different users to surface permission leaks (one user seeing another's data), broken collaboration, and state races. actorA logs in with the project's configured credential; provide actorB's login inline (encrypted at rest). Describe the collaboration scenario to exercise. Returns a runId; poll get_web_qa_report. Metered as one Web-Test run. Provide EXACTLY ONE of `url` or `projectId`.

ParameterTypeDescription
actorB *objectThe SECOND user's login (a different account than the project credential).
scenario *stringWhat the two users do together, e.g. "Admin creates a private doc; the Member must NOT be able to see or open it."
actorALabelstringLabel for the project-credential user (default "User A", e.g. "Admin").
actorAPersonastringWho actorA is / their permissions.
devicePresetIdstringOptional Device Preset to emulate.
idempotencyKeystring
projectIdstringExisting project (id or short-id). Provide this OR `url`.
speedTierstring
urlstringAbsolute http(s) URL. Provide this OR `projectId`.

get_web_qa_report Get Web-Test report

Fetch the consolidated, severity-categorized report for a Web-Test run: status, the swarm config (breadth / agent count), the merged bug report, and the issue count. Poll until status is COMPLETED.

ParameterTypeDescription
runId *stringThe run id returned by run_web_qa (the TestRun id — short id or full id).

watch_run Watch run (live progress)

Stream a run’s live progress as MCP progress notifications until it finishes, then return the final run state. Use for interactive sessions; prefer start + get_run_status polling for fire-and-forget automation.

ParameterTypeDescription
runId *stringThe run id (run_…) to watch.