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

# Docs MCP server

> Connect your AI assistant to the Cloak docs through MCP, so it searches the current documentation instead of guessing

The Cloak docs are served as an MCP server at:

```
https://docs.cloak.ag/mcp
```

Connect it to Claude, Cursor, Windsurf or VS Code and the assistant can search these docs while it
works. It reads the same pages you see here, so its answers follow the current SDK release instead of
whatever the model remembers. The server is read-only: it searches and reads documentation, and it
cannot touch a wallet or move funds.

## Tools

| Tool | What it does |
| - | - |
| `search_cloak_documentation` | Searches the docs and returns matching sections with their page link |
| `query_docs_filesystem_cloak_documentation` | Lists and reads the docs' files directly, for when the assistant needs a whole page |
| `submit_feedback` | Reports a problem with a docs page to the Cloak team |

A search for "withdrawal fee for the BRS pool" returns the fee formula from
[Fees](https://docs.cloak.ag/concepts/fees.md#fee-math), the program's fee rules, and the user-facing [Fees](https://docs.cloak.ag/guide/fees.md)
page, each with a link.

## Connect it

No API key or account is needed.

### Claude Code

```bash theme={null}
claude mcp add --transport http cloak-docs https://docs.cloak.ag/mcp
```

Run `/mcp` inside Claude Code to check that `cloak-docs` is connected.

### Claude desktop and claude.ai

Open **Settings → Connectors**, choose **Add custom connector**, name it `Cloak docs`, and paste
`https://docs.cloak.ag/mcp` as the URL.

### Cursor

Add it to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in a project:

```json theme={null}
{
  "mcpServers": {
    "cloak-docs": {
      "url": "https://docs.cloak.ag/mcp"
    }
  }
}
```

### Windsurf

Add it to `~/.codeium/windsurf/mcp_config.json`:

```json theme={null}
{
  "mcpServers": {
    "cloak-docs": {
      "serverUrl": "https://docs.cloak.ag/mcp"
    }
  }
}
```

### VS Code

Add it to `.vscode/mcp.json` in your workspace:

```json theme={null}
{
  "servers": {
    "cloak-docs": {
      "type": "http",
      "url": "https://docs.cloak.ag/mcp"
    }
  }
}
```

You can also connect from any page of these docs: open the page menu next to the title and choose
the MCP option.

## Using it well

* Ask the assistant to check the docs before it writes Cloak code, for example: "Use the cloak-docs
  MCP to find how to open an account with a Privy wallet, then write the hook."
* Pair it with the rules files on [Cursor](https://docs.cloak.ag/ai-tools/cursor.md), [Claude Code](https://docs.cloak.ag/ai-tools/claude-code.md) or
  [Windsurf](https://docs.cloak.ag/ai-tools/windsurf.md). The rules set the constraints; the MCP supplies the current details.
* For a single-file context pack instead of a live connection, use [`/llms-full.txt`](https://docs.cloak.ag/llms-full.txt).
  See [AI integration](https://docs.cloak.ag/ai-tools/ai-integration.md).


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