Currents
STDIOOfficial连接AI与Currents的测试结果分析服务
连接AI与Currents的测试结果分析服务
This is a MCP server that allows you to provide test results context to your AI agents by connecting them to Currents. Useful for asking AI to fix or optimize tests failing in CI.
| Tool | Description | 
|---|---|
currents-get-projects | Retrieves a list of all projects available. | 
currents-get-runs | Retrieves a list the latest runs for a specific project. | 
currents-get-run-details | Retrieves details of a specific test run. | 
currents-get-spec-instances | Retrieves debugging data a specific execution of a test spec file. | 
currents-get-spec-files-performance | Retrieves spec file historical performance metrics for a specific project. | 
currents-get-tests-performance | Retrieves test historical performance metrics for a specific project. | 
currents-get-tests-signatures | Retrieves a test signature by its spec file name and test name. | 
currents-get-test-results | Retrieves debugging data from test results of a test by its signature. | 
Get a Currents API key by following the instructions here.
mcp.json.{
  "mcpServers": {
    "currents": {
      "command": "npx",
      "args": [
        "-y",
        "@currents/mcp"
      ],
      "env": {
        "CURRENTS_API_KEY": "your-api-key"
      }
    }
  }
}
Add the following to your claude_desktop_config.json:
{
  "mcpServers": {
    "currents": {
      "command": "npx",
      "args": [
        "-y",
        "@currents/mcp"
      ],
      "env": {
        "CURRENTS_API_KEY": "your-api-key"
      }
    }
  }
}
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.
We welcome contributions of all kinds—bug fixes, features, and documentation updates!
git clone https://github.com/<your-username>/currents-mcp.git cd currents-mcp
cd mcp-server npm install
npm run build
See TESTING.md for more details on testing.npm test
You should see:npm start
Currents MCP Server running on stdio.To test with a local MCP client (e.g., Cursor or Claude Desktop), point the client to your built server:
node./mcp-server/build/index.jsCURRENTS_API_KEY to a valid keyExample snippet for a client config:
{ "mcpServers": { "currents": { "command": "node", "args": ["./mcp-server/build/index.js"], "env": { "CURRENTS_API_KEY": "your-api-key" } } } }
To test the tools locally without any LLM, you can use the following command:
npm run build
then run the tools script:
node scripts/call-tools.js
git checkout -b feat/short-description
mcp-server/src/, then rebuild and re-run:
npm run build && npm start
*.test.ts files alongside your codenpm test
git push origin feat/short-description
By contributing, you agree that your contributions will be licensed under the ISC license (as specified in the package metadata).