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
