Fix flaky test

MCP tool reference: fix-flaky-test

Overview

The fix-flaky-test tool retrieves insights and historical failure analysis about a flaky test. This tool allows AI assistants to access investigation results and apply fixes directly in your development environment.

Return Type: Structured analysis data with fix recommendations. Structure: issue, root cause, proposed fix

Parameters

Required Parameters

Parameter
Type
Description

repoName

string

Repository name in owner/repo format (e.g., trunk-io/trunk)

Optional Parameters

Parameter
Type
Description

fixId

string

Specific fix identifier from CI Autopilot comment (e.g., FIX-abc123)

orgSlug

string

The name of your organization in the Trunk app

Getting Parameter Values

If your AI assistant doesn't have direct access to Git information, use these commands:

Get repository name:

git remote -v

Look for the repository name in the output (e.g., trunk-io/trunk from [email protected]:trunk-io/trunk.git)

Usage Examples

With Fix ID

Sample Response

Error Handling

Error
Cause
Resolution

Fix {fixId} not found

Invalid or non-existent fix ID

Verify the fix ID from the original CI Autopilot comment

fixId must be provided

Missing required query parameter

Fix ID is required

Repository authorization error

Insufficient permissions or invalid repo name

Verify repository name format and your access permissions

Last updated