> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Travis CI in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/travis-ci
Last updated: 2026-11-24

Share Travis CI with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 18 tools (8 read-only).

---

To give your team Travis CI in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Travis CI integration in a Metorial portal, and each person connects with an API token. Agents can manage CI/CD builds, jobs, and repositories on Travis CI. The integration has 18 tools, 8 read-only, 1 write and 9 destructive, plus 2 triggers.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API token from Travis CI for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Token** | API token | `token` |

### API Token

To connect, a person enters:

- `token`: Travis CI API access token. Obtain from Account Settings > API Token in the Travis CI dashboard, or via the Travis CI CLI.

### Setup settings

Setup also asks for:

- `baseUrl` (optional): Travis CI API base URL. Use https://api.travis-ci.com for travis-ci.com or your custom enterprise endpoint.

## Admin: share Travis CI in a portal

### In the dashboard

1. **Open Shared Resources**

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

2. **Share a new integration**

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

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see Travis CI. 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 Travis CI integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "travis ci"
```

## Employee: connect Travis CI

### In the portal

1. **Open Travis CI in the catalog**

   Sign in to your portal and open Travis CI. The status reads **Available**.

2. **Authenticate**

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

3. **Confirm**

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

### With the CLI

```bash
metorial catalog search "travis ci"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Travis CI 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.

```bash
metorial list "travis ci"
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 8 read-only tools, such as `get_build` and `list_builds`, and lose the write tool `trigger_build`, and the 9 destructive tools, such as `manage_job` or `get_job_log`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "travis ci"
metorial tools <integration-id>
metorial call <integration-id> list_builds -d '{}'
```

`metorial tools` lists the 18 tools, minus any you rejected. `list_builds` takes no input. It lists builds for a repository or for the authenticated user.

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

## Tools

### Read-only tools (8)

- `get_build`: Retrieve detailed information about a specific build, including its state, duration, commit details, and associated jobs. Needs `buildId`.
- `list_repositories`: List repositories accessible to the authenticated user or a specific owner.
- `list_builds`: List builds for a repository or for the authenticated user.
- `list_build_requests`: List the history of build requests for a repository, including those triggered by commits, pull requests, API calls, or cron jobs. Needs `repoSlugOrId`.
- `lint_travis_yml`: Validate a .travis.yml configuration file for syntax errors and warnings. Needs `content`.
- `list_branches`: List branches for a repository with their latest build status. Needs `repoSlugOrId`.
- `get_build_request`: Read an asynchronous build request and discover its resulting build IDs, processing state, and result.
- `get_current_user`: Identify the authenticated Travis CI account on the selected hosted or Enterprise API.

### Write tools (1)

- `trigger_build`: Trigger a new build for a repository. Needs `repoSlugOrId`.

### Destructive tools (9)

- `get_repository`: Retrieve detailed information about a Travis CI repository, including its activation status, default branch, and owner. Needs `repoSlugOrId`.
- `manage_job`: Get details about a specific job, or cancel, restart, or debug it. Needs `jobId`.
- `manage_build`: Cancel or restart a Travis CI build. Needs `buildId` and `action`.
- `manage_caches`: List or delete build caches for a repository. Needs `repoSlugOrId` and `action`.
- `manage_crons`: List, create, get, or delete scheduled cron builds for a repository. Needs `action`.
- `manage_env_vars`: List, get, create, update, or delete environment variables for a Travis CI repository. Needs `repoSlugOrId` and `action`.
- `get_job_log`: DEPRECATED — use `manage_job_log` instead. Needs `jobId`.
- `manage_repository_settings`: List, read, or update Travis CI repository build and log settings.
- `manage_job_log`: Download a Travis CI job log as a text or JSON file, or permanently remove its contents.

## Triggers

Travis CI has 2 triggers, which fire on events in Travis CI:

- `build_events`: Triggers when builds are created, started, pass, fail, error, or are cancelled.
- `inbound_webhook`

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Travis CI there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Travis CI on metorial.com](https://metorial.com/integrations/travis-ci): the integration overview