Skip to main content
Glama

linear-strict

Unofficial and opinionated. This is an independent project, not affiliated with or endorsed by Linear. It enforces one team's way of keeping tickets current, and it refuses writes that other Linear servers would make. For Linear's own MCP server, see linear.app/docs/mcp.

An MCP server for Linear for teams where agents keep tickets up to date. It reads a ticket whole and treats the description as the ticket's current state. The rules are enforced in the server, so a prompt that goes unread or a client hook that stops matching can't switch them off.

It has one runtime dependency, the MCP SDK. It began as a fork of tacticlaunch/mcp-linear (MIT), whose OAuth login it keeps.

The problem it addresses

Linear keeps full history, yet agents working from it drift:

  • State ends up in comments. A comment answers the ticket's open question and the description still says it is open. Nothing marks which claim is current.

  • Reads are lossy without saying so. Listings cut descriptions short, comment APIs default to newest first, and summaries read like the whole ticket.

  • Tickets change after they are read. An agent works from a snapshot, acceptance criteria are added later, and the work ships without them.

  • Rules in client hooks go dark when a server is renamed and the matcher no longer fires.

Related MCP server: Coordination MCP

How it works

  • Description is state, comments are the log. The description has named sections: Observed, Cause, Fix, Done when, Open questions. It changes only through validated section patches. An Observed line must read YYYY-MM-DD · source · result (a time after the date is fine), and Done when lines must be checklist items.

  • A reconciled marker is the description's HEAD. It records the last comment the description accounts for, when that was checked, and the hash of the description it was checked against. It lives in one attachment on the ticket, titled "linear-strict: description reconciled through …", so the description stays clean. Every read reports comments after it, comments edited since the check, and edits to the description made outside this server, as drift.

  • Repair on read. Not everyone on a team will use this server. get_issue reports format findings and drift on tickets written from any client, and tells the agent to fold them into the description.

  • Whole reads. Every comment, oldest first, across all pages. list_issues and the workspace lists (teams, cycles, projects, initiatives) walk every page too, so an agent never holds a cursor it can stop following. Anything not fetched is listed in omitted; a gap is never silent.

  • Typed comments. evidence, correction, ask, answer and closed_by. A correction must carry the description patch that makes it true. An answer flips its question row. closed_by also sets the Linear relation.

  • Writes name what they were written against. get_issue returns a hash of the description, description_sha. A patch passes it as base and is refused, with what changed, if the description moved since that read. Linear has no conditional update, so this is how a patch shows it was built from the current text.

  • Claim, then a Done gate. claim records the description as it stands. Moving to a completed state needs a Done when section with every item ticked and cited (- [x] item · <SHA, PR, file:line, link, CI run, Observed 2, or a command and its result>), any cited PR that is linked to the ticket merged, and your claim, and is refused with a diff if the description changed since then. Priority or label changes don't count. Dropping an unticked item needs a reason and a yes from the person at the client, or from a model judge in unattended sessions.

  • Shipped-state facts. A ticket marked Done or Merged with no linked pull request, or with PRs merged only into a non-main branch, gets a finding. The facts come from Linear's GitHub attachment metadata.

  • A release-note label and line on every ticket. Where the workspace has the labels release-note and release-note-none, create_issue needs release_note (yes, none, or selfhost where release-note-selfhost exists) and records it as one of them, and get_issue flags a ticket that carries none of them. The agents' own team defaults to none. Whoever writes the ticket decides once whether a visitor will notice it, the way Kubernetes' release-note-none works, instead of a model ranking every shipped ticket at release time. set_fields changes it with release_note. What the note says is the ticket's ## Release note section, one line written when the work ships: <Added|Changed|Fixed|Removed|Security> · <Alpha|Gap Map|AI Potluck|Self-host> · <sentence> · flag: <key|none>, or NONE, which moves the ticket to release-note-none in the same write. Moving a release-note or release-note-selfhost ticket to Merged, Verify or a completed state without a line that parses returns a release_note_missing warning; with LINEAR_STRICT_RELEASE_NOTE_GATE=block, set_status refuses the move.

  • A hands-off label. A ticket labelled no-agents (configurable) is people-only: every write through this server is refused, and reads still work.

  • Authorship. An agent (app) token writes as the agent. A personal key writes comments headed 🤖 <agent> via <person>. Each comment on a read is marked agent or person, with the basis for that call.

  • Linear's agent best practices warn that "Comments may not be reliable to read from, as they are editable and may have changed since your agent’s last run." Their answer, Agent Activities, covers agents running in Linear's Agent Sessions. Here, drift lists comments edited after the description accounted for them.

  • Linear's agent team found it "more effective to encode constraints into the design of Linear Agent’s tools than to spell them out in a prompt", which is the approach this server takes. claim follows their delegation model: a person stays the assignee, accountable for the result, and the agent is the delegate.

  • Linear keeps version history and text attribution for documents. description_history reads the same snapshots for an issue's description.

  • OpenAI's Symphony keeps an agent's progress in one persistent comment per ticket and tells the agent to leave Backlog tickets alone. This server keeps that state in the description, which Linear versions and every client shows first, and enforces the hands-off label in the server rather than in the prompt.

  • Cyrus has each sub-issue's agent hand back verification commands for the parent to run, and openclaw-linear-plugin has a separate auditor so the worker "cannot self-certify". The Done gate here asks for cited evidence but still lets the agent that did the work supply it.

  • Staleness in the wild: herdr-factory#97 shipped work against a ticket snapshot that lacked acceptance criteria added later, trac-mcp#57 had an agent stop trusting an MCP server after silent data loss, and beads#3708 and catalyst-otel#68 had Linear mirrors go stale without saying so.

