
Testomat.io
STDIOMCP server for Testomat.io API integration with AI assistants like Cursor.
MCP server for Testomat.io API integration with AI assistants like Cursor.
A Model Context Protocol (MCP) server for Testomat.io API integration with AI assistants like Cursor.
npx @testomatio/mcp --token <your-token> --project <project-id>
The MCP server can be started using command line arguments or environment variables:
# Using short flags npx @testomatio/mcp -t testomat_YOUR_TOKEN_HERE -p your-project-id # Using long flags npx @testomatio/mcp --token testomat_YOUR_TOKEN_HERE --project your-project-id # With custom base URL npx @testomatio/mcp --token testomat_YOUR_TOKEN_HERE --project your-project-id --base-url https://your-instance.testomat.io
# Set environment variables export TESTOMATIO_API_TOKEN=testomat_YOUR_TOKEN_HERE export TESTOMATIO_BASE_URL=https://app.testomat.io # Optional, defaults to https://app.testomat.io # Run with project ID npx @testomatio/mcp --project your-project-id # Or run directly with environment variables TESTOMATIO_API_TOKEN=testomat_YOUR_TOKEN_HERE npx @testomatio/mcp --project your-project-id
testomat_
)Your project ID can be found in the URL when you're viewing your project:
https://app.testomat.io/projects/YOUR_PROJECT_ID
To use this MCP server with Cursor, add the following configuration to your Cursor settings:
Add this to your Cursor MCP settings (cursor-settings.json
or through the Cursor settings UI):
{ "mcpServers": { "testomatio": { "command": "npx", "args": ["-y", "@testomatio/mcp@latest", "--token", "testomat_YOUR_TOKEN_HERE", "--project", "YOUR_PROJECT_ID"] } } }
First, set your environment variables in your shell profile (.bashrc
, .zshrc
, etc.):
export TESTOMATIO_API_TOKEN=testomat_YOUR_TOKEN_HERE
Then add this to your Cursor MCP settings:
{ "mcpServers": { "testomatio": { "command": "npx", "args": ["-y", "@testomatio/mcp@latest", "--project", "YOUR_PROJECT_ID"], "env": { "TESTOMATIO_API_TOKEN": "testomat_YOUR_TOKEN_HERE" } } } }
get_tests
– Get all tests (params: plan
, query
, state
, suite_id
, tag
, labels
) — api: GET /tests
search_tests
– Search tests (params: query
, tql
, labels
, state
, priority
, filter
, page
) — api: GET /tests
search_suites
– Search suites (params: query
, labels
, state
, priority
, page
) — api: GET /suites
get_root_suites
– List root-level suites (no params) — api: GET /suites
get_suite
– Get one suite (params: suite_id
) — api: GET /suites/{suite_id}
get_runs
– List all runs (no params) — api: GET /runs
get_run
– Get one run (params: run_id
, tree
) — api: GET /runs/{run_id}
get_testruns
– Runs for a test (params: test_id
, finished_at_date_range
) — api: GET /testruns
get_plans
– List all plans (params: detail
, labels
, page
) — api: GET /plans
get_plan
– Get one plan (params: plan_id
) — api: GET /plans/{plan_id}
Once configured, you can ask your AI assistant questions like:
These queries retrieve general information without specific filtering:
get_tests
toolget_root_suites
toolget_runs
toolget_plans
toolThese queries target specific entities by ID:
get_testruns
tool with test_id: "abc123"
get_run
tool with run_id: "xyz789"
get_suite
tool with suite_id: "suite-456"
These queries use advanced filtering capabilities:
search_tests
tool with query: "@smoke"
, state: "automated"
search_tests
tool with priority: "high"
search_tests
tool with query: "login"
search_tests
tool with tql: "tag == 'critical' or label == 'ux' and priority == 'high'"
search_tests
tool with tql: jira == 'BDCP-2'
The search_tests
tool supports TQL for complex filtering:
"tag == 'smoke' and state == 'manual'"
"priority == 'high' or label == 'ux'"
Tags can be searched using the @
prefix:
@smoke # Tests tagged with 'smoke'
@regression # Tests tagged with 'regression'
@critical # Tests tagged with 'critical'
Tests linked to Jira issues can be found using issue keys:
JIRA-123 # Tests linked to JIRA-123
PROJ-456 # Tests linked to PROJ-456
"API token is required" error
testomat_
"Project ID is required" error
Connection errors
app.testomat.io
MCP server not starting in Cursor
To see detailed logs when running the server:
DEBUG=* npx @testomatio/mcp --token <token> --project <project-id>
For detailed information about the underlying Testomat.io API, refer to the Testomat.io API Documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please: