> ## 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.

# Muse Code - Connect StackOne

> Use the StackOne MCP server to connect your work systems to Muse Code.

For developers adding StackOne to **Muse Code** in their user settings file (`~/.config/muse/settings.json`).

> [!NOTE]
>
> **Not yet verified end-to-end.** StackOne has not yet tested Muse Code's OAuth flow against `https://mcp.stackone.com/mcp`. If `muse mcp login stackone` fails during OAuth discovery or registration, use the token app header fallback under **If something goes wrong**.

## Before you start

* A StackOne [project](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md) you are a member of.
* A [connector profile](https://docs.stackone.com/connect/managing-connectors/connector-profiles.md) in the project for each provider the client should reach, with the actions you want exposed enabled.
* (Optional) A [linked account](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md) for each provider. Accounts can also be linked during the consent flow.

Recommended Set up with your agentPaste this into Muse Code. It walks you through each step and can update your settings file.

Help me connect StackOne to Muse Code. 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 to settings.json**

1. Open `~/.config/muse/settings.json` (or `$XDG_CONFIG_HOME/muse/settings.json`). Create the directory and file if they don't exist yet.
2. Make sure `"schema_version": 1` is at the top level of the JSON file, then add `stackone` under `mcp_servers`:

   ```json theme={null}
   {
     "schema_version": 1,
     "mcp_servers": {
       "stackone": {
         "transport": "streamable_http",
         "url": "https://mcp.stackone.com/mcp"
       }
     }
   }
   ```

   Muse Code requires `"schema_version": 1` in `settings.json` and fails to start if it is omitted. Add `"mode": "optional"` inside the `stackone` block if you want Muse Code to warn instead of stopping when StackOne is unreachable.

**2. Sign in and authorize**

Run the login command in your terminal to open StackOne in your browser:

```bash theme={null}
muse mcp login stackone
```

1. Sign in to StackOne. In a desktop app or code editor, this opens in your browser.
2. Check the project at the top left. Muse Code only reaches Linked Accounts in that project. To use another one, click it and pick yours.
3. Pick the work systems Muse Code can use (your Linked Accounts).
4. If you see **Load tools when needed**, leave it on.
5. Click **Authorize**.

![StackOne's consent screen for Claude, with three Linked Accounts selected, Load tools when needed on, and the Authorize button](https://mintcdn.com/stackone-60/YmZbq_bZpKKfcffI/images/ai-platforms/oauth-consent-connect-to-your-tools.png?fit=max\&auto=format\&n=YmZbq_bZpKKfcffI\&q=85\&s=f7600605abcc0b446e7996945b0b6090)

**3. Check it works**

1. Start Muse Code (`muse`) and run `/mcp` to confirm `stackone` is connected and inspect its tools.
2. Send:

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

> [accordion] If something goes wrong
>
> **Muse Code fails with a malformed settings error.** Confirm `~/.config/muse/settings.json` is valid JSON and includes `"schema_version": 1` at the root, and that the block key is `mcp_servers` with `"transport": "streamable_http"`.
>
> **Blocked by organization policy.** Run `muse config status` to check whether an enterprise policy manages your MCP settings. Ask your Muse Code administrator to allow `https://mcp.stackone.com/mcp`.
>
> **Sign-in doesn't open or OAuth fails.** In CI, headless runners, or if OAuth discovery doesn't finish, create a [token app](https://docs.stackone.com/ai-platforms/mcp-server.md#client-setup-token-apps), export its token as `STACKONE_MCP_TOKEN`, and pass it via `headers` in `~/.config/muse/settings.json`:
>
> ```json theme={null}
> {
>   "schema_version": 1,
>   "mcp_servers": {
>     "stackone": {
>       "transport": "streamable_http",
>       "url": "https://mcp.stackone.com/mcp",
>       "headers": {
>         "Authorization": "Bearer ${STACKONE_MCP_TOKEN}"
>       }
>     }
>   }
> }
> ```
>
> **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.** Re-run `muse mcp login stackone` in your terminal to sign in again. 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.

> [accordion] Add or change accounts
>
> Muse Code 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 Muse Code 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.