MetorialDocs

Set up BugBug in Metorial for Claude, ChatGPT and Cursor

Share BugBug with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 16 tools (12 read-only).

To give your team BugBug in Claude, ChatGPT, Cursor and other AI clients, an admin shares the BugBug integration in a Metorial portal, and each person connects with an API token. Agents can run and manage automated end-to-end web application tests in the cloud. The integration has 16 tools, 12 read-only, 2 write and 2 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares BugBug in a portal and how each person connects
  • What BugBug asks for when you connect, and where to find it
  • How to keep the 12 read-only tools and reject the other 4

Before you start

Sign-in method

MethodTypeWhat a person provides
API TokenAPI tokentoken

API Token

To connect, a person enters:

  • token: BugBug API token found in the Integrations tab of your project in the BugBug web app

Admin: share BugBug in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose BugBug. For how members connect, choose Each person connects so everyone enters their own API token, or Shared connection to enter one API token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from BugBug.

Choose who gets it

Add the access groups that should see BugBug. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user BugBug integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search bugbug

Employee: connect BugBug

In the portal

Open BugBug in the catalog

Sign in to your portal and open BugBug. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search bugbug
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your BugBug connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list bugbug
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 12 read-only tools, such as get_test and get_suite, and lose the 2 write tools, such as run_test or run_suite, and the 2 destructive tools, such as stop_test_run or stop_suite_run.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list bugbug
metorial tools <integration-id>
metorial call <integration-id> list_tests -d '{}'

metorial tools lists the 16 tools, minus any you rejected. list_tests takes no input. It lists all tests in the current BugBug project.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (12)

  • get_test_run: Retrieve details and results of a specific test run, including its status, timing, and the test it belongs to. Needs testRunId.
  • list_profiles: List all run profiles in the current BugBug project.
  • list_projects: List the projects accessible to the API token, including project and organization names.
  • download_run_report: Download a JUnit XML report for a test run or suite run to use in CI/CD test reporting.
  • get_suite: Retrieve detailed information about a specific test suite, including its linked test IDs and last run status. Needs suiteId.
  • list_test_runs: List historical test run results with filtering by test, status, and date range.
  • get_suite_run: Retrieve details and results of a specific suite run, including pass/fail counts and timing. Needs suiteRunId.
  • list_tests: List all tests in the current BugBug project.
  • get_profile: Retrieve a run profile by ID from list_profiles and check whether it is the default profile before starting a test or suite.
  • get_test: Retrieve detailed information about a specific test, including its steps, start URL, screen size configuration, and linked components. Needs testId.
  • list_suites: List all test suites in the current BugBug project.
  • list_suite_runs: List historical suite run results with filtering by date range.

Write tools (2)

  • run_test: Execute a test in the BugBug cloud. Needs testId.
  • run_suite: Execute a test suite in the BugBug cloud. Needs suiteId.

Destructive tools (2)

  • stop_suite_run: Stop a currently running suite execution. Needs suiteRunId.
  • stop_test_run: Stop a currently running test execution. Needs testRunId.

Triggers

BugBug has 1 trigger, which fire on events in BugBug:

  • inbound_webhook

Next steps