# Claude Desktop

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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
