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.
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.
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 the
Authorizationheader with the valueBearer <projectId>.<apiKey>. - Save the configuration and reconnect the client.
4. Example configuration
The exact format depends on your MCP client, but the important values are always the same:
{
"url": "https://mcp.testifly.dev/mcp",
"headers": {
"Authorization": "Bearer <projectId>.<apiKey>"
}
}
If your client asks for a token instead of raw headers, use the same bearer token value:
<projectId>.<apiKey>
5. Available tools
After connecting successfully, the Testifly MCP server exposes these tools:
Read tools
getFeatureDetails- Get the overview and definition of a feature in the project.getTestsByFeatureId- Get the tests that belong to one feature.getAllTests- Get all tests in the project, optionally filtered by keywords.getTestDetails- Get the full details of one test.getFeatureUIComponents- Get the UI components of a feature.getUIComponentsSummaryByFeature- Get a smaller UI component summary for a feature.getTestRunsAndResults- Get the execution history and results of a test.getTestSuites- Get the test suites of the project.
Write tools
createTests- Create new tests in the project.editTest- Update an existing test.editFeature- Update a feature overview or definition.
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 API key is valid.
- The project id is correct.
- The header starts with
Bearer. - The token format is exactly
<projectId>.<apiKey>. - There are no extra spaces before or after the token.