> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Linear Connector

> Connect PraisonAI agents to Linear for issue triage, sprint tracking, and project updates with built-in OAuth 2.1

Connect your PraisonAI agents to Linear to search issues, plan sprints, inspect cycles, and draft status updates using Linear's official remote MCP server.

| Setting | Value |
| - | - |
| **Catalog ID** | `linear` |
| **Endpoint** | `https://mcp.linear.app/mcp` |
| **Transport** | Streamable HTTP (Remote) |
| **Authentication** | OAuth 2.1 (browser or `--manual`) |

> [!TIP]
>
> Prefer a local Python wrapper with a `LINEAR_API_KEY`? See the [Linear Tool](https://praison.ai/docs/tools/external/linear.md).

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, MCP

agent = Agent(
    name="Sprint Planner",
    instructions="Triage Linear issues and summarize cycle progress concisely.",
    tools=MCP(
        "https://mcp.linear.app/mcp",
        oauth=True,
        server_name="linear",
    ),
)

agent.start("List my highest-priority Linear issues in the current cycle")
```

The user asks for current sprint priorities; PraisonAI signs into Linear via OAuth 2.1, fetches matching issues, and produces a clear action list.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    User["👤 User"] --> Agent["🤖 PraisonAI Agent"]
    Agent --> Auth["🔐 OAuth 2.1 PKCE"]
    Auth --> Linear["📋 Linear Remote MCP<br/>mcp.linear.app/mcp"]
    Linear --> Result["✅ Issues, Cycles & Projects"]

    classDef input fill:#6366F1,stroke:#7C90A0,color:#fff
    classDef agent fill:#8B0000,stroke:#7C90A0,color:#fff
    classDef auth fill:#F59E0B,stroke:#7C90A0,color:#fff
    classDef ok fill:#10B981,stroke:#7C90A0,color:#fff

    class User input
    class Agent agent
    class Auth auth
    class Linear,Result ok
```

***

## How It Works

Linear's hosted MCP server supports automatic OAuth 2.1 discovery and dynamic client registration. Sign in once and PraisonAI caches and refreshes your token automatically in `~/.praisonai/mcp-auth.json`.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
sequenceDiagram
    participant User
    participant CLI as praisonai CLI
    participant LinAuth as Linear OAuth 2.1
    participant Store as mcp-auth.json
    participant LinMCP as Linear MCP Server
    participant Agent as PraisonAI Agent

    User->>CLI: praisonai connectors add linear --auth
    CLI->>LinAuth: Discover metadata and register PKCE client
    LinAuth-->>User: Authorize workspace in browser
    LinAuth-->>Store: Save OAuth token (0600)
    User->>Agent: Query current sprint issues
    Agent->>Store: Load cached token
    Agent->>LinMCP: Call Linear MCP tools
    LinMCP-->>Agent: Matching issues and cycle status
    Agent-->>User: Prioritized sprint summary
```

***

## Step-by-Step Setup

**1. Prerequisites**

* A Linear account with access to the workspace and teams you want to query

**2. Install PraisonAI with MCP support**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
pip install "praisonai[mcp]"
```

**3. Add and authenticate Linear**

> [tab] CLI (Interactive OAuth)
>
> ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
> praisonai connectors add linear --auth
> ```

> [tab] Headless / SSH (--manual)
>
> ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
> praisonai connectors add linear --auth --manual
> ```
>
> Open the printed authorization URL on any device and paste the returned code or callback URL into your terminal.

> [tab] PraisonAI Dashboard
>
> Enable catalog connectors in your PraisonAIUI `config.yaml`:
>
> ```yaml theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
> mcp:
>   enabled: true
>   allow:
>     catalog: true
> ```
>
> Run `praisonai dashboard`, open **Connectors / MCP**, and click **Connect** on **Linear**.

**4. Verify and inspect tools**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai mcp sync linear
```

This authenticates with your saved OAuth token and prints every available Linear tool name.

**5. Run your agent**

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, MCP

agent = Agent(
    name="Linear Triage",
    instructions="Summarize blockers and overdue tasks clearly.",
    tools=MCP("https://mcp.linear.app/mcp", oauth=True, server_name="linear"),
)

agent.start("Show all urgent or high-priority unassigned issues")
```

***

## Scope Tools for Safety

Keep triage agents read-only with `--allow` or require human confirmation before creating or modifying issues:

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, MCP

agent = Agent(
    name="Linear Reporter",
    instructions="Generate weekly progress reports without modifying tickets.",
    tools=MCP(
        "https://mcp.linear.app/mcp",
        oauth=True,
        server_name="linear",
        allowed_tools=["list_issues", "get_issue", "list_projects"],
        approval="always",
    ),
)
```

***

## Common Workflows

* **Daily Standup Prep:** `"Summarize every Linear issue I moved to In Progress or Done in the last 24 hours."`
* **Bug Triage:** `"Find new bugs filed this week without a priority and suggest severity levels."`

***

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| `401 Unauthorized` on `praisonai connectors test linear` | `connectors test` does not attach OAuth tokens | Verify with `praisonai mcp sync linear` instead |
| Token expired or workspace switched | Stale credentials in `~/.praisonai/mcp-auth.json` | Run `praisonai connectors logout linear --yes` then `praisonai connectors auth linear` |
| Callback never completes on remote server | Loopback `127.0.0.1` unreachable over SSH | Re-run with `praisonai connectors auth linear --manual` |

***

## Best Practices

> [accordion] Start read-only before granting issue-write tools
>
> Run `praisonai mcp sync linear` to see exact tool names and restrict reporting agents to read tools via `--allow`.

> [accordion] Name teams explicitly in prompts
>
> If your Linear workspace has multiple teams, mention the team name or key in `instructions` so the agent filters accurately on the first call.

> [accordion] Use approval='always' for bulk updates
>
> Require approval on `MCP(..., approval="always")` whenever an agent can change priorities, assignees, or states across multiple tickets.

***

## Related

> [card] [List of Connectors](https://praison.ai/docs/features/connectors-list.md)
>
> Browse all popular connectors and step-by-step guides

> [card] [Remote MCP Connectors](https://praison.ai/docs/features/connectors.md)
>
> Full CLI reference and Dashboard integration

> [card] [Linear Tool (Python)](https://praison.ai/docs/tools/external/linear.md)
>
> Local Python wrapper using LINEAR\_API\_KEY

> [card] [MCP OAuth Authentication](https://praison.ai/docs/mcp/mcp-oauth.md)
>
> OAuth 2.1 PKCE flow and token storage details


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.