Currents
dev.currentsv1.0.0更新于 Oct 2, 2026
Self-healing CI tests and proof of work for AI agents
概览
将 AI 编程代理连接到 Currents 的 CI 测试数据,用于查看运行记录、诊断不稳定或失败的测试并管理隔离规则。
- 功能
- Currents MCP 服务器把 Currents 仪表盘中的 CI 测试数据开放给助手。相关工具可以列出并查看运行、spec 文件、单个测试结果、错误趋势和性能指标,并获取失败上下文、证据产物和可分享的 trace 链接。它还能管理项目设置,例如操作规则(隔离、跳过、打标签)、webhook,以及创建和关联 Jira 问题。以 MCP 资源形式发布的技能描述了修复失败测试和收集证据的多步工作流。
- 适用场景
- 当助手需要依据真实的执行数据而非猜测来诊断或修复 CI 中失败的测试时适用,也适合让代理读取 Currents 中的测试证据、错误趋势和运行历史。团队若希望在编辑器内管理隔离规则、webhook 或 Jira 问题,也可以使用。
- 运行要求
- 需要 Currents 账号和 API 密钥。托管端点 要求在 Authorization 请求头中以 Bearer 令牌传入密钥;本地 stdio 方式通过 npx 运行 npm 包 @currents/mcp,并设置 CURRENTS_API_KEY。VS Code 使用 Currents 登录而非 API 密钥。自托管需要 Node.js 或 Docker。
安装
在 SourceWeft 中
- 打开 控制台中的 Currents,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"mcp": {
"type": "http",
"url": "https://mcp.currents.dev/mcp"
}
}
}README
Currents MCP Server
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
Tools
Skills
Agent skills that teach AI agents multi-step Currents workflows.
The server publishes every skill as an MCP resource, so a connected agent can list and read them without a local copy:
Agents that load skills only from disk still need a copy — put the skill
directory in the agent's skills location (e.g. .claude/skills/ for Claude
Code).
Setup
API Key
Get a Currents API key by following the instructions here.
Usage with Cursor
- Go to Cursor Settings > MCP > Enable
- Add the following to your
mcp.json.
Claude
Run this command to add Currents MCP to Claude Code
Add the following to enable Currents MCP on Claude Desktop (edit claude_desktop_config.json file):
VS Code and GitHub Copilot
Install in VS Code adds the hosted server. VS Code opens a Currents sign-in page the first time it connects; there is no API key to enter.
To install the plugin, which adds the skills as well as the server:
-
VS Code: open
vscode://chat-plugin/install?source=currents-dev/currents-mcp -
Copilot CLI:
To add only the server to Copilot CLI:
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:
Example client config (remote connector):
Running the HTTP server yourself:
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
来源:README.md,提交 0035419
工具
0版本历史
1- v1.0.0最新Oct 2, 2026
