currents-cancel-run
Cancel a run in progress. This will stop the run and mark it as cancelled. Requires runId.
Give an agent your CI test results — runs, failure context, flake rates, error trends — and the controls to quarantine a test or reset a run.
LABSCO SUMMARY
Most CI integrations stop at "here is the run". This one goes as deep as a fix actually needs: failure context formatted for a model, a stable test signature so history survives a rename, and flakiness ranked across the whole suite. The other half is action — quarantine rules, run resets and cancels, and a Jira issue created from the failing test — so an agent can change what CI does rather than only read what it did.
A server over the Currents dashboard covering CI test data end to end: projects and runs, individual test results and their history, spec-file and test performance, aggregated error metrics, the rules that skip or quarantine tests, Jira issue creation, and webhooks.
A Currents API key in CURRENTS_API_KEY, launched over stdio with npx as @currents/mcp. You can also run the same server yourself as a Streamable HTTP server for remote connectors (npm run build, then npm run start:http, or Docker); it performs no authentication of its own, so each request must carry your Currents API key as a Bearer token. The server publishes its agent skills as MCP resources under skill://currents/, so a connected agent can read them without a local copy.
One command plus a key — npx -y @currents/mcp, then supply credentials
USE CASES
Find the run by branch or CI build ID, open it, then pull the failure context in Markdown for the tests that failed.
Turn the spec path and title into a signature, read that signature's history across branches and authors, and compare its flakiness against the rest of the suite.
Create a quarantine or skip rule with a matcher and an expiry, watch which tests it catches, and disable it once the fix lands.
Aggregated error metrics by message and category, run and test metrics over a date range, and the spec files that cost the most time or fail most often.
List the Jira projects and issue types on the organisation integration, then open an issue from the failing run test — or link one that already exists.
currents-reset-run puts the failed spec files back in play for the named machines; currents-cancel-run stops a run that is no longer worth finishing.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
currents-cancel-runCancel a run in progress. This will stop the run and mark it as cancelled. Requires runId.
currents-cancel-run-github-ciCancel a run by GitHub Actions workflow run ID and attempt number. Optionally scope by projectId or ciBuildId. Requires githubRunId and githubRunAttempt.
currents-create-actionCreate a new action for a project. Actions define rules that automatically skip, quarantine, or tag tests based on conditions like test title, file path, git branch, etc. Requires projectId, name, action array, and matcher object.
currents-create-jira-issueCreate a Jira issue from a run test using the organization Jira integration. Requires projectId, runId, testId, jiraInstallationId, jiraProjectId, and jiraIssueType. Optional customFields array.
currents-create-webhookCreate a new webhook for a project. Specify the URL to receive POST notifications, optional custom headers (as JSON string), events to trigger on (RUN_FINISH, RUN_START, RUN_TIMEOUT, RUN_CANCELED), and an optional label. Requires projectId and url.
currents-delete-actionDelete (archive) an action. This is a soft delete - the action will be marked as archived but not permanently removed. The actionId is globally unique.
currents-delete-runDelete a run and all associated data. This is a permanent deletion. Requires runId.
currents-delete-webhookDelete a webhook. This permanently removes the webhook. The hookId is a UUID.
currents-disable-actionDisable an active action. Changes the action status to disabled, temporarily preventing it from applying to tests. The actionId is globally unique.
currents-enable-actionEnable a disabled action. Changes the action status from disabled to active, making it apply to matching tests again. The actionId is globally unique.
currents-find-runFind a run by query parameters. Returns the most recent completed run matching the criteria. Can search by ciBuildId (exact match) or by branch/tags. Supports pwLastRun flag for Playwright last run info. Requires projectId.
currents-get-actionGet a single action by ID. The actionId is globally unique, so projectId is not required. Returns full action details including matcher conditions and current status.
currents-get-affected-executionsList test executions where a specific action/rule was applied, within a date range. Uses cursor-based pagination. Requires actionId, date_start, and date_end.
currents-get-affected-test-executionsGet execution details for a specific affected test (by signature) within a date range. Returns individual test execution records with action info. Uses cursor-based pagination. Requires projectId, signature, date_start, and date_end.
currents-get-contextGet test failure context for AI debugging at run, instance, or test level. Supports json or md format, detail level, and pagination for failed tests. Requires run_id for run-level, or instance_id with optional test_id.
currents-get-errors-explorerGet aggregated error metrics for a project within a date range. Supports filtering by error_target, error_message, error_category, error_action, tags, branches, authors, and groups. Supports grouping by target, action, category, or message. Returns error counts, affected tests and branches, with timeline data. Requires projectId, date_start, and date_end.
currents-get-projectGet a single project by ID. Returns project details including name, creation date, failFast setting, inactivity timeout, and default branch name.
currents-get-project-insightsGet aggregated run and test metrics for a project within a date range. Returns overall metrics and timeline data with configurable resolution (1h/1d/1w). Supports filtering by tags, branches, groups, and authors. Requires projectId, date_start, and date_end.
currents-get-projectsRetrieves projects available in the Currents platform. Supports cursor-based pagination with limit, starting_after, ending_before parameters, or set fetchAll=true for automatic pagination. This is a prerequisite for using any other tools that require project-specific information.
currents-get-run-detailsRetrieves details of a specific test run. Requires a user-provided runId.
currents-get-runsRetrieves a list of runs for a specific project with optional filtering. Supports filtering by branch, tags (with AND/OR operators), status (PASSED/FAILED/RUNNING/FAILING), completion state, date range, commit author, and search by ciBuildId or commit message. Requires a projectId. If the projectId is not known, first call 'currents-get-projects' and ask the user to select the project.
currents-get-spec-files-performanceRetrieves spec files performance metrics for a specific project within a date range. Supports ordering by avgDuration, failedExecutions, failureRate, flakeRate, flakyExecutions, fullyReported, overallExecutions, suiteSize, timeoutExecutions, or timeoutRate. Supports filtering by tags, branches, groups, and authors. Requires a projectId. If the projectId is not known, first call 'currents-get-projects' and ask the user to select the project.
currents-get-spec-instanceRetrieves debugging data from a specific execution of a test spec file by instanceId.
currents-get-test-resultsRetrieves historical test execution results for a specific test signature. Supports filtering by date range, branch, tags, git author, test status (passed/failed/pending/skipped), run group, flaky status, and annotations. Requires the test signature. If the signature is not known, first call 'currents-get-tests-signatures'.
currents-get-tests-performanceRetrieves aggregated test metrics for a specific project within a date range. Supports ordering by failures, passes, flakiness, duration, executions, title, and various delta metrics. Supports filtering by spec name, test title, tags, branches, groups, authors, minimum executions, test state, and annotations. Requires a projectId. If the projectId is not known, first call 'currents-get-projects' and ask the user to select the project.
currents-get-tests-signaturesGenerates a unique test signature based on project, spec file path, and test title. The test title can be a string or array of strings (for nested describe blocks). Requires a projectId. If the projectId is not known, first call 'currents-get-projects' and ask the user to select the project.
currents-get-webhookGet a single webhook by ID. The hookId is a UUID. Returns full webhook details including url, headers, events, label, and timestamps.
currents-link-jira-issueLink an existing Jira issue to a run test using the organization Jira integration. Requires projectId, jiraIssueKey, runId, testId, jiraInstallationId, jiraProjectId, and jiraIssueType. Optional comment and includeContextInComment.
currents-list-actionsList all actions for a project with optional filtering. Actions are rules that automatically modify test behavior (skip, quarantine, tag). Supports filtering by status (active/disabled/archived/expired) and search by name. Requires a projectId.
currents-list-affected-testsList tests affected by actions (quarantine, skip, tag) for a project within a date range. Returns aggregated data grouped by test signature. Supports filtering by action types, action ID, status, and search. Requires projectId, date_start, and date_end. Preview endpoint: fields and path may change.
currents-list-jira-issue-typesList Jira issue types and custom fields for a Jira project. Requires jiraProjectId and jira_installation_id.
currents-list-jira-projectsList Jira projects available for the organization integration. Use returned project IDs as jiraProjectId when creating issues. Requires jira_installation_id.
currents-list-project-termsList cursor-paginated project terms for one type (tag, branch, authorName, etc.). Supports search, sort direction, and starting_after or ending_before cursors. Requires projectId and termType.
currents-list-pull-requestsList pull-request cards for a project (runs grouped by meta.pr.id). Supports cursor pagination, runs_per_pr preview count, and filters by tags, branches, authors, and latest-run status. Requires projectId.
currents-list-webhooksList all webhooks for a project. Webhooks allow you to receive HTTP POST notifications when certain events occur in your test runs: RUN_FINISH (run completed), RUN_START (run started), RUN_TIMEOUT (run timed out), RUN_CANCELED (run was cancelled). Requires a projectId.
currents-reset-runReset failed spec files in a run to allow re-execution. Requires runId and machineId array (1-63 machine IDs). Optionally supports batched orchestration.
currents-update-actionUpdate an existing action. The actionId is globally unique. You can update name, description, action array, matcher, or expiration date. All fields are optional.
currents-update-webhookUpdate an existing webhook. You can update the url, headers (as JSON string), hookEvents array, or label. All fields are optional. The hookId is a UUID.
BEFORE YOU INSTALL
38 tools when we connected; the project documents 39. The 39th is currents-get-test-evidence, which collects screenshots, videos and traces from a CI run; no documented flag holds it back, so it is likely in a newer release.
All 3 documented clients run the server on your machine.
INSTALLATION
npx -y @currents/mcp{
"mcpServers": {
"currents": {
"command": "npx",
"args": [
"-y",
"@currents/mcp"
],
"env": {
"CURRENTS_API_KEY": "<YOUR_CURRENTS_API_KEY>"
}
}
}
}claude mcp add --transport stdio currents --env CURRENTS_API_KEY=<YOUR_CURRENTS_API_KEY> -- npx -y @currents/mcp<YOUR_CURRENTS_API_KEY> is your Currents API key (create one in the Currents dashboard).