Connect a coding agent (MCP)
Connect Claude, Claude Code, Lovable or another MCP client to Qualflare by signing in and approving one project, or with a project access token.
Last updated
To connect an AI agent such as Claude, Claude Code or Lovable to Qualflare, add the MCP server https://api.qualflare.com/mcp, sign in and approve one project; signing in needs the Editor role on that project, and clients without sign-in use a project access token.
This is different from the Claude Code plugin, which drives the
qf CLI from a chat window. The MCP server is a live connection to your project's data,
and any MCP client can use it.
Before you begin
You need an MCP-capable client, such as Claude, Claude Code, Lovable or Cursor, and one of these:
- Sign-in: on the project you connect, Editor+ · project (requires the Editor role or higher in the project). See Connect with sign-in.
- An access token for the project: for the
qfCLI, CI pipelines and MCP clients that can't sign in. See Connect with an access token.
Either way, a connection reaches one project, and it may change data only when you allowed it.
Connect with sign-in
Connecting an MCP client to Qualflare with sign-in (OAuth) takes no token: you add the server URL in the client, sign in to Qualflare in your browser, pick one project and approve. Every client starts the same way:
- Add the server
https://api.qualflare.com/mcpin your client, with no header. The steps for each client are below. - Sign in. The client opens
app.qualflare.comin your browser. If you aren't signed in, sign in as usual, with SSO or two-factor authentication if your workspace uses them. - Check the app. The page names the app, as in "Lovable wants to use Qualflare", and the host it "Redirects to". An app that runs on your own computer, such as Claude Code, also shows "This app runs on your computer". Cancel if you didn't start this.
- Choose a project. Project lists, as workspace / project, only the projects where you are Editor or higher.
- Decide on Allow changes. Leave Allow changes ticked to let the app create and edit cases, suites and defects; untick it and the app can only read. When the app asked to read only, the box is off.
- Click Approve. If you haven't signed in within the last 5 minutes, Qualflare asks you to confirm it's you first.
You are sent back to the app, and Qualflare emails you that the app was connected to the project.
What a sign-in connection can do
A sign-in connection to the Qualflare MCP server works like an access token that you didn't have to copy:
- One project. The app can use only the project you picked.
- Allow changes works like a token's Allow writes. Changes also need your current role to be Editor or higher; reading needs Viewer. Your role is checked on every request, so a demotion applies at once.
- MCP only. The tokens the app receives work on
https://api.qualflare.com/mcpand nowhere else: not on the REST API, and not in theqfCLI. - Lifetime. Each access token lasts 1 hour, and the app renews it on its own. The connection lasts up to 90 days from your approval, and ends sooner when the app hasn't used it for 30 days. Then connect again.
- It ends when you or a Maintainer or Owner revoke it, when you lose access to the project, or when your account is deactivated.
Claude
These are Claude's own labels, from Claude's help article Getting started with custom connectors using remote MCP; they apply to claude.ai and the Claude desktop app.
- Pro and Max: open Customize > Connectors, click + Add > Add custom connector, enter a name such as
Qualflareand the URLhttps://api.qualflare.com/mcp, click Continue, keep a sign-in option under Authentication, and click Add. Claude then sends you to Qualflare to approve. - Team and Enterprise: an Owner adds the connector in Organization settings > Connectors (Add > Custom > Web). Each member then clicks Connect on it in Customize > Connectors and approves their own project.
Claude Code
Add the server without a header:
claude mcp add --transport http qualflare https://api.qualflare.com/mcpThen, in Claude Code, run /mcp, choose qualflare and choose Authenticate. Your browser opens the Qualflare approve page.
Lovable
These are Lovable's own labels, from Lovable's documentation. In Lovable, open Connectors, choose Add custom > MCP server, enter a Server name and https://api.qualflare.com/mcp as the Server URL, keep OAuth (default), and click Add & authorize. If MCP server is greyed out, a Lovable workspace admin has turned off custom MCP servers.
To have Lovable test the app it builds, see Test your Lovable app with browser journeys.
Other MCP clients
Any MCP client that supports sign-in (MCP authorization, which is OAuth) connects the same way: give it the URL https://api.qualflare.com/mcp and no header, and it opens the approve page when it first connects. A client that only sends a fixed header uses an access token.
Manage and disconnect connected apps
Apps connected to a Qualflare project with sign-in are listed under Connected apps on Project Settings > Access Tokens, with each app's name, who connected it, whether it may make changes, when it was connected and when it last called Qualflare. Editors see the apps they connected; Maintainers and Owners see every app connected to the project.
To disconnect an app, click Revoke on its row, then Revoke app. The person who connected it, or a Maintainer or Owner, can revoke it. The app loses access to the project at once, and it can connect again only by asking someone to approve it.
Connect with an access token
Connecting with a project access token suits the qf CLI, CI pipelines, and MCP clients that can't sign in. You need a Qualflare access token for the project you want to work on: see Access Tokens. If the agent should create or edit data, tick Allow writes when you create the token.
The token decides everything: which project the agent sees, and what it may do there.
The person who created the token needs Viewer+ · project (requires the Viewer role or higher in the project) for reading; creating or editing data needs Editor+ · project (requires the Editor role or higher in the project) and a token created with Allow writes.


The connection details
| Endpoint | https://api.qualflare.com/mcp |
| Transport | Streamable HTTP |
| Header | Authorization: Bearer <your access token> |
The Connect a coding agent panel on Project Settings > Access Tokens shows each client's sign-in setup, with these token settings folded under Client without sign-in? Use an access token, ready to copy.


Claude Code
-
Put the token in a shell variable. In bash or zsh, run
read -rs QF_TOKEN, paste the token and press Enter. Nothing is shown, and the token stays out of your shell history. -
Add the Qualflare server:
claude mcp add --transport http qualflare https://api.qualflare.com/mcp \ --header "Authorization: Bearer $QF_TOKEN" -
Ask a question. Try something like "which suites have the most failures this week?": Claude Code calls the Qualflare tools to answer.
Claude Code stores the header, token included, in its own MCP configuration: treat that file like the token.
Cursor and other JSON-configured clients
Most clients take a JSON block like this (Cursor reads ~/.cursor/mcp.json):
{
"mcpServers": {
"qualflare": {
"url": "https://api.qualflare.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Client configuration differs — check your client's own MCP documentation for where the file lives and what it calls each field. The endpoint and the header are the same either way.
Your token is a credential. Keep it in your user-level config or an environment variable,
never in a project file such as .mcp.json or .cursor/mcp.json that gets committed. Revoke
a token you have pasted somewhere shared (or ask a Maintainer or Owner to).
Verify the connection
Ask the agent to list your project's test suites. It calls list_test_suites and answers with your suites. If it reports no Qualflare tools or an error, see Troubleshooting.
What the agent can do
It sees your project through the same API the CLI uses — 23 read tools and 13 write tools. See MCP server reference for the tools that read and change test data.
Reading: test suites and cases, steps, launches and their results, defects, milestones, test plans, and failure clusters. It can also analyze a suite's coverage, which counts toward your plan's monthly Coverage Analysis quota All plans (available on Starter, Core, Scale, Enterprise, Open Source).
Writing: create and update test cases, steps and defects, add up to 20 cases to a suite in one call, and save a suite's coverage score. Uploading results stays a CLI job.
Browser journeys: save, run and delete browser journeys that test a Lovable app's preview. Deleting a journey is the only delete: its runs, launches and test case stay.
Permissions
Two checks run on every request, over MCP and over the API alike:
- The connection's access. Every connection can read. Only a token created with Allow writes, or a sign-in connection approved with Allow changes, can create or update data, and you can't add it later. The Access column in Project Settings > Access Tokens shows which kind of token you have, and Allow changes under Connected apps shows it for an app.
- The current project role of the person who created the token or approved the app. Reading needs Viewer or higher. Writing needs Editor or higher. If that role is lowered or removed, the connection loses that access immediately.


Tokens created before Allow writes existed kept write access.
For an agent that only reads, use a token without Allow writes, or untick Allow changes when you approve. The agent reads data other people wrote, such as case names and CI failure output, exactly as stored. Check what it plans to write before you approve it.
Troubleshooting
"You can't connect a project here: you need Editor access." — the approve page lists only projects where you are Editor or higher. Ask a project Owner to make you an Editor, then connect again from the app.
"This app could not be verified" — Qualflare could not confirm which app sent you, so it won't connect it. Close the window and add the server in the app again.
A sign-in connection stopped working — it was revoked, it reached 90 days, or it went unused for
30 days. Connect again from the app; in Claude Code, run /mcp and choose Authenticate.
401 / "invalid or expired access token" — the token is wrong, revoked, or expired.
Create a fresh one in Project Settings > Access Tokens.
403 / "no project access" — the token is valid, but its creator's role is too low for
what the agent tried. Reading needs Viewer; creating or updating needs Editor.
The client connects but lists no tools — check the URL ends in /mcp and that the
Authorization header is actually being sent; some clients need headers nested under the
server entry, as shown above.
A write is refused with "this access token is read-only" — the token was created without Allow writes, or the app was approved without Allow changes. Create a new token with Allow writes ticked, update your client, and revoke the old one (or ask a Maintainer or Owner to); for an app, revoke it and connect it again with Allow changes ticked.
Next steps
Rate limits and request sizes
Qualflare API rate limits and request sizes: requests per second per IP address and per MCP token, the 1 MB and 10 MB body limits, upload caps and quotas.
MCP server reference
Reference for the Qualflare MCP server: endpoint, authentication, permissions, and all 23 read and 13 write tools an AI coding agent can call.