MCP Integration
This guide explains how to connect an MCP client to Testifly, how authentication works, and which tools are available after connection.
1. Endpoint
Use this MCP URL:
https://mcp.testifly.dev/mcp
The endpoint is exposed over HTTPS and expects MCP requests on the /mcp path.
2. Authentication
Testifly MCP uses Bearer authentication and supports both API key tokens and OAuth access tokens.
Option A: API key token
Build the bearer token in this format:
<projectId>.<apiKey>
Send it in the Authorization header:
Authorization: Bearer <projectId>.<apiKey>
Where to get the values:
- Open your project in Testifly.
- Go to Settings.
- Open API Keys.
- Create or copy an API key.
- Use your project id together with that API key to build the bearer token.
Option B: OAuth access token
If you connect with OAuth, your MCP tool (Claude, Codex, ChatGPT, and similar clients) handles sign-in and token management for you.
3. Connection steps
- Open your MCP client configuration.
- Add a new remote MCP server.
- Set the server URL to
https://mcp.testifly.dev/mcp. - Add authentication:
- API key mode:
Authorization: Bearer <projectId>.<apiKey> - OAuth mode: complete sign-in in your MCP client (it usually adds the header automatically)
- API key mode:
- Save the configuration and reconnect the client.
4. Example configuration
The exact format depends on your MCP client.
API key example:
{
"url": "https://mcp.testifly.dev/mcp",
"headers": {
"Authorization": "Bearer <projectId>.<apiKey>"
}
}
OAuth example:
{
"url": "https://mcp.testifly.dev/mcp",
"auth": "oauth"
}
If your client asks for a token value directly:
<projectId>.<apiKey>
<oauthAccessToken>
Most OAuth-enabled MCP clients fill this in automatically after sign-in.
5. Available tools
After connecting successfully, the Testifly MCP server exposes these tools. Tools that act on a project accept an optional projectId. It is required with OAuth. Call getProjects first to find your project ids.
If a project is inactive (trial ended or disabled), every project tool is blocked. Only the product documentation tools and getBillingPlans stay available.
Guidance and project tools
getPresentationGuidance- Get how to present Testifly data to the user. Call it once at the start of every session.getTestWritingGuide- Get the rules for writing tests that Testifly can automate. Call it beforecreateTestsoreditTest.getProjects- List the projects you can access.getBillingPlans- Get the available billing plans.
Product documentation tools
searchProductDocs- Search the Testifly product documentation.getProductDoc- Read the full text of one documentation page.
Read tools
getAllFeatures- Get all features with name, URL and overview.getFeatureDetails- Get the overview and definition of a feature.findFeatureByUrl- Find an existing feature by its URL.getFeatureUIComponents- Get the UI components of a feature.getUIComponentsSummaryByFeature- Get a smaller UI component summary for a feature.getAllTests- Get all tests in the project.getTestsByFeatureId- Get the tests that belong to one feature.getTestDetails- Get the full details of one test, including the error and automation trace of a failed automation.getTestRunsAndResults- Get the execution history and results of a test.getTestSuites- Get the test suites of the project.getTestsOfTestSuite- Get the tests that belong to one test suite.getLatestRunOfTestSuites- Get the last run statistics of every test suite.listRuns- List the most recent test runs.getRunDetails- Get one run with the results of its tests.listJobs- List recent background jobs (test creation, automation, execution) and their errors.getEnvironments- Get the environments of the project with their settings and users. Passwords are never returned.
Write tools
createFeature- Create a feature (automatic discovery, from Jira or Linear, or manual).editFeature- Update the name, overview or definition of a feature.createTests- Create new tests in the project.editTest- Update the title, description, steps or suites of a test.createTestSuite- Create a test suite.editTestSuite- Update the name or description of a test suite.runTests- Run tests, a feature or a test suite in the background.editEnvironment- Update an environment and its users.cloneEnvironment- Copy an environment, including its users.
Delete tools
These ask you to confirm first. They cannot be undone.
deleteTest- Delete a test. Past results are kept.deleteTestSuite- Delete a test suite. Its tests are kept.deleteFeature- Delete a feature with its tests and UI components. Paid plans only.deleteEnvironment- Delete an environment with its users.
Jira tools
searchJiraItemsForSelector- Search Jira issues.getJiraItemsByIssueKeys- Get Jira issues by key.listJiraItemsMovedToReadyForTestingStatus- List issues that moved to the ready-for-testing status in the last day.
Linear tools
listLinearTeamsForSelector- List the Linear teams.searchLinearItemsForSelector- Search Linear issues.getLinearItemsByIssueKeys- Get Linear issues by key.listLinearItemsChangedInLastDay- List issues changed in the last day.
The Jira and Linear tools need the integration to be connected in the project.
6. Additional MCP capabilities
In addition to tools, the server also provides:
- A prompt named
must_use_prompt - A read-only resource named
testifly://test_features/public
7. Troubleshooting
401 Unauthorized
Check all of the following:
- The header starts with
Bearer. - There are no extra spaces before or after the token.
- If using API key auth, the API key is valid.
- If using API key auth, the project id is correct.
- If using API key auth, the token format is exactly
<projectId>.<apiKey>. - If using OAuth, sign out and sign back in from your MCP client.
- If using OAuth, make sure you approved the requested permissions.