Join our Newsletter — 33% off our NHI Course

Why does Linear MCP need per-user OAuth instead of shared access?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: Linear's hosted MCP server uses OAuth 2.1, API keys and read-only endpoints to let Claude Code, Cursor and Codex act as the signed-in user, while Scalekit shows that multi-user agent products must store, refresh and revoke one token set per end user. Shared agent access collapses into identity governance, not just tool wiring.

Editorial analysis by NHI Mgmt Group, based on content published by Scalekit: “Linear MCP server: set up Claude Code, Cursor, Codex and your agent”.

Key questions

Q: When should MCP tools be read-only instead of write-capable?

A: Use read-only access whenever a tool only needs to inspect data, because write-capable scope expands the blast radius of a compromised agent or stolen token.

Q: How does OAuth 2.1 support delegated MCP access?

A: OAuth 2.1 supports delegated MCP access by using modern authorisation-code flows with PKCE, short-lived access tokens, and tighter redirect handling.

Q: How do you govern per-user OAuth for MCP integrations?

A: Govern per-user OAuth by binding each MCP session to a named user, a specific client registration, and narrowly scoped tokens that can be revoked independently.

Practitioner guidance

  • Separate read and write authority by default Use read-only endpoints, read scopes or read-only keys for agents that only need visibility, and require an explicit approval path for any write-capable session.
  • Store one authorization per end user Make the backend the OAuth client of record, keep tokens encrypted, bind them to a stable internal user ID and revoke them independently when a user disconnects.
  • Keep API keys out of shared configs Pass bearer credentials through environment variables or secret stores so local files, shared project configs and copied snippets do not become the long-term secret holder.

Bottom line: Linear's hosted MCP model shows that agentic integrations inherit the user's authority, so access scope and revocation become identity controls rather than product settings.

Glossary terms: Model Context Protocol, OAuth 2.1, Dynamic Client Registration, Bearer Token

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

Per-user MCP access is identity governance, not connector plumbing. The moment an agent can create or change records on behalf of a user, the control problem shifts from tool reachability to delegated authority. That means lifecycle, revocation and scope assignment now sit inside the access model rather than beside it, and the design has to be judged as an identity system first.

A few things that frame the scale:

A question worth separating out:

Q: What happens when one agent serves many Linear workspaces?

A: When one agent serves many Linear workspaces, each workspace needs separate authorisation records, scopes, and tokens so access does not leak across tenants. The agent should resolve the active workspace at runtime, apply tenant-specific policy, and keep audit trails and revocation paths distinct for each customer.

👉 Read our full editorial: Linear MCP needs per-user OAuth for revocable shared agent access



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.