> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Copilot CLI - Connect StackOne

> Use the StackOne MCP server to connect your work systems to GitHub Copilot CLI.

For developers using GitHub Copilot CLI in the terminal. Using VS Code? Follow [VS Code User Setup](https://docs.stackone.com/ai-platforms/microsoft/github-copilot/vs-code.md) instead.

Recommended Set up with your agentPaste this into Copilot CLI. Copilot walks you through it, one step at a time.

Help me connect StackOne to GitHub Copilot. I use GitHub Copilot CLI in my terminal. Read the setup guide at [https://docs.stackone.com/ai-platforms/setup-guide.md](https://docs.stackone.com/ai-platforms/setup-guide.md) and guide me one step at a time.
Copy

Or follow the steps yourself

## Connect

**1. Add StackOne**

In your terminal, run:

```bash theme={null}
copilot mcp add --transport http StackOne https://mcp.stackone.com/mcp
```

Already in a Copilot CLI session? Enter `/mcp add`, set **Server Name** to `StackOne`, **Server Type** to **HTTP** and **URL** to the address above, then press Ctrl+S.

Added StackOne in VS Code under **Copilot Global**? It's already here, so go to the next step.

> [accordion] Blocked by your organization
>
> On Copilot Business or Enterprise, Copilot can use MCP servers like StackOne only if your organization allows them. If StackOne won't add or start, ask your GitHub organization owner. Send them this:
>
> ```text theme={null}
> Can you allow the StackOne MCP server in GitHub Copilot for our organization? It needs the "MCP servers in Copilot" policy turned on, and https://mcp.stackone.com/mcp on our MCP allowlist if we use one.
> ```

**2. Start Copilot CLI**

1. Run `copilot` to start a session.
2. If your browser doesn't open StackOne's sign-in page, enter `/mcp auth StackOne`.

**3. Sign in and authorize**

1. Sign in to StackOne. In a desktop app or code editor, this opens in your browser.
2. If StackOne asks for a project, pick yours and click **Continue to Accounts**.
3. Pick the work systems GitHub Copilot can use (your Linked Accounts).
4. If you see **Load tools when needed**, leave it on.
5. Click **Authorize**.

![StackOne's Select accounts screen with two Linked Accounts ticked, Load tools when needed on, and the Authorize button](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/oauth-consent-select-accounts.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=66ef4eb4d8bf6e5246e5f01ec959c187)

**4. Check it works**

1. Enter `/mcp show StackOne` to see StackOne's tools.
2. Send this, and approve the StackOne tool when Copilot asks:

   ```text theme={null}
   Which of my Linked Accounts can you reach through StackOne?
   ```

> [accordion] If something goes wrong
>
> **Blocked by your organization.** On Copilot Business or Enterprise, your GitHub organization owner decides whether Copilot can use MCP servers. Ask them to allow StackOne.
>
> **No StackOne tools in chat.** Enter `/mcp enable StackOne`.
>
> **A system you need is missing.** Ask your StackOne admin, or see [Linking Accounts](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md).
>
> **It stopped working.** Sign in again with `/mcp auth StackOne`. Access lasts 90 days from when you clicked **Authorize**.
>
> **It can't do something.** It can do only what your own StackOne access allows. Ask your StackOne admin.
>
> **Copilot cloud agent on GitHub.** It can't use StackOne's sign-in, so StackOne works in VS Code and Copilot CLI only.

> [accordion] Add or change accounts
>
> GitHub Copilot reaches only the Linked Accounts you approved when you connected. To add one you link later, or one someone shares with you afterwards:
>
> **1. Open Connected Apps**
>
> In the StackOne dashboard, go to [**Connected Apps**](https://app.stackone.com/connected_apps).
>
> **2. Edit the connection**
>
> 1. Open the **⋮** menu on the row for GitHub Copilot and select **Edit tool access**.
> 2. Select the Linked Account.
> 3. Click **Save changes**.
>
> To review or revoke the connection, use the same **⋮** menu in **Connected Apps**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.