MetorialDocs

Set up Linear in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in methods

MethodTypeWhat a person provides
OAuth (default)OAuthSigns in to Linear
API KeyAPI tokentoken

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:

ScopeNameWhat it allows
readReadRead access for the user's account.
writeWriteWrite access for the user's account.
issues:createCreate IssuesAllows creating new issues and their attachments only.
comments:createCreate CommentsAllows creating new issue comments only.
timeSchedule:writeTime ScheduleAllows creating and modifying time schedules.
adminAdminFull 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.

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.

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.

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

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 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.

Limit the tools

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

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:

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

Employee: connect Linear

In the portal

Open Linear in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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