Skip to content

feat(linear): Allow an optional read-only service account - #2249

Merged
dcramer merged 1 commit into
mainfrom
feat/linear-service-account
Oct 27, 2026
Merged

dcramer merged 1 commit into
mainfrom
feat/linear-service-account

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Refs #2233. Follows #2245.

Linear connects through its hosted MCP server, so it uses the same service-account path as Notion. No core change is needed. The plugin now declares:

accounts: {
  serviceAccount: { tools: [...LINEAR_SERVICE_ACCOUNT_TOOLS] },
}

The list holds Linear's 21 read tools: the get_* and list_* tools, extract_images, and search_documentation. It leaves out every write tool, such as save_issue, save_comment, save_project, create_*, update_document, and delete_*.

Behavior

  • The block has no effect until a Junior admin connects a Linear account on the dashboard Admin page, or runs junior service-account connect linear.
  • After that, people who have not connected Linear read through the shared account. So do automations without a creator connection.
  • Writes still ask the person to connect their own Linear account. A person's own connection always wins.
  • Per-user OAuth stays on by default. A deployment can use only the service account with manifests: { linear: { accounts: { userOAuth: false } } }. Junior then hides the write tools.

Tool names

Linear's MCP tool list requires auth, so I could not read it from the live server. The names come from a published catalog of Linear's official MCP server (31 tools), and they match the tool names Junior already uses (get_issue, save_issue). Linear loads without mcp.allowed-tools, so a listed name that Linear removes has no effect. A new Linear read tool will ask people to connect until it is added here.

Linear also offers a read OAuth scope that blocks writes on Linear's side. The service-account sign-in cannot request a scope yet, so that is a possible follow-up.

Tests

tests/component/plugins/linear-plugin.test.ts checks that the shipped manifest parses, keeps per-user OAuth on, lists only read tools, allows get_issue, and refuses save_issue. The shared allow, deny, fallback, and revocation behavior is already covered by tests/component/auth/mcp-service-account-auth.test.ts.

Docs

packages/junior-linear/README.md and the Linear plugin docs page describe setup, the read-only scope, and the service-account-only option.

via David Cramer.

--

View Junior Session [Sentry]

Refs #2233.

Linear connects through its hosted MCP server, so it can use the same
service-account path as Notion. The plugin now lists Linear's read tools
in accounts.service-account.tools. An admin can connect a shared Linear
account from the dashboard Admin page. People who have not connected
Linear then read through that account. Writes such as save_issue and
save_comment still ask the person to connect their own account.

Per-user OAuth stays on by default. A deployment can turn it off with
manifests: { linear: { accounts: { userOAuth: false } } }.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 27, 2026 6:10pm UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Oct 27, 2026
@dcramer
dcramer merged commit 1dd2deb into main Oct 27, 2026
44 checks passed
@dcramer
dcramer deleted the feat/linear-service-account branch October 27, 2026 18:32

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 38c3e56e Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant