Repository navigation
feat(linear): Allow an optional read-only service account - #2249
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
approved these changes
Oct 27, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
The list holds Linear's 21 read tools: the
get_*andlist_*tools,extract_images, andsearch_documentation. It leaves out every write tool, such assave_issue,save_comment,save_project,create_*,update_document, anddelete_*.Behavior
junior service-account connect linear.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 withoutmcp.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
readOAuth 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.tschecks that the shipped manifest parses, keeps per-user OAuth on, lists only read tools, allowsget_issue, and refusessave_issue. The shared allow, deny, fallback, and revocation behavior is already covered bytests/component/auth/mcp-service-account-auth.test.ts.Docs
packages/junior-linear/README.mdand the Linear plugin docs page describe setup, the read-only scope, and the service-account-only option.via David Cramer.
--
View Junior Session [Sentry]