Connect to ArtificialQA via MCP
Plug Claude Desktop, Cursor, Continue, Cline, Windsurf, or any other MCP-aware client into your ArtificialQA workspace. Two paths: OAuth (recommended for humans) and static API key (for admin-provisioned automations).
Which path do I use?
OAuth (oat_* tokens) |
Static API key (aqa_*) |
|
|---|---|---|
| Who can set it up | Any authenticated user — yourself. | An org admin mints the key, gives it to you. |
| What you see | A browser tab opens on first connect, you sign in + pick a project + click Allow. Done. | An aqa_v0C5… string you paste into your client config once. |
| Identity in audit log | Your user account. | The service key (the admin who minted it is also logged). |
| Permission model | Your role on the project, enforced live every request. Lose access → next call denied within ~60s. | The scope (read / write) baked in at create time. |
| When to use | You. Almost always — it's the default. | Machine-to-machine pipelines or CI that needs to run unattended forever. |
OAuth setup (recommended)
You need mcp-remote installed once on your machine. It's the small proxy that bridges your client's stdio transport to ArtificialQA's HTTP endpoint and handles the browser OAuth flow.
npm install -g mcp-remote
Then paste this into your client's config file:
{
"mcpServers": {
"artificialqa": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://app.artificialqa.com/api/v1/mcp"
]
}
}
}
Where the config file lives
| Client | Config path |
|---|---|
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Cursor | ~/.cursor/mcp.json (use the stdio snippet above — Cursor doesn't drive OAuth natively, so mcp-remote runs the flow on its behalf) |
| Continue, Cline, Windsurf, Zed | Their MCP settings UI accepts the same JSON shape. |
What happens on first connect
- You launch your MCP client (e.g. quit + relaunch Claude Desktop after editing the config).
mcp-remotediscovers ArtificialQA's auth server.- Your default browser opens at
/oauth/authorize. - If you're not already signed in to ArtificialQA in that browser, you're sent to
/login. Sign in (and pass 2FA if your account requires it). - You're back at a consent screen: pick the project you want the client to act on, pick
Read onlyorRead + write(your role on the project is the ceiling), click Allow. - The browser shows a branded "Authorization successful" page. You can close the tab.
- Your MCP client now shows the server as connected. Try
list_test_plansorlist_test_casesto confirm.
After this, mcp-remote caches your tokens in ~/.mcp-auth/ and rotates them automatically. You won't see the browser again for ~30 days, or until you revoke the session.
Windows note
If npx -y mcp-remote fails with 'C:\Program' is not recognized, that's cmd /C choking on the space inside C:\Program Files\nodejs\npx.cmd. Point at the shim under %APPDATA%\Roaming\npm\ directly:
{
"mcpServers": {
"artificialqa": {
"command": "C:\\Users\\<you>\\AppData\\Roaming\\npm\\mcp-remote.cmd",
"args": ["https://app.artificialqa.com/api/v1/mcp"]
}
}
}
"No accessible projects" / "No organizations"
You hit one of the consent-screen error states. Common causes:
| Screen | What it means | Fix |
|---|---|---|
| No organizations | Your account isn't a Member of any org. Common for super-admin platform accounts. | Use a user account that's a Member somewhere (your team's regular account). |
| No accessible projects | You're in an org but have no ProjectMember row in any project. |
Ask your project admin to add you to a project. |
| MCP is disabled for this organization | Your org has the MCP feature toggled off. | Ask your org admin to enable it from Org Settings → MCP. |
Close the tab, sign out from the dropdown, sign in as the right account, and restart your MCP client to re-trigger the flow.
Static API key setup (admin-provisioned)
If your org admin has given you an aqa_* key, paste this instead:
{
"mcpServers": {
"artificialqa": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://app.artificialqa.com/api/v1/mcp",
"--header",
"Authorization: Bearer aqa_v0C5AyynN..."
]
}
}
}
The only difference vs the OAuth snippet is the --header Authorization: Bearer ... flag at the end. No browser flow on first connect — the key authenticates you immediately. The key is bound to one project, so the client only ever sees data inside that project.
Native HTTP clients (Cursor without stdio)
Cursor and Continue can also speak Streamable HTTP directly, without mcp-remote. Same idea, different config shape:
{
"mcpServers": {
"artificialqa": {
"url": "https://app.artificialqa.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer aqa_v0C5AyynN..."
}
}
}
}
Native HTTP only works with static keys — Cursor and Continue don't run the OAuth handshake on their own. If you want OAuth on those clients, use the stdio snippet above and let mcp-remote handle the flow.
Verifying the connection (curl)
You don't need a client to confirm the endpoint is reachable. With a static key:
curl https://app.artificialqa.com/api/v1/mcp \
-X POST \
-H "Authorization: Bearer aqa_v0C5AyynN..." \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Expect a result.tools array listing every tool you have access to. A 401 with a WWW-Authenticate header means the key was rejected (check the value, and that your org has MCP enabled). A 403 with mcp_disabled means the org admin needs to flip the MCP feature flag.
OAuth tokens (oat_*) work the same way for curl, but you have to extract one from the cache mcp-remote writes — there is no UI to copy your access token, because the whole point is that you never see it.
Importing executions run outside ArtificialQA
Not every agent can be driven by ArtificialQA directly. Some live behind a corporate firewall, some are exercised by your own CI/CD pipeline, and some run on channels no script can automate, like WhatsApp. Execution import lets you upload the results of those runs and push them through the same evaluation and reporting pipeline as any run ArtificialQA executes itself.
There are two ways to import, depending on whether the test plan already exists in ArtificialQA:
| Existing plan | New plan (quick import) | |
|---|---|---|
| What is already in ArtificialQA | A test plan with its test cases. | Nothing. |
| What you upload | Only the results. Each result references a test case of the plan; the downloadable template already lists them. | Test cases and results in the same file. |
| What ArtificialQA creates | One execution with its results. | Test plan + test suite + test cases + execution + results, in a single transaction. The organization's test-case quota is checked first (Free and Pro limits apply). |
Accepted formats: JSON and Excel. Both single-turn and multi-turn (conversational) cases are supported, as well as tool-calling tests (cases where the agent is expected to call a tool or function): expected and actual tool calls travel in the same file.
The three MCP tools
| Tool | What it does |
|---|---|
get_import_template | Returns a pre-filled JSON template for you to complete. |
run_existing_import | Uploads results to a plan that is already loaded in ArtificialQA. |
run_quick_import | Uploads everything at once: plan, suite, test cases and results. |
A typical session from Claude Desktop, Claude Code or Cursor looks like this:
- Ask your assistant for the import template (it calls
get_import_template). Mention the plan name if it already exists. - Fill in the results, or let the assistant fill them in from your logs, transcripts or CI output.
- Ask it to import (it calls
run_existing_importorrun_quick_import). - Evaluate the execution and open the report, exactly as with any other run.
Imported executions show an Imported badge in the Runs list, so you can always tell them apart from runs ArtificialQA executed itself. The same import is available from the UI (Import run button on the Runs screen, see Executing tests) and from the REST API.
Project tools from MCP
The MCP catalog currently exposes 44 tools (17 read + 27 write): full CRUD of test cases, suites, plans, agent connections and project tools, plus executions, evaluations, reports and run import. Ask your client for tools/list to see the exact set you have access to.
Project tools are the catalog of tools your agent is allowed to call. Test cases reference them in expectedToolCalls to assert which calls must, must not or may happen (see tool-calling tests in the API reference). Five MCP tools manage that catalog:
| Tool | What it does |
|---|---|
list_project_tools | Lists the project's tools (filter by active state or search text). |
get_project_tool | Returns one tool with its full inputSchema and metadata. |
create_project_tool | Adds a tool to the catalog: name, description, JSON Schema of its arguments. |
update_project_tool | Changes name, description, schema, metadata or active state. |
delete_project_tool | Soft-deletes a tool. Refused while active test cases still reference it. |
A natural prompt: "Register the tools my banking agent exposes (get_account_balance, transfer_funds) and then create a test case that expects get_account_balance and prohibits transfer_funds." The assistant chains create_project_tool with the test-case tools.
Frequently hit issues
"Authorization successful" never appears, browser hangs at consent. The MCP client likely timed out (~60s for the initial handshake). Quit and relaunch your MCP client to restart the flow with a fresh mcp-remote process. Have your password and TOTP ready so the browser flow finishes well under 60s.
Tab keeps opening every time I launch the client. mcp-remote couldn't write its cache. Check that ~/.mcp-auth/ is writable by your user. On macOS, sometimes the Claude Desktop sandbox needs to be re-granted access to the home directory.
"redirect_uri not registered for this client". mcp-remote's registered redirect URI no longer matches the port it's listening on (usually after a manual cache wipe). Clear the cache and let it re-register:
rm -rf ~/.mcp-auth # macOS / Linux
Remove-Item -Recurse -Force "$env:USERPROFILE\.mcp-auth" # Windows PowerShell
Then relaunch the MCP client.
'C:\Program' is not recognized on Windows. See the Windows note in the OAuth setup section above — use the .cmd shim path instead of npx.
Reference
- Public REST API reference — the same primitives over a REST surface for CI/CD.
- Integrations — how MCP fits with the broader integration story.
- Security & compliance — audit semantics, scope ceilings, and break-glass revocation.