
Blacksmith
io.github.grahamnotgrant由 GitHub 帳號 grahamnotgrant 發布v0.1.1更新於 Oct 24, 2026
MCP server for Blacksmith CI - query runs, analyze test failures, detect flaky tests.
概覽
讓助理查詢 Blacksmith CI 的工作流程執行、分析測試失敗、偵測不穩定測試,並查看用量與帳單。
- 可以做什麼
- 透過一組工具把助理連接到 Blacksmith CI 資料,可列出並檢視工作流程執行、作業與作業日誌。測試分析工具會回傳失敗測試、依錯誤模式分組的失敗、兩次執行之間的比較、不穩定與耗時過長的測試、單一測試的歷史紀錄以及趨勢。另有工具回報核心用量、帳單金額、用量摘要、快取統計與快取項目,以及組織清單、組織狀態和跨作業日誌搜尋。
- 適用情境
- 適合團隊在 Blacksmith 上執行 CI 時使用:以對話方式排查失敗的執行、找出不穩定或過慢的測試、比較拉取請求與基準分支的失敗差異,或查看用量與快取佔用,而不必在多個儀表板之間來回點選。
- 執行需求
- 以 stdio 方式在本機執行,通常透過 npx blacksmith-mcp 啟動,因此需要 Node.js。需要設定 BLACKSMITH_ORG 環境變數。身分驗證可自動從 macOS 上的 Chrome 擷取工作階段 cookie,也可手動設定 BLACKSMITH_SESSION_COOKIE 環境變數。需要連線至 Blacksmith API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Blacksmith,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Blacksmith MCP
[npm version] [License: MIT] [MCP]
An MCP server that connects Claude to your Blacksmith CI data. Query workflow runs, analyze test failures, detect flaky tests, and monitor usage—all through natural conversation.
Why?
Debugging CI failures usually means clicking through dashboards, copying run IDs, and piecing together information across multiple pages. With this MCP, you can just ask:
- "Why did the last CI run fail?"
- "Which tests are flaky this week?"
- "Compare test failures between main and my PR"
- "What's using the most cache storage?"
Claude handles the API calls and gives you actionable insights.
Quick Start
Zero-config if you're logged into Blacksmith in Chrome:
The MCP automatically extracts your session from Chrome cookies. No manual token copying needed.
Installation
Option 1: Claude Code CLI
Option 2: Project Configuration
Add to your .mcp.json:
Option 3: Global Install
Configuration
Authentication
Automatic (recommended): Log into app.blacksmith.sh in Chrome. The MCP extracts your session cookie automatically.
Manual: Set BLACKSMITH_SESSION_COOKIE environment variable with your session cookie value.
Environment Variables
Available Tools
Workflow Runs
Test Analytics
Usage & Billing
Organization
Example Conversations
Debug a Failed Run
You: Why did the last CI run fail?
Claude: Uses
list_runs(status="failure", limit=1)thenget_failed_testsThe last run failed with 34 test failures. The main issues are:
- Connection timeout (12 tests) - Tests in
api/are timing out connecting to the test database- Undefined property (8 tests) -
user.settings.themeis undefined in the new dark mode code- Assertion failures (14 tests) - Snapshot mismatches in UI components
Find Flaky Tests
You: Which tests are flaky?
Claude: Uses
get_flaky_tests(days=7, min_runs=5)Found 3 flaky tests:
Compare Branches
You: Did my PR introduce new test failures?
Claude: Uses
compare_test_runswith PR run vs base branchYour PR introduced 2 new failures:
UserProfile.test.tsx: "Cannot read property 'avatar' of undefined"api/users.test.ts: Expected 200, got 4045 previously failing tests now pass (nice!).
Development
Troubleshooting
Session Expired
If you see SESSION_EXPIRED, your Blacksmith session has expired. Simply log back into app.blacksmith.sh in Chrome and retry.
Cookie Extraction Failed
The automatic cookie extraction requires:
- macOS with Chrome installed
- Being logged into Blacksmith in Chrome
- Chrome not running with a locked profile
If it fails, set BLACKSMITH_SESSION_COOKIE manually.
No Organization Set
Run list_orgs to see available organizations, then set BLACKSMITH_ORG to your org name.
API Notes
This MCP uses Blacksmith's internal web API, which is undocumented. The API was reverse-engineered from the Blacksmith web app and may change without notice.
License
MIT
Contributing
Contributions welcome! Please open an issue first to discuss proposed changes.
來源:README.md,提交 f9ea93d
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分