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
Configure Redirect URL
Section titled “Configure Redirect URL”-
In Scalekit dashboard, go to Agent Auth → Create Connection.
-
Find Linear from the list of providers and click Create.
-
Click Use your own credentials and copy the redirect URI — it will look like
https://{your-env-url}/sso/v1/oauth/{connection_id}/callback. -
Navigate to Linear’s API Settings and select OAuth applications.
-
Click Create new application and enter a name and description.
-
Under Callback URLs, paste the redirect URI copied from Scalekit, then click Create.
Linear provides your Client ID and Client Secret on the application settings page.
Add Credentials
Section titled “Add Credentials”-
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)
-
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’) |