> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Buildkite

> Read a failing build down to its first real error, without leaving the incident.

Connect Buildkite's [remote MCP server](https://buildkite.com/docs/apis/mcp-server) as a [connector](https://docs.incident.io/nexus/extensions/connectors.md) to give incident.io's agents tools for pipelines, builds, jobs and build logs. An investigation can then check whether a recent build or deploy failed, and why.

**What you'll need:**

* A Buildkite account with access to the organization you want agents to reach.
* The **Manage Nexus sources** permission in incident.io.

## Connect it in incident.io

The server signs in with OAuth, so calls run with the access of the Buildkite user who connects it. Consider connecting with a user that has only the access you want agents to have.

1. From [Extensions](https://app.incident.io/~/nexus/extensions), add a connector and choose **MCP server**.
2. Leave network access as **Public internet**, and give the connector a display name such as `Buildkite`.
3. Enter `https://mcp.buildkite.com/mcp` as the server URL, and click **Check URL**.
4. Under **Authentication**, choose **OAuth** and click **Connect with OAuth**.
5. In Buildkite, select the organization, review the scopes, and click **Authorize**.
6. Review which tools are enabled and the connector's [default policy](https://docs.incident.io/nexus/extensions/connectors.md#default-policy), then save.

> [!TIP]
>
> To keep agents to read-only tools, use `https://mcp.buildkite.com/mcp/readonly` as the server URL instead. It only
> offers tools that need a read scope.

See [Connectors](https://docs.incident.io/nexus/extensions/connectors.md#permissions) for how to control which tools agents can call, and from where.

## Pair it with a skill

Agents work best with a connector when it's paired with a [skill](https://docs.incident.io/nexus/extensions/plugins.md). For Buildkite, say which pipelines build and deploy which services, which branch is production, and whether a retried job counts as a fix or a flake.
