Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Linear connector

OAuth 2.0 developer_toolsproject_management

Connect to Linear. Manage issues, projects, sprints, and development workflows

Linear connector

  1. Terminal window
    npm install @scalekit-sdk/node

    Full SDK reference: Node.js | Python

  2. Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Register your Linear credentials with Scalekit so it handles the token lifecycle. You do this once per environment.

    Dashboard setup steps

    Register your Scalekit environment with the Linear connector so Scalekit handles the authentication flow and token lifecycle for you. The connection name you create will be used to identify and invoke the connection programmatically. Then complete the configuration in your application as follows:

    1. Set up auth redirects

      • In Scalekit dashboard, go to AgentKit > Connections > Create Connection. Find Linear and click Create. Copy the redirect URI. It looks like https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback.

        Copy redirect URI from Scalekit dashboard

      • Log in to Linear and go to SettingsAPIOAuth applications.

      • Click New application, enter an application name and description, then paste the redirect URI from Scalekit into the Callback URLs field. Click Create application.

        Create OAuth application in Linear

    2. Get client credentials

      • In your Linear OAuth application, copy the Client ID and Client Secret.
    3. Add credentials in Scalekit

      • In Scalekit dashboard, go to AgentKit > Connections and open the connection you created.

      • Enter your credentials:

        Add credentials in Scalekit dashboard

      • Click Save.

  4. quickstart.ts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENV_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'linear'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Linear:', link)
    process.stdout.write('Press Enter after authorizing...')
    await new Promise(r => process.stdin.once('data', r))
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'linear_issues_list',
    toolInput: {},
    })
    console.log(result)

Connect this agent connector to let your agent:

  • Read issues — fetch issues, projects, cycles, and team details
  • Create and update issues — file new issues, update status, set priority, and assign teammates
  • Manage projects — create and update project metadata and milestones
  • Search — find issues by keyword, assignee, label, or state
Proxy API call
// Make a GraphQL request via Scalekit proxy
const result = await actions.request({
connectionName: 'linear',
identifier: 'user_123',
path: '/graphql',
method: 'POST',
body: JSON.stringify({ query: '{ viewer { id name email } }' }),
});
console.log(result);
Execute a tool
const result = await actions.executeTool({
connector: 'linear',
identifier: 'user_123',
toolName: 'linear_graphql_query',
toolInput: {
query: '{ viewer { id name email } }',
},
});
console.log(result);

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

linear_attachment_create # Create an external link attachment on a Linear issue. 4 params

Create an external link attachment on a Linear issue.

Name Type Required Description
issueId string required ID of the issue to attach the link to
title string required Attachment title
url string required URL of the attachment
subtitle string optional Subtitle or description for the attachment
linear_attachment_delete # Delete an attachment from a Linear issue. 1 param

Delete an attachment from a Linear issue.

Name Type Required Description
attachmentId string required ID of the attachment to delete
linear_attachment_update # Update the title or subtitle of an existing attachment on a Linear issue. 3 params

Update the title or subtitle of an existing attachment on a Linear issue.

Name Type Required Description
attachmentId string required ID of the attachment to update
title string required New title for the attachment
subtitle string optional New subtitle or description
linear_comment_create # Create a comment on a Linear issue. 2 params

Create a comment on a Linear issue.

Name Type Required Description
body string required Comment text
issueId string required ID of the issue to comment on
linear_comment_delete # Permanently delete a comment from a Linear issue. 1 param

Permanently delete a comment from a Linear issue.

Name Type Required Description
commentId string required ID of the comment to delete
linear_comment_get # Retrieve a single comment by its ID. 1 param

Retrieve a single comment by its ID.

Name Type Required Description
commentId string required ID of the comment to retrieve
linear_comment_update # Update the text body of an existing Linear comment. 2 params

Update the text body of an existing Linear comment.

Name Type Required Description
body string required Updated comment text
commentId string required ID of the comment to update
linear_comments_list # List all comments on a specific Linear issue with pagination support. 3 params

List all comments on a specific Linear issue with pagination support.

Name Type Required Description
issueId string required ID of the issue to list comments for
after string optional Pagination cursor for fetching the next page
first integer optional Number of comments to return
linear_cycle_create # Create a new cycle (sprint) for a Linear team. Requires a team ID, start date, and end date. 5 params

Create a new cycle (sprint) for a Linear team. Requires a team ID, start date, and end date.