Install

Quickstart (Claude Code)

  1. Get a Linear credential. A personal API key (Linear → Settings → Security & access → Personal API keys) writes as you. An agent (app) token, an OAuth token for a Linear app with actor=app starting with lin_oauth_, writes under the agent's own identity and can be set as a ticket's delegate.

  2. Add the server and the sign-off hooks:

    npm install -g https://github.com/justinstimatze/linear-strict/releases/download/v0.2.0/linear-strict-0.2.0.tgz
    claude mcp add linear-strict -e LINEAR_API_TOKEN=<token> -- linear-strict
    linear-strict install
  3. Reconnect with /mcp, then ask the agent to read a ticket.

You need Node 22 or later. Each GitHub release carries the built package; it is not on npm. To upgrade, npm install -g the newer release's .tgz, then run linear-strict install again and reconnect.

To work on it, run it from a checkout instead:

git clone https://github.com/justinstimatze/linear-strict.git
cd linear-strict && npm ci && npm run build
claude mcp add linear-strict -e LINEAR_API_TOKEN=<token> -- node "$PWD/dist/index.js"
node dist/index.js install

After a git pull, run npm run build again and reconnect the server.

Pin the version, and give the server its own name, linear-strict. Tool names such as get_issue also exist on Linear's official server, so the server name is what tells an agent and any hook matcher which rules apply. To sign in through the browser instead of pasting a token, see OAuth login.

The two hook installers

  • linear-strict install adds the sign-off hooks to ~/.claude/settings.json, once per machine. install --status says whether they are installed and whether they can still run; install --uninstall removes them and nothing else. Installed through npx, the hooks run the same pinned version through npx, since npm prunes the cache npx runs from. After upgrading, run install again so the hooks match the server; until then the server asks through the form.

  • examples/claude-code-hooks/install.sh is optional and per project: it refuses ticket writes through other Linear servers and runs a project's own Linear checks on strict writes (Blocking writes through other Linear servers). Its hooks run its scripts by path, so run it from a checkout or the global install above, not through npx.

The two write different entries and can both be installed.

Other clients

Claude Desktop, in claude_desktop_config.json, after the global install above:

{
  "mcpServers": {
    "linear-strict": {
      "command": "linear-strict",
      "env": { "LINEAR_API_TOKEN": "<token>" }
    }
  }
}

Everything except sign-off works the same in any MCP client. Sign-off depends on what the client offers:

Client

How a descope is approved

Claude Code with linear-strict install

AskUserQuestion, with the whole change in its preview box

Claude Code without the hooks

An elicitation form, with rows of about 100 characters

Other clients that support MCP elicitation

That client's elicitation form

Clients without elicitation, Claude Desktop included as far as its docs say

Refused; a person makes the edit in Linear, or run with LINEAR_STRICT_SIGN_OFF=judge

Hooks are a Claude Code feature, so no other client gets the preview route.

Sign-off

Dropping or rewording an unticked Done when item removes a check that has not passed, so someone other than the agent approves it. LINEAR_STRICT_SIGN_OFF picks who:

  • person (the default): the person at the client. In Claude Code with the sign-off hooks installed, set_state hands the agent an AskUserQuestion to put to them, and the change is shown in full in its preview box. A hook refuses the question if the agent changes a word of it, another hook records the answer, and the retry is approved from that record, never from what the agent says. Elsewhere, and in Claude Code without the hooks, the server asks through an MCP elicitation form, which Claude Code shows as rows of about 100 characters.

  • judge: a model with no stake in the ticket decides, so an unattended session never waits for someone who isn't there. It reads the ticket's description, the change, the reason and the risk, approves only when the description backs the reason, and the descope comment names the model and gives its reason for a person to review later. It needs an Anthropic API key: linear-strict auth judge-key set saves one from a hidden prompt to $XDG_CONFIG_HOME/linear-strict/anthropic-api-key (mode 600), next to the auth login credentials, or set ANTHROPIC_API_KEY in the server's environment, which wins. A key of its own, in a workspace with a spend limit, keeps the judge's cost on its own line. LINEAR_STRICT_JUDGE_MODEL overrides the model (default claude-opus-5-5). Each verdict is one API call of about 2 seconds, roughly 900 input tokens (most of them the cached brief) and 90 output tokens, well under a cent at Opus 5.5's rates (measured 2026-09-27). If the call fails (no credit, an outage, a refusal), the descope is refused with the error and nothing changes. MCP sampling would let the judge run on the client's own model with no key, but Claude Code doesn't offer it to servers (2.1.283 declares elicitation and roots only).

The hooks only guard against an agent cutting corners. An agent with a shell could still write an answer record by hand; a third hook refuses tool calls that name the records' directory, which closes the obvious route.

Blocking writes through other Linear servers

The server can only enforce its rules on writes that go through it. If Linear's official server is also connected, an agent can still edit a ticket there. examples/claude-code-hooks has Claude Code hooks that refuse ticket writes through other Linear servers and run a project's own Linear checks on strict writes. They are optional, and they are the only part of this setup that lives in the client.

OAuth login

linear-strict auth login signs in through the browser and stores a refreshing token, which the server uses when no token is set in its environment. It needs a Linear OAuth application of your own: create one at https://linear.app/settings/api/applications/new with the redirect URI http://localhost:8734/callback, then:

linear-strict auth login --client-id <client id>        # global install
node dist/index.js auth login --client-id <client id>   # from a checkout

The flow uses PKCE, so a client secret is optional. auth status shows whether you're signed in and when the token expires. auth logout revokes the token and deletes it. Credentials live in $XDG_CONFIG_HOME/linear-strict/credentials.json, readable only by you.

Configuration

Variable

Default

Purpose

LINEAR_API_TOKEN

—

Personal API key, or a lin_oauth_ token (sent as Bearer); --token on the command line also works

LINEAR_OAUTH_ACCESS_TOKEN

—

Any OAuth access token, sent as Bearer

LINEAR_STRICT_MAIN_BRANCH

main

Branch a PR must merge into for Done to count as shipped

LINEAR_STRICT_PRODUCTION_ENV

production

Environment named in posthog-<env>: flag labels that counts as live

LINEAR_STRICT_RELEASE_NOTE_LABELS

release-note,release-note-none,release-note-selfhost

The labels release_note writes: yes, none, then the optional self-host one; off turns it off. It takes effect only on a team where the yes and none labels exist

LINEAR_STRICT_RELEASE_NOTE_GATE

warn

What set_status does when a release-note or release-note-selfhost ticket moves to Merged, Verify or a completed state without a well-formed ## Release note line: warn moves it and returns release_note_missing; block refuses the move. Start on warn while open tickets gain their lines

