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
- A portal with at least one access group
- An API access token from Buildkite for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Access Token | API token | token |
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:
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
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.
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 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. NeedspipelineSlug,buildNumberandjobId.get_build: Retrieve detailed information about a specific build including all its jobs/steps. NeedspipelineSlugandbuildNumber.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. NeedspipelineSlugandbuildNumber.list_agents: List connected and stopping Buildkite agents in your organization.get_pipeline: Retrieve detailed information about a specific Buildkite pipeline by its slug. NeedspipelineSlug.list_pipelines: List CI/CD pipelines in your Buildkite organization.
Write tools (7)
update_pipeline: Update an existing Buildkite pipeline's settings. NeedspipelineSlug.manage_job: Retry a failed job or unblock a blocked step in a Buildkite build. NeedspipelineSlug,buildNumber,jobIdandaction.create_build: Trigger a new build for a Buildkite pipeline. NeedspipelineSlug,commitandbranch.manage_build: Request cancellation of a scheduled, running or failing Buildkite build, or rebuild it with its original commit, branch and settings. NeedspipelineSlug,buildNumberandaction.create_pipeline: Create a new CI/CD pipeline in your Buildkite organization. Needsnameandrepository.create_annotation: Add an annotation to a Buildkite build. NeedspipelineSlug,buildNumberandbody.archive_pipeline: Archive or unarchive a Buildkite pipeline. NeedspipelineSlugandaction.
Destructive tools (3)
stop_agent: Stop a connected Buildkite agent. NeedsagentId.delete_annotation: Delete one build annotation identified by list_annotations.delete_pipeline: Permanently delete a Buildkite pipeline. NeedspipelineSlug.
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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Buildkite there
- Tool permissions: tool filters and what employees see
- Buildkite on metorial.com: the integration overview