Name Type Required Description
endsAt string required Cycle end date-time in ISO 8601 format
startsAt string required Cycle start date-time in ISO 8601 format
teamId string required ID of the team to create the cycle in
description string optional Optional description of the cycle
name string optional Optional custom name for the cycle
linear_cycle_get # Get a specific Linear cycle by ID, including its issues. 1 param

Get a specific Linear cycle by ID, including its issues.

Name Type Required Description
cycleId string required ID of the cycle to retrieve
linear_cycle_issues_list # List all issues in a specific Linear cycle with pagination support. 3 params

List all issues in a specific Linear cycle with pagination support.

Name Type Required Description
cycleId string required ID of the cycle to list issues for
after string optional Pagination cursor for fetching the next page
first integer optional Number of issues to return
linear_cycle_update # Update an existing cycle (sprint) in Linear. 5 params

Update an existing cycle (sprint) in Linear.

Name Type Required Description
cycleId string required ID of the cycle to update
description string optional New description for the cycle
endsAt string optional New end date-time in ISO 8601 format
name string optional New name for the cycle
startsAt string optional New start date-time in ISO 8601 format
linear_cycles_list # List cycles (sprints) for a Linear team with pagination support. 3 params

List cycles (sprints) for a Linear team with pagination support.

Name Type Required Description
teamId string required Team ID to list cycles for
after string optional Pagination cursor for fetching the next page
first integer optional Number of cycles to return
linear_graphql_query # Execute a custom GraphQL query or mutation against the Linear API. Allows running any valid GraphQL operation with variables support for advanced use cases. 2 params

Execute a custom GraphQL query or mutation against the Linear API. Allows running any valid GraphQL operation with variables support for advanced use cases.

Name Type Required Description
query string required The GraphQL query or mutation to execute
variables object optional Variables to pass to the GraphQL query
linear_issue_archive # Archive a Linear issue by ID using the issueArchive mutation. 1 param

Archive a Linear issue by ID using the issueArchive mutation.

Name Type Required Description
issueId string required ID of the issue to archive
linear_issue_create # Create a new issue in Linear using the issueCreate mutation. Requires a team ID and title at minimum. 9 params

Create a new issue in Linear using the issueCreate mutation. Requires a team ID and title at minimum.

Name Type Required Description
teamId string required ID of the team to create the issue in
title string required Title of the issue
assigneeId string optional ID of the user to assign the issue to
description string optional Description of the issue
estimate string optional Story point estimate for the issue
labelIds array optional Array of label IDs to apply to the issue
priority string optional Priority level of the issue (1-4, where 1 is urgent)
projectId string optional ID of the project to associate the issue with
stateId string optional ID of the workflow state to set
linear_issue_delete # Permanently delete a Linear issue by ID using the issueDelete mutation. 1 param

Permanently delete a Linear issue by ID using the issueDelete mutation.

Name Type Required Description
issueId string required ID of the issue to delete
linear_issue_get # Get a single Linear issue by ID, including its state, assignee, team, labels, and project details. 1 param

Get a single Linear issue by ID, including its state, assignee, team, labels, and project details.

Name Type Required Description
issueId string required ID of the issue to retrieve
linear_issue_relation_create # Create a relation between two issues. Valid types: blocks, duplicate, related, similar. 3 params

Create a relation between two issues. Valid types: blocks, duplicate, related, similar.

Name Type Required Description
issueId string required ID of the issue
relatedIssueId string required ID of the related issue
type string required Relation type: blocks, duplicate, related, or similar
linear_issue_relation_delete # Delete an issue relation by its ID. 1 param

Delete an issue relation by its ID.

Name Type Required Description
relationId string required ID of the issue relation to delete
linear_issue_relations_list # List all relations for a specific issue (blocks, duplicates, related, similar). 1 param

List all relations for a specific issue (blocks, duplicates, related, similar).

Name Type Required Description
issueId string required ID of the issue to get relations for
linear_issue_unarchive # Restore an archived issue back to active status. 1 param

Restore an archived issue back to active status.

Name Type Required Description
issueId string required ID of the archived issue to restore
linear_issue_update # Update an existing issue in Linear. You can update title, description, priority, state, and assignee. 6 params

Update an existing issue in Linear. You can update title, description, priority, state, and assignee.

