home / mcp / currents mcp server
Provides Currents data sources and actions for AI agents to access projects, runs, insights, and tests.
Configuration
View docs{
"mcpServers": {
"currents-dev-currents-mcp": {
"command": "npx",
"args": [
"-y",
"@currents/mcp"
],
"env": {
"CURRENTS_API_KEY": "YOUR_API_KEY"
}
}
}
}You can connect your AI agents to Currents through this MCP server to provide test results context for debugging, fixing, or optimizing tests in CI. It enables your tools to access Currents projects, runs, and metrics directly as part of their workflows.
You use Currents MCP by running it as a local MCP server or by pointing your MCP client to Currents through the provided command. This server exposes actions that let your AI tools fetch projects, examine test runs, retrieve performance metrics, and manage runs or webhooks within Currents. Ensure you have a valid Currents API key to authorize these requests, and configure your MCP client to load Currents as an MCP source.
Prerequisites: you need Node.js and npm (or a compatible runtime that supports NPX). Install Node.js from the official sources if you do not already have it.
1. Obtain your Currents API key from your Currents account setup. You will use this key to authorize MCP requests.
2. Add Currents MCP to your MCP client configuration. Use the following snippet to enable Currents in your MCP client and point it to the Currents MCP package.
{
"mcpServers": {
"currents": {
"command": "npx",
"args": ["-y", "@currents/mcp"],
"env": {
"CURRENTS_API_KEY": "your-api-key"
}
}
}
}To connect Currents MCP to Claude, run the following command to register Currents as an MCP transport for Claude Code.
claude mcp add --transport stdio currents --env CURRENTS_API_KEY=<KEY> -- npx -y @currents/mcpTo enable Currents MCP on Claude Desktop, add the following to your claude_desktop_config.json file.
{
"mcpServers": {
"currents": {
"command": "npx",
"args": ["-y", "@currents/mcp"],
"env": {
"CURRENTS_API_KEY": "your-api-key"
}
}
}
}Retrieves the list of projects available in Currents for selection and context.
Fetches a single Currents project by its ID to inspect details and metrics.
Retrieves aggregated run and test metrics for a project within a specified date range.
Returns a list of runs for a given project, with optional filtering by status, date, or other criteria.
Provides detailed information for a specific test run, including status and results.
Searches for a run using query parameters to locate a matching execution.
Cancels a run that is currently in progress.
Resets failed spec files within a run to allow re-execution.
Deletes a run and all data associated with it.
Cancels a run based on a GitHub Actions workflow run ID and attempt number.
Retrieves debugging data for a specific execution of a test spec file by instanceId.
Retrieves performance metrics for spec files within a project over a date range.
Gets aggregated test metrics for a project across a date range.
Generates a unique test signature from project, spec path, and test title.
Fetches historical test execution results for a specific test signature.
Aggregates error metrics for a project with filtering and grouping capabilities.
Lists all actions for a project with optional filtering.
Creates a new action for a project.
Retrieves a single action by its ID.
Updates an existing action.
Deletes (archives) an action.
Enables a disabled action.
Disables an active action.
Lists all webhooks for a project.
Creates a new webhook for a project.
Retrieves a single webhook by its ID.
Updates an existing webhook.
Deletes a webhook.