LINEAR_STRICT_HANDS_OFF_LABELS

no-agents

Comma-separated labels that make a ticket people-only: every write through this server is refused, reads still work

LINEAR_STRICT_SIGN_OFF

person

Who approves dropping an unticked Done when item: person or judge (Sign-off)

LINEAR_STRICT_JUDGE_MODEL

claude-opus-5-5

The model that decides when LINEAR_STRICT_SIGN_OFF=judge

LINEAR_STRICT_OVERLAP

model

How create_issue finds the open tickets a new one overlaps: model has claude-sonnet-5-5 read every open title on the team when a judge key is set, else Linear's searches; search always uses the searches

ANTHROPIC_API_KEY

—

The judge's key, if not saved with auth judge-key set

LINEAR_STRICT_CHECKS_TEAMS

—

Comma-separated team keys whose tickets may carry a ## Checks section of checks with permanent ids. Set with LINEAR_STRICT_CHECKS_RULEBOOK, or neither

LINEAR_STRICT_CHECKS_RULEBOOK

—

Path to the project's checks rulebook, a JSON file (below). Read once at startup, with its sha256 logged to stderr, so a change takes effect on restart. Setting only one of the two variables, or a rulebook that is missing, unreadable, not JSON or lacks a required field, leaves ## Checks off for every team and logs one line saying why

LINEAR_STRICT_STATE_DIR

$XDG_STATE_HOME/linear-strict

Where claim records and pending sign-offs are kept

LINEAR_STRICT_CONFIG_DIR

$XDG_CONFIG_HOME/linear-strict

Where auth login stores credentials

LINEAR_STRICT_SINGLE_INSTANCE

1

0 turns off the check that lets a replaced server exit (below)

LINEAR_STRICT_DEBUG

—

1 logs startup detail to stderr

Claim records live on the machine running the server. A Done check from a machine with no claim on record is refused.

Checks rulebook

## Checks rules are data. The server reads them from the rulebook and runs its own interpreter (src/checks.ts); it never loads project code. The file is either the checks block itself or a JSON object with a checks key. Required fields:

Field

Type

Meaning

section

string

The exact heading line, e.g. ## Checks

line

string, regex, 6 groups

A check line: box ( , x or X), id, kind, target, claim, and the optional <!-- … --> body

provenance.pattern

string, regex

What a provenance comment's body must match

provenance.quote_pattern

string, regex, 1 group

Each Impact quote in a provenance comment, matched globally, e.g. impact "([^"]+)"

kinds.<kind>.target

string

The target's shape, quoted in refusals

kinds.<kind>.target_pattern

string, regex

What a target of that kind must match

coverage.stopwords

string[]

Words that never need an Impact quote

coverage.min_word_length

integer

Shorter words never need one either

Patterns are JavaScript regular expressions with no flags. They must run in linear time (no nested quantifiers such as (a+)+, no overlapping alternatives under a repeat): the server runs them on every write, on one thread, so a pattern that backtracks on a long line stalls every tool call. Coverage normalises text by lower-casing it and turning each run of characters that are not letters or digits into one space. An Impact whose first word is none claims only what follows its first colon, or nothing without one, unless the next word is of: none of the visitors can sign in is a claim like any other, as is a first word that only starts with none, such as nonetheless.

On a listed team, a check is graded only by the project's grader, which reads each check's evidence and writes Linear itself, not through this server. So a write that ticks a check, adds one ticked, or rewords one and keeps its tick is refused (unticking is allowed), and set_status to a completed state is refused on any ticket with a ## Checks section: the grader closes it once every check has its evidence. A ticket without the section is gated on Done when as before. A ticket on a listed team holds Done when or ## Checks, never both: a write whose result has both is refused, so adding ## Checks to a ticket with Done when must remove Done when in the same write (a migration, where every dropped item moves into a check or goes to sign-off), and any write to a ticket that already has both must remove Done when. Moving a ticket to Canceled is not a close and is not gated. The section is found by the same reader as every other section (a heading at column 0, outside a code fence; a ### inside it belongs to it, as it does inside Done when), and its heading must be exactly the rulebook's section; a body line that is that heading behind leading whitespace is refused in every section. Impact coverage reads the Impact and every quote without default-ignorable code points (soft hyphen, zero-width space and the rest), and an Impact whose first word is none, unless of follows it, exempts its opening clause; the text after its first colon is still a claim. A Done when item moves into ## Checks with no sign-off only as the whole claim of one new, unticked check of kind walk whose target ends in /visitor (a rulebook with no such kind gets no exemption); any other kind or target is a choice someone approves. A write that adds an id is refused when Linear returns no document history for the ticket, or one with no versions in it, since a retired id could not be ruled out.

