# Reference

- [CLI reference](https://docs.trunk.io/flaky-tests/reference/cli-reference.md): CLI tool for uploading test results to Trunk from CI, enabling flaky test detection and quarantining.
- [API reference](https://docs.trunk.io/flaky-tests/reference/api-reference.md): REST API for checking Trunk service status and fetching unhealthy or quarantined tests in your project.
- [MCP reference](https://docs.trunk.io/flaky-tests/reference/mcp-reference.md): Use the Trunk MCP server from your IDE or AI application to access flaky test insights and configure test uploads
- [Configuration](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration.md): Configure your AI application to connect to the Trunk MCP server for flaky test insights and setup assistance.
- [Cursor (IDE)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/cursor-ide.md): Add Trunk's MCP Server to Cursor
- [GitHub Copilot (IDE)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/github-copilot-ide.md): Add Trunk's MCP Server to GitHub Copilot
- [Claude Code (CLI)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/claude-code-cli.md): Add Trunk's MCP Server to Claude Code
- [Claude Code Plugin](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/claude-code-plugin.md): Install the Trunk plugin for Claude Code
- [Gemini (CLI)](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/gemini-cli.md): Add Trunk's MCP Server to Gemini
- [Bearer Auth](https://docs.trunk.io/flaky-tests/reference/mcp-reference/configuration/bearer-auth.md): Add Trunk's MCP Server via Bearer Authentication
- [Search for tests](https://docs.trunk.io/flaky-tests/reference/mcp-reference/search-test.md): MCP tool reference: search-test
- [Fix flaky tests](https://docs.trunk.io/flaky-tests/reference/mcp-reference/fix-flaky-test.md): MCP tool reference: fix-flaky-test
- [Set up test uploads](https://docs.trunk.io/flaky-tests/reference/mcp-reference/set-up-test-uploads.md): MCP tool reference: setup-trunk-uploads
- [Investigate CI failure](https://docs.trunk.io/flaky-tests/reference/mcp-reference/investigate-ci-failure.md): MCP tool reference: investigate-ci-failure


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trunk.io/flaky-tests/reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
