Linear in the Terminal — Real-Time Kanban Drag-and-Drop TUI, CLI & 61-Tool MCP Server
Triage issues, receive instant WebSocket updates across 16 streams at 0.0% idle CPU, manually reorder & drag Kanban cards, view live SLA badges, search offline (SQLite FTS5 BM25), server-side, or semantically with natural-language filters, batch-create issues atomically, or wire 61 safe MCP tools (stdio & Streamable HTTP POST /mcp) into Claude Code, Cursor, and Codex.
$npm i -g @bitefoundry/linear
Key Capabilities
Real-Time 60fps 3-Pane List & Kanban TUI (16 WebSocket Streams)
Toggle instantaneously between 1 List and 2 Kanban Board inside a borderless Linear Indigo (#5E6AD2) 3-pane workspace. Live graphql-transport-ws subscriptions stream 16 entity types directly into tokio::select! at 0.0% idle CPU with manual ordering, DnD, SLA badges, Triage, Inbox, Projects, Documents, Members workload (g u), and 16 themes.
61 Safe MCP Tools (31 Read + 30 Write) over stdio & HTTP /mcp
Built on bitefoundry-mcp & bitefoundry-serve v0.10.0 with --read-only policy, preflight expected_updated_at conflict checks on issue/document/project writes, new update_project & edit_comment tools, and literal confirm: true on all 6 destructive tools.
Offline SQLite WAL + Trigram FTS5 BM25 + Server & Semantic Search
Cycle [Local] (SQLite WAL + Trigram FTS5 BM25 with 1–2 char Korean/CJK LIKE fallback) → [Server] → [Semantic] with Tab in the search bar, plus one-shot natural-language filtering via issueFilterSuggestion.
Hardened Local HTTP API (:8794) & BiteFoundry Kit v0.10.0
11.2 MiB native binary with verified OAuth 2.0 PKCE / Personal API key isolation, --*-file/stdin body input on all 8 write commands, DNS-rebinding & CSRF-protected loopback HTTP (:8794 + POST /mcp), and 330 passing Rust tests.
Quickstart & MCP Agent Setup
linear # Launch 60fps real-time List/Kanban TUI (16 WS streams)
linear login --oauth # One-click browser sign-in (OAuth 2.0 PKCE, OS keyring)
linear issues reorder ENG-42 --before ENG-17 # Manual issue & sub-issue ordering (also Alt+Up/Down & DnD)
linear search "payment retry" --semantic # Ranked semantic search (or --filter-prompt for NL filter)
linear issues from-url https://github.com/... # Reverse-lookup Linear issues linked to a PR/MR URL
linear issues batch-create --from-json plan.json # Atomic 1–50 issue batch create via issueBatchCreate
linear members # Cached open workload by member (TUI: g u)
linear mcp --read-only # Start 31 read-only MCP tools (or 61 full / HTTP POST /mcp)
{
"mcpServers": {
"linear": {
"command": "linear",
"args": [
"mcp"
]
}
}
}
Representative MCP tools (io.github.BiteFoundry/linear): whoami, list_teams, list_issues, get_issue, search_issues, semantic_search, suggest_issue_filter, create_issue, create_issues, update_issue, update_project, add_comment, edit_comment, create_document, update_document.
BiteFoundry Linear vs. Traditional Desktop / Web Client
| Dimension | BiteFoundry Linear (Rust) | Electron / Browser Client |
|---|---|---|
| Runtime & idle CPU | 11.2 MiB native Rust binary, 16 live WS streams, 0.0% idle CPU | Heavy Electron/Chromium client (~400–900 MB RAM) |
| Kanban & keyboard speed | 1 List ↔ 2 Board toggle + manual Alt+Up/Down & mouse DnD + Ctrl+K | Mouse/web-first UI with browser overhead |
| Offline, server & semantic search | SQLite FTS5 BM25 (CJK) + Server + ranked Semantic search + NL filters | Requires live network round-trips |
| AI Agent integration | 61 typed stdio & HTTP /mcp tools (--read-only + confirm: true) + --json CLI | Separate Node/Docker MCP wrappers without local cache |
| Credential security | OS keyring + raw lin_api_ / OAuth PKCE + zero cloud relay | Browser profile cookies or external hosted connectors |
Frequently Asked Questions
How quickly can I connect my Linear workspace inside the terminal?
Run `linear` and press `Enter` on the sign-in screen to approve access in your browser (OAuth 2.0 PKCE, no app registration), or paste a Linear Personal API key (`lin_api_...`) into the masked field (press `Ctrl+O` to open `linear.app/settings/account/security`). From a shell, `linear login --oauth` and `linear login --api-key lin_api_...` do the same. Your credentials are verified in isolation against Linear's `viewer` query before saving in the OS keyring (`bitefoundry-linear`).
How does authentication work with Linear Personal API keys vs. OAuth 2.0?
Run `linear login --api-key lin_api_...` (or set `LINEAR_API_KEY` in CI/agents) to authenticate using Linear's required raw `Authorization: lin_api_...` header stored in your OS keyring (`bitefoundry-linear`). `linear login --oauth` signs in through your browser with OAuth 2.0 PKCE (sent as `Authorization: Bearer`); access tokens last 24 hours and are renewed automatically with the stored refresh token. External token brokers (`LINEAR_ACCESS_TOKEN`, `LINEAR_TOKEN_FILE`, `LINEAR_TOKEN_REFRESH_CMD`) are also supported.
What 61 MCP tools does `linear mcp` expose, and how are writes guarded?
`linear mcp` (and `linear serve` at `POST /mcp`) provides 31 read-only tools and 30 write tools (including `update_project`, `edit_comment`, `create_issues` atomic 1–50 batch, `create_document`, `update_document`, and preflight `expected_updated_at` conflict checks). Pass `--read-only` to hide and block all 30 write tools; the 6 destructive tools (`archive_issue`, `delete_issue`, `unlink_issues`, `archive_notification`, `archive_all_notifications`, `delete_milestone`) always require literal JSON `"confirm": true`.
Does the terminal UI support native mouse drag-and-drop on Kanban boards?
Yes. Powered by `bitefoundry-tui-mouse`, you can drag Kanban cards directly across workflow state columns (`Backlog`, `Todo`, `In Progress`, `In Review`, `Done`), reorder cards manually in place (or with `Alt+Up`/`Alt+Down`), or drag any issue onto `Active Cycle`, `Projects`, `Triage`, or `My Issues` in the Left Rail with 0ms optimistic updates and automatic rollback if the GraphQL mutation fails.