src/__tests__/fixtures/checks-conformance.json holds cases with expected readings, for any other implementation of the same rules to test itself against. LINEAR_STRICT_CHECKS_RULEBOOK_TEST=<path> npm run test:unit runs them against another rulebook.

One server per connection

Claude Code's /mcp reconnect starts a new server and leaves the old one running with its pipes open, so the old one never sees its input close. Each server records its pid under LINEAR_STRICT_STATE_DIR/instances, keyed by its parent process and launch settings. When a newer server has replaced it and it has served no tool call for a minute since, the older one exits. A server whose parent exits, or whose input closes, exits too.

Reconciled marker

Each ticket this server has reconciled carries one attachment titled "linear-strict: description reconciled through date". It records the last comment the description accounts for, when that was checked, and a hash of the description at the time, so the next agent to read the ticket knows which comments are new and whether the description was edited elsewhere since. Deleting it does no harm: agents then check the whole thread again, and the next reconcile puts it back. It is written by whoever runs this server, not by Linear.

Tools

Tool

What it does

get_issue

Whole ticket, plus findings, drift, pull_requests, releases, claim and omitted

description_history

Past versions of the description with who made each and a diff; blame names the version behind every current line

list_issues

Every matching ticket in one call, paged to the end by the server: identifier, title, state, assignee, delegate and updatedAt, filterable by team, state, open, cycle and project; no description excerpts

claim

Take a ticket and snapshot its description; refuses one another agent holds

check_claim

Whether the description changed since your claim, with a diff

set_state

Patch description sections and/or move the reconciled marker

comment

Typed comment: evidence, correction, ask, answer, closed_by

set_status

Move to a workflow state; completed states pass the Done gate

set_fields

Priority, owner, labels, cycle, project, milestone, parent, dates, relations and linked PRs; never the description or state

create_issue

New ticket with validated sections, under a parent or in a project, placed against the closest open tickets

list_teams

Teams with their workflow states in board order

list_cycles

Cycles, active and next by default; pair a number with list_issues

list_projects, list_initiatives

Open projects and initiatives with status, owner and dates

notifications

Your inbox as pointers (ticket, type, actor, time), no excerpt text, paginated

get_principal_notifications

The same, for the human this identity acts for, on their own credential — needs LINEAR_PRINCIPAL_TOKEN/LINEAR_PRINCIPAL_ID configured

mark_principal_notifications_read

Mark the principal's notifications read: ones get_principal_notifications returned, by id or every one an agent caused

mark_notifications_read

Mark handled notifications read

whoami

The user or app behind the token, which is who claims and _is_me filters mean

The server also returns these rules as MCP instructions on initialize, so an agent learns the workflow when it connects. TOOLS.md has each tool's arguments, and docs/design.md the reasoning behind the rules, their limits, and what is still open.

From a script

A program that files tickets, such as a CI job turning test findings into tickets, can go through the same rules without an agent in between:

import { StrictLinear, OverlapRefusal, linearGql, memoryClaimStore } from 'linear-strict/library';

const strict = new StrictLinear({ gql: linearGql({ token }), claims: memoryClaimStore() });
try {
  await strict.createIssue({ team: 'ENG', title, sections, project_id });
} catch (error) {
  if (!(error instanceof OverlapRefusal)) throw error;
  // error.candidates: the closest open tickets. Comment on the one this repeats,
  // file under one with parent, or retry with new_because and distinct_from.
}

Citation audit

Tickets cite code by path:line and by commit hash, and nothing checks either once the ticket is written. The audit does, offline, in two steps:

linear-strict audit export --team ENG --out eng.jsonl
linear-strict audit check --export eng.jsonl --repo ~/src/app

export writes each ticket's description, every saved version of it, and its comments, open tickets first. That is about three API calls per ticket, spaced one ticket every --pace seconds (20 by default, about a fifth of a key's hourly quota), so a long export doesn't crowd out the key's other users. It saves every 25 tickets. A rerun with the same --out fetches only tickets updated since, and carries on where --max-fetch (500 by default), a rate limit or an interruption stopped the last run.

check reads that file and a git checkout and makes no network calls. Each citation is dated by the description version or comment it first appears in, then compared with the cited branch (--ref, default origin/main; a repo that lands work on a branch such as develop before main passes that) as it was on that date and as it is now:

Verdict

Meaning

holds

The cited lines read the same today

moved

The same lines are elsewhere in the file now; the finding gives the new line

changed

The cited lines say something else now; the finding gives both

file_gone

The file is no longer on the branch

trivial_line

The cited line is a brace or blank, so it can't anchor anything

line_missing_when_cited, not_in_tree_when_cited

The branch didn't have that line or file on the day it was cited, so it was cited from somewhere else

ambiguous_path

More than one file ends with the cited path

A commit-shaped hex string is on_main, off_main (--main, default origin/main), or not_a_commit_here, which is often a different kind of id: a comment, a request, a deployment. --json prints every finding; --issue narrows to named tickets.

Development

npm test         # typecheck, lint, format and unused-code checks, unit tests, MCP smoke test, and the sign-off routes end to end
npm run build
node scripts/e2e/sign-off.mjs --live-judge  # the same, with the judge on the real API (one call, well under a cent)
npm run test:live  # against a real workspace: creates temporary tickets on LIVE_TEAM and deletes them
npm run eval       # a model works tickets in the fake Linear through the strict tools; graded on final state
npm run format     # Prettier; `npm test` fails on unformatted code

git config core.hooksPath hooks once, after cloning, turns on the tracked pre-commit hook: a non-blocking CodeScene delta check on staged changes when cs is on PATH. It warns and never blocks the commit.

npm run test:live needs LINEAR_API_TOKEN and LIVE_TEAM (a team key). It writes to that workspace. npm run eval needs ANTHROPIC_API_KEY; evals/README.md covers cases, caching and results.

License

MIT. See LICENSE.md; the OAuth login code is from tacticlaunch/mcp-linear and keeps its notice.

Available Tools

19 tools
check_claimA
Read-onlyIdempotent

Whether the description changed since your claim, with a line diff. Run before opening or merging a PR for the ticket.

Inputs: issue (required). Returns: object

claimA
Destructive

Take a ticket and record the description as it stands, so a later Done check can tell whether it changed underneath you. Sets assignee to you when the ticket is unowned; sets delegate to you when a human owns it and you are an agent (app) identity. Refuses a ticket another agent holds. Claiming again after a change is how you acknowledge the new description.

Inputs: issue (required), as, take_over. Returns: object

commentA
Destructive

Post a typed comment. evidence: a finding, optionally with an Observed patch. correction: must carry the description patch that makes the description say the corrected thing. ask: adds an OPEN row to Open questions. answer: must name the row it closes (answers: "Q3") and flips it to ANSWERED with a link. closed_by: this ticket's work landed under another ticket; names it (closed_by), sets the Linear relation (relation "duplicate" or "fixed_there") and records it under Fix. Move the state separately with set_status.

Inputs: body (required), kind (required), issue (required), base, +6 more. Returns: object

create_issueA

Create a ticket. Before filing, ask whether the work is part of a ticket that already exists: widening that ticket, or filing under it with parent, keeps one change in one place. A new ticket needs a home, parent or project_id, and ends up in a project: a sub-ticket goes in its parent's, and a parent with no project is refused until it has one. A team with no open projects is exempt. Without a parent, the server finds the team's open tickets closest to this one and refuses until you've placed the work: under one of them (parent), into one of them (widen it and file nothing), or apart from all of them (new_because and distinct_from). The result lists what you filed on this team that no agent has taken up; filing a ticket is not doing the work, so see each into a queue. Its description is built from named sections (Observed, Cause, Fix, Done when), checked the same way set_state checks them. Include a Done when section if the ticket will be closed through set_status.

