Files
deepseek-harness/packages/connector/linear
gengruilin 2dfddeaaca feat(linear): show a feature preview on the bundle's Plugins page
The bundle's detail document is now a one-line feature preview, a
640x300 image in English and Chinese, instead of the developer README.
It shows the connected Linear account and a conversation that lists
Linear issues; the other six locales use the English document.
2026-11-05 14:45:04 +08:00
..

description, kind
description kind
Connect Linear's hosted MCP server through the shared MCP manager, authorize it with OAuth, and use its tools in conversations. package-bundle

@deepseek-ai/dsh-linear

English | 中文

Summary

The Linear plugin registers Linear's hosted MCP server, https://mcp.linear.app/mcp, with the Host's shared MCP manager for as long as the plugin is loaded. The user connects a Linear account from the plugin's page on the Web sidebar's Plugins page; afterwards every conversation on that Host can use the server's tools, and the model is told to call the integration the Linear plugin. The manager owns the connection, OAuth authorization, the saved grant, and sign-out, which the shared MCP account surfaces show on the Plugins page. It runs in the Web and Desktop compositions.

Table of Contents


Use this package

Install into a profile

Install the package as a bundle, for example from the Web sidebar's Plugins page or with the CLI:

dsh plugin --profile web add @deepseek-ai/dsh-linear

The bundle patch inserts the linear row after the profile's other layers. The plugin requires the mcpManager and systemPrompt services, which the Web and Desktop compositions provide through dsh-web-app. In a profile without the MCP manager, such as headless, the plugin does not activate, and startup prints a warning that names the missing mcpManager service.

Authorize and sign out

The plugin registers the server linear with the fixed OAuth credential key mcp-client/linear. Without a saved grant the server waits for authorization and exposes no Linear tools. With a saved grant the manager connects at startup and refreshes tokens as needed. Linear's tools load on demand by default: the system prompt lists them, and each agent loads the ones it needs with mcp__linear__load_tools.

While the plugin is on, its page on the Plugins page shows a Linear account section, and a tag beside the title reads Not connected, Connecting, Connected, Reconnect, or Unavailable. Switching the plugin on from the list while no account is connected offers Connect Linear, which opens the plugin's page and starts authorization.

Section state Action
Not connected, or the grant expired, no longer matches the settings, was rejected, or lacks permissions Connect Linear or Connect again starts an authorization attempt
Waiting for you to confirm in the browser The browser that started the attempt opens Linear's authorization page once; Open authorization page opens it again, and Cancel ends the attempt
Connected Sign out asks for confirmation, then deletes the local grant
Cannot connect right now Retry restarts the server and keeps the existing grant

Authorization must be completed in a browser on the Host machine. After the user approves access in Linear, the callback page says DSH received the authorization; the section then shows the result. Leaving the page does not cancel an attempt, which the Host owns. A failed attempt shows Authorization was not completed. Try again.; a failed page action shows a toast. Sign-out keeps the client registration and does not revoke the connection on Linear's side.

The page follows the account through the mcpAccounts Remote, which reports the manager's entry, and calls the manager's OAuth operations through Remote: startAuthorization('linear') returns an attempt whose authorizationUrl the stream reports, cancelAuthorization('linear', id) cancels it, signOut('linear') deletes the grant, and restart('linear') retries. Other Remote clients can use the same operations.

Turn off and uninstall

Turning the row off in Plugin Manager, or uninstalling the package, ends the registration: the Linear tools leave the model's tool set, and the saved grant stays in the credentials store, so reinstalling reuses it. To remove the grant, sign out while the plugin is loaded, or delete the mcp-client/linear record from $DSH_HOME/.credentials.yaml as the local credentials provider documents.

Configure

Field Default Meaning
url https://mcp.linear.app/mcp Streamable HTTP MCP endpoint of the Linear server
toolLoading on-demand on-demand keeps Linear's tools hidden from each agent until it loads them; eager sends every tool definition with every request

The generated config catalog is the exhaustive source of supported fields. Connection and authorization budgets use the manager and mcp-client defaults. The saved grant is bound to url; changing it requires connecting the account again.


Understand the implementation

Implementation internals — click to expand