Name Type Required Description
issueId string required ID of the issue to update
assigneeId string optional ID of the user to assign the issue to
description string optional New description for the issue
priority string optional Priority level of the issue (1-4, where 1 is urgent)
stateId string optional ID of the workflow state to set
title string optional New title for the issue
linear_issues_list # List issues in Linear using the issues query with simple filtering and pagination support. 8 params

List issues in Linear using the issues query with simple filtering and pagination support.

Name Type Required Description
after string optional Cursor for pagination (returns issues after this cursor)
assignee string optional Filter by assignee email (e.g., 'user@example.com')
before string optional Cursor for pagination (returns issues before this cursor)
first integer optional Number of issues to return (pagination)
labels array optional Filter by label names (array of strings)
priority string optional Filter by priority level (1=Urgent, 2=High, 3=Medium, 4=Low)
project string optional Filter by project name (e.g., 'Q4 Goals')
state string optional Filter by state name (e.g., 'In Progress', 'Done')
linear_label_create # Create a new issue label in a Linear team. 4 params

Create a new issue label in a Linear team.

Name Type Required Description
name string required Label name
teamId string required Team ID to create the label in
color string optional Label color as hex code
description string optional Label description
linear_labels_list # List issue labels in the Linear workspace, optionally filtered by team. 2 params

List issue labels in the Linear workspace, optionally filtered by team.

Name Type Required Description
first integer optional Number of labels to return
teamId string optional Filter labels by team ID
linear_project_create # Create a new project in Linear with optional description, state, and date fields. 6 params

Create a new project in Linear with optional description, state, and date fields.

Name Type Required Description
name string required Name of the project
teamIds array required Array of team IDs to associate with the project
description string optional Description of the project
startDate string optional Start date in YYYY-MM-DD format
state string optional Project state: planned, started, paused, completed, cancelled
targetDate string optional Target date in YYYY-MM-DD format
linear_project_get # Get a single Linear project by ID, including teams, members, and associated issues. 1 param

Get a single Linear project by ID, including teams, members, and associated issues.

Name Type Required Description
projectId string required ID of the project to retrieve
linear_project_milestone_create # Create a new milestone for a project. 4 params

Create a new milestone for a project.

Name Type Required Description
name string required Name of the milestone
projectId string required ID of the project to add the milestone to
description string optional Description of the milestone
targetDate string optional Target completion date (YYYY-MM-DD)
linear_project_milestone_delete # Delete a project milestone by its ID. 1 param

Delete a project milestone by its ID.

Name Type Required Description
milestoneId string required ID of the milestone to delete
linear_project_milestone_update # Update an existing project milestone. 4 params

Update an existing project milestone.

Name Type Required Description
milestoneId string required ID of the milestone to update
description string optional New description
name string optional New name for the milestone
targetDate string optional New target date (YYYY-MM-DD)
linear_project_milestones_list # List milestones for a specific project. 2 params

List milestones for a specific project.

Name Type Required Description
projectId string required ID of the project to list milestones for
first integer optional Number of milestones to return
linear_project_update # Update an existing Linear project's name, description, state, or dates. 6 params

Update an existing Linear project's name, description, state, or dates.

Name Type Required Description
projectId string required ID of the project to update
description string optional Updated description of the project
name string optional Updated name of the project
startDate string optional Updated start date in YYYY-MM-DD format
state string optional Updated project state: planned, started, paused, completed, cancelled
targetDate string optional Updated target date in YYYY-MM-DD format
linear_projects_list # List all projects in the Linear workspace with pagination support. 2 params

List all projects in the Linear workspace with pagination support.

Name Type Required Description
after string optional Pagination cursor for fetching the next page
first integer optional Number of projects to return
linear_roadmaps_list # List all roadmaps in the Linear workspace with pagination support. 2 params

List all roadmaps in the Linear workspace with pagination support.

Name Type Required Description
after string optional Pagination cursor for fetching the next page
first integer optional Number of roadmaps to return
linear_team_create # Create a new team in the Linear workspace. 5 params

Create a new team in the Linear workspace.

Name Type Required Description
name string required Name of the team
color string optional Team color as hex code
description string optional Description of the team
key string optional Short identifier key for the team (e.g. PLAT)
private boolean optional Whether the team is private
linear_team_get # Get a single Linear team by ID, including its members and workflow states. 1 param

Get a single Linear team by ID, including its members and workflow states.

Name Type Required Description
teamId string required ID of the team to retrieve
linear_team_update # Update an existing team's name, description, or settings. 4 params