Inputs: team (required), title (required), parent, sections, +3 more. Returns: object

description_historyA
Read-onlyIdempotent

The description's past versions, from the snapshots Linear saves as it is edited: when, by whom, and a line diff against the version before. current says whether the live description is in a version yet, with a diff if not. With blame, every line of the current description names the version that introduced it and who made that version. Use it to see when and by whom a section or tick changed before overwriting or disputing it.

Inputs: issue (required), blame. Returns: object

get_issueA
Read-onlyIdempotent

Read one ticket whole: full description, every comment oldest-first (all pages), who edited the description and when, relations, children, attachments. omitted lists anything not returned; an empty list means nothing was left out. findings lists format problems in the description and drift.unreconciled_comments lists comments the description may not reflect yet, and drift.edited_after_reconcile comments edited after it accounted for them. When drift.needs_reconcile is true, fold what those comments establish into the description with set_state (reconciled_through = newest comment id) before acting on the ticket. Tickets written from other clients get repaired this way. Pass issue.description_sha as base to the write that patches the description.

Inputs: issue (required). Returns: claim, drift, issue, omitted, +8 more

get_principal_notificationsA
Read-onlyIdempotent

The inbox of the human this identity acts for — a different person's notifications from notifications, which is this identity's own. Same shape, deliberately a separate tool rather than a parameter, so which inbox you're reading is never ambiguous. Errors if LINEAR_PRINCIPAL_TOKEN isn't configured for this identity, or if it resolves to someone other than LINEAR_PRINCIPAL_ID.

Inputs: after, first, since, unread_only. Returns: note, order, has_more, next_cursor, +3 more

list_cyclesA
Read-onlyIdempotent

Cycles, earliest first. Defaults to the active and next cycle. Use a cycle number with list_issues (cycle + team) to see its tickets.

Inputs: team, when. Returns: object

list_initiativesA
Read-onlyIdempotent

Initiatives with status, owner and target date. Unfinished ones only unless include_closed.

Inputs: include_closed. Returns: object

list_issuesA
Read-onlyIdempotent

Every ticket matching the filters, in one call: the server pages through Linear to the end, so the answer is the whole set (total, by_state, and one row per ticket under columns). Rows hold identifier, title, state, assignee, delegate and updatedAt; there are no description excerpts, so read a ticket with get_issue before acting on it. More than 2000 matches is refused; narrow with open, state, cycle, project, assignee_is_me or delegate_is_me. When a task covers a set, work every row.

Inputs: open, team, cycle, query, +4 more. Returns: rows, total, columns, by_state, +1 more

list_projectsA
Read-onlyIdempotent

Projects with status, lead, teams, dates and progress. Open projects only unless include_closed.

Inputs: team, include_closed. Returns: object

list_teamsA
Read-onlyIdempotent

Every team with its key and workflow states in board order. State names are what set_status takes.

Inputs: no named parameters. Returns: object

mark_notifications_readA
Idempotent

Mark notifications read once you have handled them. Reports each id separately.

Inputs: ids (required). Returns: object

mark_principal_notifications_readA
Idempotent

Mark notifications in the inbox of the human this identity acts for as read — the write twin of get_principal_notifications, separate from mark_notifications_read so which inbox is written is never ambiguous. Only notifications get_principal_notifications returned in this server can be marked; others are refused per id. Pass ids, or only_agent_actors: true to mark every unread one an agent or integration caused (fleet bookkeeping), optionally only those created before a date. Needs a principal token with write access; a read-only one is refused with what to tell your user.

Inputs: ids, before, only_agent_actors. Returns: object

notificationsA
Read-onlyIdempotent

Your Linear inbox, newest first, as pointers: ticket, notification type, who did it (agent or person) and when. Excerpt text is left out, so read the ticket with get_issue before acting. Unread only by default; paginated with next_cursor.

Inputs: after, first, since, unread_only. Returns: note, order, has_more, next_cursor, +3 more

