search-test
Experimental: Lookup the id of a test case
Flaky-test answers inside your coding agent: look a test up, get its root cause and a suggested fix, or pull the logs from a failed CI run.
LABSCO SUMMARY
Flaky-test detection needs a history of runs, and the setup step — getting results uploaded from your CI — is where most teams stall. Shipping that as a tool means the agent can do the onboarding as well as the fixing, in the same conversation. On the analysis itself: root cause matters more than the fix suggestion, because flakiness is usually a shared-state or timing problem that a naive retry hides rather than solves. Read the cause before applying the patch.
Trunk detects flaky tests across CI runs. The endpoint hands that analysis to a coding agent instead of a dashboard.
OAuth with OpenID Connect against your Trunk account, or your organisation's API token as a Bearer header for clients that cannot do OAuth. A single command adds it in Claude Code; other clients take the URL.
Paste a URL, then authorize — add the endpoint to your client, then approve the OAuth consent screen
USE CASES
Root cause plus a suggested fix, in the repo where you can apply it.
Generate the plan for uploading your CI test results.
Listed in project docs. Your client may show a different list.
search-testExperimental: Lookup the id of a test case
fix-flaky-testExperimental: Retrieve insights around a failing/flaky test
investigate-ci-failureExperimental: Retrieve failing test logs from a CI run
setup-trunk-uploadsCreate a setup plan to upload test results
BEFORE YOU INSTALL
4 tools named in the project's documentation.
INSTALLATION
Add the endpoint to your client, then approve the OAuth consent screen.
https://mcp.trunk.io/mcp