Skip to main content
To act in an outside service, an agent needs two things: a role that grants the service’s tools, and a connection that holds the login. You’ll set up both for Linear. The model never sees the token.

1. Grant the provider tools

Managed providers get a namespace like any other toolset, so a role grants them by name:
Add it to the agent’s profile the way Narrow an agent’s permissions does. The agent can call the tools now, but every call fails until there’s a login behind them.

2. Choose the owner

The owner decides which agents can use the connection:
  • workspace: every agent in the workspace shares one login. Good for a bot account your whole product acts through.
  • identity: only agents carrying that identity. Dana’s Linear login works for every agent acting for Dana, and no other agent can see it.
Pick identity whenever the login belongs to a person. You set that value when you created the agent, and it can’t change afterward.

3. Store the token

Linear takes a plain API key, so storing it is one request:
The identity here has to match the agent’s exactly: svc:research for this one, email:[email protected] for an agent acting for Dana. Matrices encrypts the token on the way in and never gives it back. Only Linear, GitHub, and PostHog take a plain token. Google, Slack, Notion, and Apollo need OAuth, and so does any OAuth MCP toolset of your own. There’s no token to paste for those: connect from the console, or let the agent start the flow itself with the built-in connections.connect tool, which needs tool:builtin:connections.connect in its role. The agent has to say which tier it wants with accessPreset, read_only or full (a provider with one tier, like Linear, ignores it), and its turn waits at connection_connect until a person finishes signing in. Which providers have tiers, and how a role caps them, is in Permissions.
There’s no server-to-server OAuth connect API. Token connections and every management endpoint here work today.

4. Use it, and handle a broken login

Ask the agent to do something in Linear. Matrices finds a connection the calling agent is allowed to use and attaches the login to the outgoing request. If more than one is eligible, say a workspace login and one for the agent’s identity, calls fail until the agent picks one with connections.select, which its role has to grant:
Logins break in two different ways. When the provider rejects an OAuth grant, the connection flips to needs_reauth, meaning someone has to sign in again. A static token never changes state: it stays ready while the calls fail. So when you know one is dead, replace it, naming the version you expect to overwrite:
To kill a login for good, POST /v1/connections/{connectionId}/revoke with its expectedVersion.

Check it worked

Ask Matrices whether each provider the agent’s roles select has a usable login behind it:
linear ready means both halves are done. missing means the role is there but no connection this agent can use is; check that the owner identity matches the agent’s. needs_reauth means a connection exists but its grant stopped working. If linear isn’t listed at all, the role hasn’t reached the profile yet.

Where next

Approve a tool call

Ask a human before the agent sends anything.

Run on a schedule

Have it check Linear every morning without you.