set_fieldsA
Destructive

Change a ticket's fields other than its content: title, priority, assignee or delegate, labels, cycle, project, milestone, parent, due date, estimate, relations to other tickets, and linked GitHub pull requests. The description changes only through set_state and the workflow state only through set_status. Names are resolved to ids first and the whole call is refused if any is unknown or ambiguous, so nothing is half-applied. Taking a ticket from its current assignee needs take_over; another agent's ticket is refused, and so is one delegated to someone else unless it is assigned to the human this identity acts for (LINEAR_PRINCIPAL_ID): then take_over moves the delegation and a comment records it.

Inputs: issue (required), cycle, title, blocks, +14 more. Returns: object

set_stateA
Destructive

Change what the ticket says is true by patching named description sections (Observed, Cause, Fix, Done when). The description is current state; comments are the log. Pass reconciled_through (a comment id) to record that the description now reflects the thread through that comment, with accounts_for saying how each skipped comment was handled. Tick a Done when item only once its check has run, and cite what showed it after the item text: "- [x] · ", where evidence is a commit SHA, a PR (#123), a file:line, a link, a CI run, "Observed 2" for a line under Observed, or command → result. A merge, a deploy, or being told something shipped is not the check; if nobody has run it, leave it open and say so. Removing or rewording an unticked Done when item needs descope_reason and descope_risk, and your user is asked to approve it from those two alone, so write them for someone without the ticket open. In Claude Code the call may come back asking you to put a question to your user with AskUserQuestion first; do exactly that, then retry with the sign_off token it gives.

Inputs: base (required), issue (required), patch, sign_off, +4 more. Returns: object

set_statusA
DestructiveIdempotent

Move a ticket to a workflow state by name. Moving to a completed state (Done) needs a Done when section with every item ticked and cited, any cited PR linked here merged, a linked PR merged into the main branch when any merged at all (link a promotion PR with set_fields link_prs), and your claim, and refuses, returning the diff, if the description changed since you claimed it. This call carries no evidence of its own: write it into the description with set_state first, where this check and any close gate a project hooks onto this tool read it. Moving to a canceled state skips those checks, so it needs reason, which is posted as a comment.

Inputs: issue (required), state (required), reason. Returns: object

whoamiA
Read-onlyIdempotent

Who this server acts as: the Linear user or app behind the token. Claims, assignee_is_me and delegate_is_me all mean this identity.

Inputs: no named parameters. Returns: id, app, name, displayName

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 19 tools

    Disambiguation4/5

    The set is largely distinct and even deliberately splits near-twins (mark_notifications_read vs mark_principal_notifications_read, notifications vs get_principal_notifications) with explicit rationale. The one real risk is the set_state / set_status / set_fields triple, which share a prefix and could be mis-picked at a glance, though the descriptions clearly delimit each (content vs workflow state vs other fields).

    Naming Consistency4/5

    Most tools follow a verb_noun snake_case pattern (list_issues, create_issue, set_status, mark_notifications_read) with consistent prefixes for related operations. Minor deviations exist (whoami, notifications as a bare noun, claim), but overall the convention is readable and predictable.

    Tool Count4/5

    19 tools sits just above the well-scoped band, but the strict workflow governance (claim, check_claim, set_state, set_status, comment typing, principal-inbox separation) justifies most of them. Few tools appear redundant; the count is slightly heavy rather than bloated.

    Completeness4/5

    Issue lifecycle is well covered (create, read, list, field edits, state transitions, claims, comments, history) plus teams, projects, cycles, initiatives and notifications. Gaps are minor: no delete/archive, no single-team/user lookups, and no global search beyond list_issues filters.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to manage an event-sourced, git-backed ticket store through MCP tools, supporting operations like ticket creation, claiming, and transitions.
      221 PyPI
      5
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables multiple AI agents to share, incrementally synchronize, and restore work context within a common scope using persistent tickets, immutable updates, and text artifacts.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents to create, list, claim, update, and log progress on markdown-based tickets stored in repositories across multiple projects. Supports shared ticket state, status workflows, and coordination between concurrent sessions.
      MIT