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
- A portal with at least one access group
- An account with Linear for each person who connects
- For the CLI steps: the Metorial 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.
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:
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
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.
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 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. NeedsteamId.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. Needsquery.get_issue: Retrieves a single Linear issue by ID with full details including sub-issues and comments. NeedsissueId.list_labels: Lists issue labels, optionally filtered by team.get_project: Retrieves a single project by ID with full details including associated issues. NeedsprojectId.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. NeedscycleId.update_project: Updates an existing Linear project. NeedsprojectId.create_cycle: Creates a new cycle (sprint) for a team in Linear. NeedsteamId,startsAtandendsAt.update_issue: Updates an existing Linear issue. NeedsissueId.create_issue: Creates a new issue in a Linear team. NeedsteamIdandtitle.create_project: Creates a new project in Linear. NeedsnameandteamIds.update_label: Updates an existing issue label's name, color, or description. NeedslabelId.create_comment: Creates a new comment on a Linear issue. NeedsissueIdandbody.update_document: Updates an existing document's title, content, or project association. NeedsdocumentId.create_document: Creates a new document in Linear. Needstitle.update_comment: Updates an existing comment on a Linear issue. NeedscommentIdandbody.create_label: Creates a new issue label. Needsname.
Destructive tools (2)
delete_issue: Permanently deletes an issue from Linear. NeedsissueId.delete_comment: Permanently deletes a comment from a Linear issue. NeedscommentId.
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, Cursor, Codex and ChatGPT: connect each client to your portal and use Linear there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Linear on metorial.com: the integration overview