MetorialDocs

Set up Buildkite in Metorial for Claude, ChatGPT and Cursor

Share Buildkite with your team in Claude, ChatGPT and Cursor through Metorial: API access token sign-in, 25 tools (15 read-only).

To give your team Buildkite in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Buildkite integration in a Metorial portal, and each person connects with an API access token. Agents can discover Buildkite organizations, clusters and teams. The integration has 25 tools, 15 read-only, 7 write and 3 destructive, plus 3 triggers.

What you'll learn

  • How an admin shares Buildkite in a portal and how each person connects
  • What Buildkite asks for when you connect, and where to find it
  • How to keep the 15 read-only tools and reject the other 10

Before you start

Sign-in method

MethodTypeWhat a person provides
API Access TokenAPI tokentoken

API Access Token

To connect, a person enters:

  • token: Buildkite API access token. Create one from your Personal Settings > API Access Tokens page.

Setup settings

Setup also asks for:

  • organizationSlug: The slug of your Buildkite organization (found in your Buildkite URL)

Admin: share Buildkite in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Buildkite. For how members connect, choose Each person connects so everyone enters their own API access token, or Shared connection to enter one API access token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Buildkite.

Choose who gets it

Add the access groups that should see Buildkite. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Buildkite integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search buildkite

Employee: connect Buildkite

In the portal

Open Buildkite in the catalog

Sign in to your portal and open Buildkite. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API access token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search buildkite
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Buildkite connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list buildkite
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 15 read-only tools, such as who_am_i and get_agent, and lose the 7 write tools, such as manage_job or create_build, and the 3 destructive tools, such as stop_agent or delete_pipeline.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list buildkite
metorial tools <integration-id>
metorial call <integration-id> list_agents -d '{}'

metorial tools lists the 25 tools, minus any you rejected. list_agents takes no input. It lists connected and stopping Buildkite agents in your organization.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (15)

  • who_am_i: Identify the Buildkite user who owns the current API access token.
  • list_organizations: Discover accessible Buildkite organizations and their slugs for subsequent tools.
  • list_clusters: Discover Buildkite clusters and their UUIDs for create_pipeline.
  • list_annotations: Read build annotations and rendered HTML for mutation readback or discovering IDs to delete.
  • get_job_log: DEPRECATED — use `download_job_log` instead. Needs pipelineSlug, buildNumber and jobId.
  • get_build: Retrieve detailed information about a specific build including all its jobs/steps. Needs pipelineSlug and buildNumber.
  • download_job_log: Prepare a downloadable plain-text job log.
  • list_builds: List builds across all pipelines or for a specific pipeline.
  • get_agent: Inspect a known Buildkite agent, including stopped or disconnected agents.
  • list_teams: Discover Buildkite team UUIDs and names for pipeline access assignments.
  • download_artifact: Prepare a downloadable build artifact.
  • list_artifacts: List artifacts produced by a specific build. Needs pipelineSlug and buildNumber.
  • list_agents: List connected and stopping Buildkite agents in your organization.
  • get_pipeline: Retrieve detailed information about a specific Buildkite pipeline by its slug. Needs pipelineSlug.
  • list_pipelines: List CI/CD pipelines in your Buildkite organization.

Write tools (7)

  • update_pipeline: Update an existing Buildkite pipeline's settings. Needs pipelineSlug.
  • manage_job: Retry a failed job or unblock a blocked step in a Buildkite build. Needs pipelineSlug, buildNumber, jobId and action.
  • create_build: Trigger a new build for a Buildkite pipeline. Needs pipelineSlug, commit and branch.
  • manage_build: Request cancellation of a scheduled, running or failing Buildkite build, or rebuild it with its original commit, branch and settings. Needs pipelineSlug, buildNumber and action.
  • create_pipeline: Create a new CI/CD pipeline in your Buildkite organization. Needs name and repository.
  • create_annotation: Add an annotation to a Buildkite build. Needs pipelineSlug, buildNumber and body.
  • archive_pipeline: Archive or unarchive a Buildkite pipeline. Needs pipelineSlug and action.

Destructive tools (3)

  • stop_agent: Stop a connected Buildkite agent. Needs agentId.
  • delete_annotation: Delete one build annotation identified by list_annotations.
  • delete_pipeline: Permanently delete a Buildkite pipeline. Needs pipelineSlug.

Triggers

Buildkite has 3 triggers, which fire on events in Buildkite:

  • build_events: Triggers when a build changes state (scheduled, running, failing, finished, skipped).
  • job_events: Triggers when a job (build step) changes state (scheduled, started, finished, activated/unblocked).
  • agent_events: Triggers when an agent lifecycle event occurs (connected, lost, disconnected, stopping, stopped, blocked).

Next steps