Linear
Connect to Linear. Manage issues, projects, sprints, and development workflows
Connect to Linear. Manage issues, projects, sprints, and development workflows
Supports authentication: OAuth 2.0
Set up the agent connector
Section titled “Set up the agent connector”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:
-
Set up auth redirects
-
In Scalekit dashboard, go to Agent Auth → Create Connection. Find Linear and click Create. Copy the redirect URI. It looks like
https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback. -
Log in to Linear and go to Settings → API → OAuth applications.
-
Click New application, fill in the application name and description, then paste the redirect URI from Scalekit into the Callback URLs field.
-
Click Create application.
-
-
Get client credentials
- In your Linear OAuth application settings, copy the Client ID and Client Secret.
-
Add credentials in Scalekit
-
In Scalekit dashboard, go to Agent Auth → Connections and open the connection you created.
-
Enter your credentials:
- Client ID (from above)
- Client Secret (from above)
- Permissions (scopes — see Linear OAuth scopes reference)
-
Click Save.
-
Connect a user’s Linear account and make API calls on their behalf — Scalekit handles OAuth and token management automatically.
import scalekit.client, os, jsonfrom dotenv import load_dotenvload_dotenv()
connection_name = "linear" # get your connection name from connection configurationsidentifier = "user_123" # your unique user identifier
# Get your credentials from app.scalekit.com → Developers → Settings → API Credentialsscalekit_client = scalekit.client.ScalekitClient( client_id=os.getenv("SCALEKIT_CLIENT_ID"), client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"), env_url=os.getenv("SCALEKIT_ENV_URL"),)actions = scalekit_client.actions
# Authenticate the userlink_response = actions.get_authorization_link( connection_name=connection_name, identifier=identifier)# present this link to your user for authorization, or click it yourself for testingprint("🔗 Authorize Linear:", link_response.link)input("Press Enter after authorizing...")
# Make a GraphQL request via Scalekit proxyresult = actions.request( connection_name=connection_name, identifier=identifier, path="/graphql", method="POST", body=json.dumps({"query": "{ viewer { id name email } }"}))print(result)Tool list
Section titled “Tool list”linear_graphql_query
Section titled “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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The GraphQL query or mutation to execute |
variables | object | No | Variables to pass to the GraphQL query |
linear_issue_create
Section titled “linear_issue_create”Create a new issue in Linear using the issueCreate mutation. Requires a team ID and title at minimum.
| Name | Type | Required | Description |
|---|---|---|---|
assigneeId | string | No | ID of the user to assign the issue to |
description | string | No | Description of the issue |
estimate | string | No | Story point estimate for the issue |
labelIds | array<string> | No | Array of label IDs to apply to the issue |
priority | string | No | Priority level of the issue (1-4, where 1 is urgent) |
projectId | string | No | ID of the project to associate the issue with |
stateId | string | No | ID of the workflow state to set |
teamId | string | Yes | ID of the team to create the issue in |
title | string | Yes | Title of the issue |
linear_issue_update
Section titled “linear_issue_update”Update an existing issue in Linear. You can update title, description, priority, state, and assignee.
| Name | Type | Required | Description |
|---|---|---|---|
assigneeId | string | No | ID of the user to assign the issue to |
description | string | No | New description for the issue |
issueId | string | Yes | ID of the issue to update |
priority | string | No | Priority level of the issue (1-4, where 1 is urgent) |
stateId | string | No | ID of the workflow state to set |
title | string | No | New title for the issue |
linear_issues_list
Section titled “linear_issues_list”List issues in Linear using the issues query with simple filtering and pagination support.
| Name | Type | Required | Description |
|---|---|---|---|
after | string | No | Cursor for pagination (returns issues after this cursor) |
assignee | string | No | Filter by assignee email (e.g., ‘user@example.com’) |
before | string | No | Cursor for pagination (returns issues before this cursor) |
first | integer | No | Number of issues to return (pagination) |
labels | array<string> | No | Filter by label names (array of strings) |
priority | string | No | Filter by priority level (1=Urgent, 2=High, 3=Medium, 4=Low) |
project | string | No | Filter by project name (e.g., ‘Q4 Goals’) |
state | string | No | Filter by state name (e.g., ‘In Progress’, ‘Done’) |