
Trunk Flaky Tests
io.trunk由 trunk.io 發布官方發布者v1.1.0更新於 Oct 24, 2026
Flaky test detection, root cause analysis, and fix suggestions for development teams.
概覽
Trunk Flaky Tests 的 MCP 伺服器,讓助理查詢不穩定測試的根本原因與修正建議,並產生將測試結果上傳到 Trunk 的設定方案。
- 可以做什麼
- 取得不穩定測試的根本原因分析與修正建議
- 產生將測試結果上傳到 Trunk 的設定方案
- 適用情境
- 適合已使用 Trunk Flaky Tests 的開發團隊,希望在 Cursor、Claude Code、GitHub Copilot 或 Gemini CLI 等 IDE 或 AI 用戶端中直接診斷不穩定測試並取得上傳設定指引。
- 執行需求
- 遠端 streamable HTTP 端點 Trunk 帳號透過 OAuth 2.0 + OpenID Connect 驗證,用戶端連線時會提示登入。需要受支援的 MCP 用戶端;說明指出 Gemini Code Assist 與 Windsurf 不受支援。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Trunk Flaky Tests,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.trunk%2Fmcp-server/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"trunk-flaky-tests": {
"type": "http",
"url": "https://mcp.trunk.io/mcp"
}
}
}README
[Trunk.io] [docs] [vscode] [slack] [openssf]
Trunk.io MCP Server
Leverage the power of Trunk Flaky Tests from your IDE, or the AI application of your choosing.
Use MCP Server
Trunk Flaky Tests comes with a Model Context Protocol (MCP) server. AI applications like Claude Code or Cursor can use MCP servers to connect to data sources, tools, and workflows — enabling them to access key information and perform tasks.
Supported AI Applications
[!NOTE] Gemini Code Assist and Windsurf are not supported due to their limited support for MCP servers.
Quick Start
Cursor
Add to .cursor/mcp.json:
Claude Code
GitHub Copilot
Add to .vscode/mcp.json:
Gemini CLI
Add to ~/.gemini/settings.json:
API
The MCP server is available at https://mcp.trunk.io/mcp and exposes the following tools:
Authorization
The Trunk MCP server supports the OAuth 2.0 + OpenID Connect standard for MCP authorization. When connecting from a supported client, you will be prompted to authenticate via your Trunk account.
Made with love by the Trunk.io team
來源:README.md,提交 8f93623
工具
0版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 75%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。
