> For the complete documentation index, see [llms.txt](https://docs.controltheory.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.controltheory.com/controltheory-documentation/dstl8-docs/mcp-integration/claude-desktop.md).

# Claude Desktop

Distilling...

Connect Dstl8 to Claude Desktop for observability access in chat.

### Prerequisites

* Node.js 18+
* Claude Desktop installed
* Your [MCP endpoint and API token](/controltheory-documentation/dstl8-docs/mcp-integration.md)

### Setup

Open your Claude Desktop config file:

| Platform | Path                                                              |
| -------- | ----------------------------------------------------------------- |
| macOS    | `~/Library/Application Support/Claude/claude_desktop_config.json` |
| Windows  | `%APPDATA%\Claude\claude_desktop_config.json`                     |
| Linux    | `~/.config/Claude/claude_desktop_config.json`                     |

Add the following inside the `mcpServers` object:

```json
{
  "mcpServers": {
    "Dstl8": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://<org_id>.app.dstl8.ai/mcp",
        "--header",
        "Authorization: Bearer <your-token>"
      ]
    }
  }
}
```

Replace `<org-id>` and `<your-token>` with your credentials.

If you already have other MCP servers configured, add the `"Dstl8": { ... }` block alongside them inside the existing `mcpServers` object.

### Verify

1. Fully quit Claude Desktop (not just close the window)
2. Relaunch Claude Desktop
3. Look for the tools icon (hammer) in the input area
4. Click it to confirm Dstl8 tools are listed

### Troubleshooting

**Tools icon not appearing** — Make sure you fully quit and relaunched (not just closed the window). On macOS, use Cmd+Q.

**Server shows disconnected** — Check that `npx` is accessible from your system PATH. Open a terminal and run `npx --version` to confirm.

**Windows: "Connection closed" errors** — Use the `cmd /c` wrapper:

```json
{
  "mcpServers": {
    "Dstl8": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "mcp-remote",
        "https://<org_id>.app.dstl8.ai/mcp",
        "--header",
        "Authorization: Bearer <your-token>"
      ]
    }
  }
}
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.controltheory.com/controltheory-documentation/dstl8-docs/mcp-integration/claude-desktop.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
