> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/concepts/mcp-servers/integrating-mcp-servers/linear.md). Agents can also search and read this documentation through its [MCP server](https://docs.duplocloud.com/docs/~gitbook/mcp).

# Linear

This guide walks through connecting Linear to DuploCloud — registering the Linear MCP server, creating a provider and scope that carry your Linear API key, and querying Linear data through the AI agent.

It covers the Linear-specific values you need. For the general mechanics of MCP servers, providers and scopes, see [MCP Servers](https://docs.duplocloud.com/docs/concepts/mcp-servers.md).

***

## Step 1 — Generate a Linear API Key

In Linear, open the workspace menu (top-left) and click **Settings**.

![Linear settings menu](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-4d84cafa1637b3f8056a0c2090b6e33f1bd6e7a4%2Flinear-step-01.png?alt=media)

Navigate to **Security & access** in the left sidebar. Scroll down to the **Personal API keys** section and click **New API key**. Give it a name, click **Create**, and copy the generated key — it is only shown once.

***

## Step 2 — Register the Linear MCP Server

In DuploCloud, go to **AI Admin → MCP Servers** and click **+ Add MCP Server**.

![MCP Servers list](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-83a6cb7680b58d7320263fdc544d5b3e11260569%2Flinear-a1-01-mcp-servers-list.png?alt=media)

Fill in the **Basic** section:

* **Name** — e.g. `Linear`
* **Provider Type** — select **Other** (the last entry in the list), then enter `other` in **Specify Provider Type**
* **Config Type** — **HTTP/SSE**
* **API Endpoint** — `https://mcp.linear.app/mcp`
* **Transport** — `http`

{% hint style="warning" %}
The server's provider type must be exactly `other`, matching the **Other** provider you create in Step 3. A scope can only use an MCP server whose provider type matches its provider's type, so any other value here makes the scope fail to save.
{% endhint %}

![Add MCP Server form](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-3c33fd6d877d18b80bfd6efab998a67158221420%2Flinear-a1-02-add-mcp-server.png?alt=media)

Click **Create**. (The **Metadata** section is optional — see [Registering an MCP server](https://docs.duplocloud.com/docs/concepts/mcp-servers.md#stage-1-register-the-mcp-server).)

***

## Step 3 — Create the Provider and Scope

Go to **AI Admin → Providers → IT**, select the **Other** tab, and click **+ Add Provider**. The page walks through three sections in order — Provider Details, Credentials, and Scope — described in full under [Create the Provider, credential, and Scope](https://docs.duplocloud.com/docs/concepts/mcp-servers.md#stage-2-create-the-provider-credential-and-scope).

**Provider Details**

* **Name** — e.g. `Linear`
* **Type** — **Other**
* **Account ID** — any identifying label; Linear does not require a specific account ID

![Provider Details](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-48e76339e62589bb3d66c650cb69a64503d8710f%2Flinear-a1-03-provider-details.png?alt=media)

Click **Next**.

**Credentials**

Click **Skip**. The Linear MCP server is an HTTP/SSE server, and those authenticate with the `Authorization` value in the scope's Resource Map, not with a provider credential.

![Skip the Credentials section](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-c0a00cc82b1e6859f3201c3078f0ba82147435b5%2Flinear-a1-04-credentials-skip.png?alt=media)

**Scope**

* **Name** — e.g. `Linear`
* **MCP Server** — the Linear server registered in Step 2
* **Resource Map** — add one key:
  * **Key** `Authorization`, **Values** your Linear API key. The key name is case-sensitive; use `Authorization` exactly as written. The agent sends the value as a `Bearer` token, adding the `Bearer` prefix if you leave it out.

![Scope with the Authorization key](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-46a1f41c80c75bcebbab0061ff3a75de8e7da503%2Flinear-a1-05-scope.png?alt=media)

{% hint style="info" %}
Resource Map values are stored as plain configuration, not as a secret. Anyone who can view this scope in AI Admin can see the key.
{% endhint %}

Click **Create**, then choose which workspaces the scope should be available to, or click **Skip** to attach it later.

![Attach Scope to Workspaces](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-c1c96d49431f857047701231d1b78a855bdadf9f%2Flinear-a1-06-attach-skip.png?alt=media)

***

## Step 4 — Use Linear in a Ticket

Go to **HelpDesk** in the left-hand navigation and click **Add Ticket**. Click **Select Scopes** and choose your Linear scope — see [Creating a ticket](https://docs.duplocloud.com/docs/concepts/tickets.md#step-3-select-scopes-optional). The scope appears only in workspaces it is attached to.

Describe what you want — for example, asking the agent to list your open Linear issues — and create the ticket. The agent connects to Linear through the MCP server and calls tools named `mcp__<server>__<tool>`, where `<server>` is the name you gave the server in Step 2.

{% hint style="info" %}
By default the agent asks before running any MCP tool. To let Linear's tools run without prompting on a given ticket, set that under **MCP Tool Permissions** in the ticket's Details panel — see [Controlling which tools the agent may call](https://docs.duplocloud.com/docs/concepts/mcp-servers.md#controlling-which-tools-the-agent-may-call).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.duplocloud.com/docs/concepts/mcp-servers/integrating-mcp-servers/linear.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
