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.

SettingValue
Catalog IDlinear
Endpointhttps://mcp.linear.app/mcp
TransportStreamable HTTP (Remote)
AuthenticationOAuth 2.1 (browser or --manual)
python
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.

Diagram

👤 User

🤖 PraisonAI Agent

🔐 OAuth 2.1 PKCE

📋 Linear Remote MCP
mcp.linear.app/mcp

✅ Issues, Cycles & Projects


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.

Diagram
PraisonAI AgentLinear MCP Servermcp-auth.jsonLinear OAuth 2.1praisonai CLIUserPraisonAI AgentLinear MCP Servermcp-auth.jsonLinear OAuth 2.1praisonai CLIUserpraisonai connectors add linear –authDiscover metadata and register PKCE clientAuthorize workspace in browserSave OAuth token (0600)Query current sprint issuesLoad cached tokenCall Linear MCP toolsMatching issues and cycle statusPrioritized 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
    pip install "praisonai[mcp]"
  3. Add and authenticate Linear

    CLI (Interactive OAuth)

    bash
    praisonai connectors add linear --auth

    Headless / SSH (–manual)

    bash
    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.

    PraisonAI Dashboard

    Enable catalog connectors in your PraisonAIUI config.yaml:

    yaml
    mcp:
      enabled: true
      allow:
        catalog: true

    Run praisonai dashboard, open Connectors / MCP, and click Connect on Linear.

  4. Verify and inspect tools
    bash
    praisonai mcp sync linear

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

  5. Run your agent
    python
    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
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

SymptomCauseFix
401 Unauthorized on praisonai connectors test linearconnectors test does not attach OAuth tokensVerify with praisonai mcp sync linear instead
Token expired or workspace switchedStale credentials in ~/.praisonai/mcp-auth.jsonRun praisonai connectors logout linear --yes then praisonai connectors auth linear
Callback never completes on remote serverLoopback 127.0.0.1 unreachable over SSHRe-run with praisonai connectors auth linear --manual

Best Practices

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.

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.

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