Currents

official

Enable AI Agents to fix Playwright test failures reported to Currents.

What can you do with Currents MCP?

  • Retrieve CI test runs — Fetch runs for a project with optional filtering using currents-get-runs and inspect a specific run’s details via currents-get-run-details.
  • Diagnose flaky or failing tests — Get failure context with currents-get-context, explore error trends via currents-get-errors-explorer, and review historical results with currents-get-test-results.
  • Analyze test performance — Retrieve spec file and test-level performance metrics across a date range using currents-get-spec-files-performance and currents-get-tests-performance.
  • Manage quarantine rules and actions — List, create, update, enable, disable, or delete actions with currents-list-actions and related action tools, and see which tests are affected.
  • Control CI runs programmatically — Cancel in-progress runs, reset failed spec files for re-execution, or delete runs and their data using currents-cancel-run, currents-reset-run, and currents-delete-run.
  • Integrate with Jira — Create or link Jira issues from run tests and list available Jira projects and issue types via currents-create-jira-issue and related Jira tools.

Documentation

Currents MCP Server

Unit Tests

Give your AI coding agents full visibility into your CI test results. The Currents MCP Server connects tools like Cursor and Claude directly to your Currents dashboard, so agents can diagnose flaky tests, pinpoint failures, and act on real execution data -- without leaving your editor.

  • Query runs, spec files, and individual test results from CI
  • Surface error trends and performance metrics across your test suite
  • Manage quarantine rules, webhooks, and project settings programmatically
  • Let agents fix what's broken using actual test output, not guesswork

Install MCP Server

Tools

ToolDescription
currents-list-actionsList all actions for a project with optional filtering.
currents-create-actionCreate a new action for a project.
currents-get-actionGet a single action by ID.
currents-update-actionUpdate an existing action.
currents-delete-actionDelete (archive) an action.
currents-enable-actionEnable a disabled action.
currents-disable-actionDisable an active action.
currents-list-affected-testsList tests affected by actions (quarantine, skip, tag) for a project within a date range.
currents-get-affected-test-executionsGet execution details for a specific affected test (by signature) within a date range.
currents-get-affected-executionsList test executions where a specific action/rule was applied, within a date range.
currents-get-projectsRetrieves projects available in the Currents platform.
currents-get-projectGet a single project by ID.
currents-get-project-insightsGet aggregated run and test metrics for a project within a date range.
currents-list-pull-requestsList pull-request cards for a project (runs grouped by meta.pr.id).
currents-list-project-termsList cursor-paginated project terms for one type (tag, branch, authorName, etc.).
currents-create-jira-issueCreate a Jira issue from a run test using the organization Jira integration.
currents-link-jira-issueLink an existing Jira issue to a run test using the organization Jira integration.
currents-list-jira-projectsList Jira projects available for the organization integration.
currents-list-jira-issue-typesList Jira issue types and custom fields for a Jira project.
currents-get-runsRetrieves a list of runs for a specific project with optional filtering.
currents-get-run-detailsRetrieves details of a specific test run.
currents-find-runFind a run by query parameters.
currents-cancel-runCancel a run in progress.
currents-reset-runReset failed spec files in a run to allow re-execution.
currents-delete-runDelete a run and all associated data.
currents-cancel-run-github-ciCancel a run by GitHub Actions workflow run ID and attempt number.
currents-get-spec-instanceRetrieves debugging data from a specific execution of a test spec file by instanceId.
currents-get-spec-files-performanceRetrieves spec files performance metrics for a specific project within a date range.
currents-get-tests-performanceRetrieves aggregated test metrics for a specific project within a date range.
currents-get-tests-signaturesGenerates a unique test signature based on project, spec file path, and test title.
currents-get-test-resultsRetrieves historical test execution results for a specific test signature.
currents-get-contextGet test failure context for AI debugging at run, instance, or test level.
currents-get-errors-explorerGet aggregated error metrics for a project within a date range.
currents-list-webhooksList all webhooks for a project.
currents-create-webhookCreate a new webhook for a project.
currents-get-webhookGet a single webhook by ID.
currents-update-webhookUpdate an existing webhook.
currents-delete-webhookDelete a webhook.

Setup

API Key

Get a Currents API key by following the instructions here.

Usage with Cursor

  1. Go to Cursor Settings > MCP > Enable
  2. Add the following to your mcp.json.
{
  "mcpServers": {
    "currents": {
      "command": "npx",
      "args": ["-y", "@currents/mcp"],
      "env": {
        "CURRENTS_API_KEY": "your-api-key"
      }
    }
  }
}

Claude

Run this command to add Currents MCP to Claude Code

claude mcp add --transport stdio currents --env CURRENTS_API_KEY=<KEY> -- npx -y @currents/mcp

Add the following to enable Currents MCP on Claude Desktop (edit claude_desktop_config.json file):

{
  "mcpServers": {
    "currents": {
      "command": "npx",
      "args": ["-y", "@currents/mcp"],
      "env": {
        "CURRENTS_API_KEY": "your-api-key"
      }
    }
  }
}

Remote (hosted) MCP endpoint

In addition to the local stdio transport above, the same server can run as a hosted Streamable HTTP endpoint (e.g. https://mcp.currents.dev/mcp) for use with remote connectors such as the Claude web/mobile apps.

The hosted server performs no authentication of its own. Each request must carry your Currents API key as a Bearer token, which is passed through to the Currents API:

Authorization: Bearer <your-currents-api-key>

Example client config (remote connector):

{
  "mcpServers": {
    "currents": {
      "url": "https://mcp.currents.dev/mcp",
      "headers": {
        "Authorization": "Bearer your-api-key"
      }
    }
  }
}

Running the HTTP server yourself:

# from the mcp-server package
npm run build && PORT=3000 npm run start:http
# or via Docker (serves /mcp, exposes the configured PORT)
docker build -t currents-mcp . && docker run -p 3000:3000 currents-mcp

The Node server speaks plain HTTP; TLS and the public domain terminate at the reverse proxy / load balancer in front of the container. A GET /healthz endpoint is provided for liveness checks.

⚠️ Notice

By connecting AI tools (e.g., via MCP) to Currents, you are granting them access to your API key, test results and CI metadata. It is your responsibility to vet any AI agents or services you use, and to ensure they handle your data securely.

References