MCP and API

ForgeQA for AI agents

An AI assistant, an MCP client or a script can work with ForgeQA for its user: read their tests, write new ones and run them in real browsers. This page explains how, and the rules that apply. Agents can read it as Markdown at /agents.md.

The rules

ForgeQA runs real browsers from our servers. An agent works on behalf of its user and follows the same terms.

  • Only test websites your user is authorised to test. That means sites they own, or sites they have permission to test, such as a client's shop. A connection can only use the websites the user chose when they approved it.
  • No attacks, load tests, scraping or card testing. If we detect abuse, we may close the account at once. See the terms.
  • No real secrets in steps. Never write real passwords, card numbers or personal data into a test. Use the workspace's test secrets as ${TEST_SECRET_NAME} and shop test cards.
  • Runs cost the user. Every run counts toward their plan; checks don't, but they are rate-limited. Run once after a change, not in a loop. After three failed fixes, stop and explain what the page does instead.
  • Ask, don't guess. If the journey is unclear, ask for the start page, the product or form to use, and what proves success.
  • The user stays in charge. Only the user signs up and approves a connection. Sign-up needs an email address and a password. An agent never approves its own access.

Connect the MCP server

ForgeQA is a remote MCP server at https://app.forgeqa.io/mcp (Streamable HTTP, JSON responses, no sessions). Sign-in uses OAuth 2.1 with PKCE.

  1. Add the serverGive your MCP client the server URL above.
  2. Get the pointerThe first call answers 401 with a link to the OAuth metadata.
  3. RegisterWith a client ID metadata document (an HTTPS URL), or with dynamic client registration.
  4. The user approvesThey sign in to ForgeQA and choose the workspace, the websites and the permissions.
  5. Call the toolsSend the bearer token. It lasts an hour; the refresh token lasts 30 days and rotates.
  • Protocol versions: 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26.
  • Scopes: tests:read, tests:write and tests:run. The user can leave out writing or running.
  • OAuth metadata: https://app.forgeqa.io/.well-known/oauth-protected-resource/mcp and https://app.forgeqa.io/.well-known/oauth-authorization-server.
  • Remove access any time in ForgeQA under Integrations → AI assistants.

In Claude Code, install the plugin. It adds the server and the forge-qa skill:

/plugin marketplace add https://app.forgeqa.io/claude/marketplace.json
/plugin install forge-qa@forge-qa

Claude, ChatGPT, Codex, Cursor, VS Code and other clients: add the server URL as a remote MCP server or custom connector. ForgeQA shows the steps for each under Integrations → AI assistants.

The AI assistants page listing the MCP clients that can connect.
Integrations → AI assistants lists each MCP client. Choosing one shows the steps to connect it.

Three tools

Every call acts as the user who approved the connection, with the same checks, plan limits and workspace walls as the app.

The three MCP tools
ToolWhat it does
forge_readNeeds tests:read. Lists the allowed websites, tests, suites, browsers and recent runs. With view and an id it returns one test, suite or run, including the failing step and its error.
forge_saveNeeds tests:write. Creates or updates a test (name, base_url on an allowed website, ordered steps, one device: desktop by default or mobile, fixed once the test exists) or a suite (test_ids in run order). New tests are drafts; published: true publishes one at once, with no check needed. It never deletes.
forge_runNeeds tests:run. Runs a published test or a suite in up to five browsers, each test on its own device at its own size, and waits up to 50 seconds. Returns pass or fail per browser, and the failing step with its error. With check: true it tries a test, also a draft, once in Chromium at its size, outside the plan's runs.
  • 1. Look first

    Call forge_read. Update an existing test by its id instead of making a near-duplicate.

  • 2. Write the steps

    One journey per test: goto, then the actions, then at least one assertion such as assert_text or assert_url. Prefer test ids, labels and roles as selectors.

  • 3. Run and fix

    Save with forge_save, publish it, run it with forge_run, fix the failing step and run again. Report the result with the test's link.

The full guide for agents is the forge-qa skill: SKILL.md.

CI API with scoped keys

For pipelines, not chats. On Professional and Agency the user creates a CI trigger in ForgeQA for one test or suite. Its key can run that target and read its results. Nothing else.

# Start a run, once per deploy
curl --fail-with-body -X POST \
  'https://app.forgeqa.io/api/triggers/<trigger-id>/run' \
  -H "X-Webhook-Key: $FORGE_WEBHOOK_KEY" \
  -H "Idempotency-Key: deploy-$GIT_SHA"

# Read the result with the id from the answer
curl 'https://app.forgeqa.io/api/triggers/<trigger-id>/runs/<id>' \
  -H "X-Webhook-Key: $FORGE_WEBHOOK_KEY"
  • The status goes from queued and running to passed, failed or canceled.
  • The same Idempotency-Key starts only one run.
  • Keep the key in a CI secret, never in code or in a chat.
  • The ForgeQA GitHub Action starts the run and waits for the result.

Limits

  • Tool calls

    120 a minute per MCP connection. A CI trigger takes 60 calls a minute.

  • Runs

    A run is one test in one browser, up to five minutes. Runs, websites and parallel browsers follow the user's plan.

  • Waiting

    forge_run waits up to 50 seconds. If the run is still going, read it with forge_read, view: "run" and the batch id.

  • Tests

    Up to 200 steps per test, each with a timeout of up to 60 seconds.

  • Websites

    Public HTTPS sites the user added in ForgeQA. Private and internal network addresses are blocked.

  • Drafts

    Draft tests don't run. Publish them with forge_save and published: true; publishing needs no check. To try a draft first, use forge_run with check: true.

Discovery files

Everything an agent needs to find ForgeQA on its own.

Two ways to start

Do it yourself

7 days, 100 runs, five browsers, no card. Then from €19 a month, excl. VAT.

Start free trial

Have it done

ForgeQA QA Agent builds one journey as two tests, Desktop and Mobile, from €149 (excl. VAT). For workspaces on a paid plan.

ForgeQA QA Agent