This extension connects Trunk to GitHub Copilot through VS Code's MCP support. Once installed, Copilot can pull flaky test data from Trunk and suggest fixes directly in chat.
The extension registers Trunk's MCP server with VS Code. Copilot picks it up automatically and gains access to the fix-flaky-test tool, which can:
- Identify flaky tests in your repo
- Explain why a test is flaking (root cause analysis)
- Suggest code changes to fix it
- Show historical failure patterns
No configuration files to edit. No API keys to manage. The MCP server handles auth via OAuth when Copilot first connects.
- Install this extension
- Open Copilot Chat and ask something like
fix my flaky tests - Trunk will prompt you to sign in the first time (OAuth via browser)
- That's it. Copilot now has access to your Trunk data.
You can also run Trunk: Connect to Trunk from the command palette to kick off the connection manually.
- VS Code 1.99+
- GitHub Copilot extension
- A Trunk account with CI test uploads configured
If you haven't set up test uploads yet, check the Trunk docs to get your CI pipeline reporting test results.