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) |
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.
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 okHow 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.
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 summaryStep-by-Step Setup
- Prerequisites
- A Linear account with access to the workspace and teams you want to query
- Install PraisonAI with MCP support
bash pip install "praisonai[mcp]" - Add and authenticate Linear
CLI (Interactive OAuth)
bash praisonai connectors add linear --authHeadless / SSH (–manual)
bash praisonai connectors add linear --auth --manualOpen 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: trueRun
praisonai dashboard, open Connectors / MCP, and click Connect on Linear. - Verify and inspect tools
bash praisonai mcp sync linearThis authenticates with your saved OAuth token and prints every available Linear tool name.
- 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:
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
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.