Update an existing team's name, description, or settings.

Name Type Required Description
teamId string required ID of the team to update
color string optional New team color as hex code
description string optional New description for the team
name string optional New name for the team
linear_teams_list # List all teams in the Linear workspace with their members and pagination support. 2 params

List all teams in the Linear workspace with their members and pagination support.

Name Type Required Description
after string optional Pagination cursor for fetching the next page
first integer optional Number of teams to return
linear_test_list # List issues in Linear using the issues query with simple filtering and pagination support. 8 params

List issues in Linear using the issues query with simple filtering and pagination support.

Name Type Required Description
after string optional Cursor for pagination (returns issues after this cursor)
assignee string optional Filter by assignee email (e.g., 'user@example.com')
before string optional Cursor for pagination (returns issues before this cursor)
first integer optional Number of issues to return (pagination)
labels array optional Filter by label names (array of strings)
priority string optional Filter by priority level (1=Urgent, 2=High, 3=Medium, 4=Low)
project string optional Filter by project name (e.g., 'Q4 Goals')
state string optional Filter by state name (e.g., 'In Progress', 'Done')
linear_user_get # Retrieve a single Linear user by their ID. 1 param

Retrieve a single Linear user by their ID.

Name Type Required Description
userId string required ID of the user to retrieve
linear_users_list # List all users in the Linear workspace with pagination support. 2 params

List all users in the Linear workspace with pagination support.

Name Type Required Description
after string optional Pagination cursor for fetching the next page
first integer optional Number of users to return
linear_viewer_get # Get the currently authenticated Linear user (viewer), including their teams. 0 params

Get the currently authenticated Linear user (viewer), including their teams.

linear_webhook_create # Create a new webhook for Linear events. Specify the URL and the resource types to subscribe to. 6 params

Create a new webhook for Linear events. Specify the URL and the resource types to subscribe to.

Name Type Required Description
resourceTypes array required List of resource types to subscribe to (e.g. Issue, Comment, Project)
url string required The URL to receive webhook payloads
enabled boolean optional Whether the webhook is active (default: true)
label string optional Human-readable label for the webhook
secret string optional Secret token to sign the webhook payload
teamId string optional Restrict webhook to a specific team ID
linear_webhook_delete # Delete a webhook by its ID. 1 param

Delete a webhook by its ID.

Name Type Required Description
webhookId string required ID of the webhook to delete
linear_webhook_get # Retrieve a single webhook by its ID. 1 param

Retrieve a single webhook by its ID.

Name Type Required Description
webhookId string required ID of the webhook
linear_webhook_update # Update an existing webhook's URL, resource types, label, or enabled status. 6 params

Update an existing webhook's URL, resource types, label, or enabled status.

Name Type Required Description
webhookId string required ID of the webhook to update
enabled boolean optional Enable or disable the webhook
label string optional New label for the webhook
resourceTypes array optional Updated list of resource types to subscribe to
secret string optional New secret token for signing payloads
url string optional New URL to receive webhook payloads
linear_webhooks_list # List all webhooks configured for the current workspace. 2 params

List all webhooks configured for the current workspace.

Name Type Required Description
after string optional Pagination cursor
first integer optional Number of webhooks to return
linear_workflow_state_create # Create a new workflow state for a Linear team. Valid types: backlog, unstarted, started, completed, canceled. 6 params

Create a new workflow state for a Linear team. Valid types: backlog, unstarted, started, completed, canceled.

Name Type Required Description
color string required Color of the state as a hex code
name string required Name of the workflow state
teamId string required ID of the team to create the state in
type string required State type: backlog, unstarted, started, completed, or canceled
description string optional Optional description of the state
position number optional Position of the state in the workflow
linear_workflow_state_get # Retrieve a single workflow state by its ID. 1 param

Retrieve a single workflow state by its ID.

Name Type Required Description
stateId string required ID of the workflow state
linear_workflow_state_update # Update an existing workflow state in Linear. 4 params

Update an existing workflow state in Linear.

Name Type Required Description
stateId string required ID of the workflow state to update
color string optional New color as hex code
description string optional New description for the state
name string optional New name for the state
linear_workflow_states_list # List workflow states in the Linear workspace, optionally filtered by team. 2 params

List workflow states in the Linear workspace, optionally filtered by team.

Name Type Required Description
first integer optional Number of workflow states to return
teamId string optional Filter by team ID