cordis.patch.yml inserts one row with id linear naming this package, so the package is both the bundle and its only row; config overrides target that id. The Host half, src/index.ts, makes two registrations, both effects of the plugin's fiber: ctx.mcpManager.register('linear', …) adds a Streamable HTTP entry with the configured url and OAuth credential key, and ctx.systemPrompt.section() adds the naming guidance at the MCP_SERVERS order. The server name fixes the mcp__linear__ tool namespace, and the credential key fixes the grant address, so a reloaded or reinstalled plugin reaches the same tools and grant. The manager validates the entry when it is registered; a configured or registered server that already uses the name or key makes the plugin fail to load before the guidance is added.

While the account registry runs, the plugin also calls ctx.mcpAccounts.register({ server: 'linear', packageName: '@deepseek-ai/dsh-linear', copy }), where src/copy.ts holds the text that names Linear in every shipped language; ui-mcp-account then serves the linear entry and renders the section, guidance, tag, and toast described above. A composition without the registry, such as a headless profile, loads the plugin without the account section.


Further Exploration


Model Experience

Naming and connection guidance

What the model sees

While the plugin is loaded, the system prompt contains the text below before the MCP server sections, whether or not Linear is authorized.

Guidance text
Tools named `mcp__linear__*` come from the Linear plugin. In user-facing replies, call it the Linear plugin (Linear 插件 in Chinese), not MCP. If no `mcp__linear__*` tool appears in your tool list, Linear is not connected yet; ask the user to connect it on the Linear plugin page in Plugins.

Token effect

The two fixed sentences add about 70 tokens to every request while the plugin is loaded.

KV Cache effect

The sentence is prefix-stable: it changes only when the plugin loads or unloads, not when authorization or the connection changes.

Linear server tools and instructions

What the model sees

After authorization, the model sees Linear's server instructions under ### MCP server: linear and, with the default toolLoading: on-demand, the loader mcp__linear__load_tools and a catalog of Linear's tools in the system prompt; each tool it loads then appears as mcp__linear__<tool> with Linear's description and input schema. With eager, every tool appears from the start, as the MCP client documents. With on-demand, the loader and the catalog appear only once Linear is connected. While the plugin is loaded, including before authorization, the shared resource tools and their server-name prompt list linear.

Token effect

Linear's server defines the tool set and instructions, and their size can change without a DSH update. With on-demand, a connected Linear costs its instructions, the loader, and a catalog of about 9,600 characters for its 70 tools, plus the definitions an agent has loaded; with eager, all definitions, about 97,900 characters, repeat on every request.

KV Cache effect

Linear's instructions (or, with eager, its tools) appear when the connection succeeds and disappear when authorization is withdrawn or the plugin unloads; each change can invalidate reuse from the first changed token. With on-demand, the catalog changes only when Linear's tool list does, and each load changes the agent's next tool list, as the MCP client documents. The shared resource tools stay unchanged across connection changes.

Known Limitations and Deferred Work

  • The Linear account section exists only while the plugin is on. To sign out after turning the plugin off, turn it on again or delete the grant record.
  • Only the Web and Desktop compositions mount the MCP manager; other profiles leave the plugin inactive.
  • The authorization callback is http://127.0.0.1:<port> on the Host, so the browser that completes authorization must run on the Host machine. A Web Host reached from another machine cannot finish authorization.
  • Desktop listens on an OS-assigned port for each launch. Authorizing again after a restart registers a new OAuth client and keeps the earlier registration record; saved grants refresh normally across restarts.
  • Before the account is connected, the shared resource prompt still lists linear as a server name, and resource calls to it fail until the user connects.
  • One Linear authorization covers one Linear workspace and serves the whole Host; there is no account or workspace picker.
  • A paid Linear workspace can require admin approval for third-party applications. There, Linear asks the user to request approval instead of granting access, and the user connects again after an admin approves.
  • Turning the plugin off or uninstalling it keeps the local grant. Signing out deletes the local grant but leaves the connection authorized on Linear's side until the user removes it there.

Dev Note

Working context for maintainers — click to expand

Host specs run the plugin against the MCP manager and the mcp-client loopback OAuth server fixture; another checks that the account registry serves the Linear account with its text and withdraws it with the plugin. The linear-plugin session snapshot replays the Linear row without a saved grant, so it pins the naming guidance and verifies that no request reaches the server.