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

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

Share Linear with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 27 tools (13 read-only).

---

To give your team Linear in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Linear integration in a Metorial portal, and each person signs in to Linear with their own account. Agents can create, read, update, and delete issues across teams with support for priorities, labels, assignees, due dates, and workflow states. The integration has 27 tools, 13 read-only, 12 write and 2 destructive, plus 6 triggers.

**What you will learn**

- How an admin shares Linear in a portal and how each person connects
- The 6 OAuth scopes Linear can request, and what each one allows
- How to keep the 13 read-only tools and reject the other 14

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Linear for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **OAuth** (default) | OAuth | Signs in to Linear |
| **API Key** | API token | `token` |

The portal and `metorial setup` use **OAuth** unless someone picks another method.

### OAuth

People sign in to Linear and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `read` | Read | Read access for the user's account. |
| `write` | Write | Write access for the user's account. |
| `issues:create` | Create Issues | Allows creating new issues and their attachments only. |
| `comments:create` | Create Comments | Allows creating new issue comments only. |
| `timeSchedule:write` | Time Schedule | Allows creating and modifying time schedules. |
| `admin` | Admin | Full access to admin-level endpoints. |

### API Key

To connect, a person enters:

- `token`: Personal API key from Linear Settings > Account > Security & Access

## Use your own Linear OAuth app

With your own OAuth app, people see your company's name on the Linear consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Linear and copy the **Redirect URI**.

2. **Register the app with Linear**

   In Linear, create a new OAuth2 application under **Settings**, then **API**, and add the redirect URI from Metorial as a callback URL. Linear recommends creating the application in a workspace set aside for it, because every admin of that workspace can see it. Copy the client ID and client secret.

   Linear always grants the `read` scope. Add `write` only if agents should change data, and `admin` only when a tool needs it.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Linear integration.

## Admin: share Linear 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 Linear. Under **Auth Method**, keep **OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Linear as themselves.

3. **Limit the tools**

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

4. **Choose who gets it**

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

```bash
metorial-admin portals access list <portal-id> --type provider_template --search linear
```

## Employee: connect Linear

### In the portal

1. **Open Linear in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Linear sign-in tab opens. Sign in and approve the permissions listed.

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 linear
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth**. To connect with **API Key** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Linear 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 linear
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 13 read-only tools, such as `get_team` and `get_issue`, and lose the 12 write tools, such as `create_cycle` or `create_issue`, and the 2 destructive tools, such as `delete_issue` or `delete_comment`.

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 linear
metorial tools <integration-id>
metorial call <integration-id> get_viewer -d '{}'
```

`metorial tools` lists the 27 tools, minus any you rejected. `get_viewer` takes no input. 

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

## Tools

### Read-only tools (13)

- `list_documents`: Lists documents in the workspace with pagination support.
- `get_team`: Retrieves detailed information about a team including its workflow states, labels, and members. Needs `teamId`.
- `list_workflow_states`: Lists workflow states (issue statuses) across teams.
- `get_viewer`: Retrieves the profile of the currently authenticated user, including their organization info.
- `list_cycles`: Lists cycles (sprints) in Linear, optionally filtered by team.
- `list_projects`: Lists all projects in the workspace with pagination support.
- `list_users`: Lists all users in the workspace.
- `search_issues`: Searches Linear issues using text/vector similarity search. Needs `query`.
- `get_issue`: Retrieves a single Linear issue by ID with full details including sub-issues and comments. Needs `issueId`.
- `list_labels`: Lists issue labels, optionally filtered by team.
- `get_project`: Retrieves a single project by ID with full details including associated issues. Needs `projectId`.
- `list_issues`: Lists issues from Linear with optional filtering by team, assignee, project, cycle, or workflow state.
- `list_teams`: Lists all teams in the workspace.

### Write tools (12)

- `update_cycle`: Updates an existing cycle in Linear. Needs `cycleId`.
- `update_project`: Updates an existing Linear project. Needs `projectId`.
- `create_cycle`: Creates a new cycle (sprint) for a team in Linear. Needs `teamId`, `startsAt` and `endsAt`.
- `update_issue`: Updates an existing Linear issue. Needs `issueId`.
- `create_issue`: Creates a new issue in a Linear team. Needs `teamId` and `title`.
- `create_project`: Creates a new project in Linear. Needs `name` and `teamIds`.
- `update_label`: Updates an existing issue label's name, color, or description. Needs `labelId`.
- `create_comment`: Creates a new comment on a Linear issue. Needs `issueId` and `body`.
- `update_document`: Updates an existing document's title, content, or project association. Needs `documentId`.
- `create_document`: Creates a new document in Linear. Needs `title`.
- `update_comment`: Updates an existing comment on a Linear issue. Needs `commentId` and `body`.
- `create_label`: Creates a new issue label. Needs `name`.

### Destructive tools (2)

- `delete_issue`: Permanently deletes an issue from Linear. Needs `issueId`.
- `delete_comment`: Permanently deletes a comment from a Linear issue. Needs `commentId`.

## Triggers

Linear has 6 triggers, which fire on events in Linear:

- `comment_events`: Triggers when comments on issues are created, updated, or removed in Linear.
- `label_events`: Triggers when issue labels are created, updated, or removed in Linear.
- `cycle_events`: Triggers when cycles (sprints) are created, updated, or removed in Linear.
- `issue_events`: Triggers when issues are created, updated, or removed in Linear.
- `project_events`: Triggers when projects are created, updated, or removed in Linear.
- `document_events`: Triggers when documents are created, updated, or removed in Linear.

## 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 Linear there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Linear on metorial.com](https://metorial.com/integrations/linear): the integration overview