# Docs MCP

> Connect https://developers.zulu.com.co/mcp to Claude Code, Cursor, VS Code or ChatGPT so your agent can search, read and try the zulu API.

[Sandbox · coming soon]

The docs MCP is a remote [Model Context Protocol](https://modelcontextprotocol.io) server at `https://developers.zulu.com.co/mcp` (Streamable HTTP). It gives your agent the same sources as these pages, plus the ability to try the sandbox with your credentials.

## Tools

| Tool                | What it does                                                                 |
| ------------------- | ---------------------------------------------------------------------------- |
| `search_docs`       | Searches every guide and the reference (Spanish or English).                 |
| `read_doc`          | Returns a page as Markdown, by path or URL.                                  |
| `list_operations`   | Lists the operations with their method, path and availability.               |
| `get_operation`     | The full reference of one operation: fields, responses, errors and examples. |
| `get_error_catalog` | The exact errors, by code or by operation.                                   |
| `get_magic_values`  | The sandbox's test data, rules and settings.                                 |
| `call_sandbox_api`  | (preview) Runs an operation in the sandbox with your credentials.            |

They are all read-only except `call_sandbox_api`, which only reaches the sandbox: never production and never real money.

## Install

**Claude Code**

```bash
claude mcp add --transport http zulu-docs https://developers.zulu.com.co/mcp
```

To enable `call_sandbox_api`, add your sandbox credentials as headers:

```bash
claude mcp add --transport http zulu-docs https://developers.zulu.com.co/mcp \
  --header "X-Zulu-Client-Id: $ZULU_CLIENT_ID" \
  --header "X-Zulu-Client-Secret: $ZULU_CLIENT_SECRET" \
  --header "X-API-Key: $ZULU_API_KEY"
```

**Cursor**

In `.cursor/mcp.json` (your project's) or `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "zulu-docs": {
      "url": "https://developers.zulu.com.co/mcp",
      "headers": {
        "X-Zulu-Client-Id": "${env:ZULU_CLIENT_ID}",
        "X-Zulu-Client-Secret": "${env:ZULU_CLIENT_SECRET}",
        "X-API-Key": "${env:ZULU_API_KEY}"
      }
    }
  }
}
```

**VS Code**

In `.vscode/mcp.json`, with the secrets prompted when connecting:

```json
{
  "inputs": [
    { "type": "promptString", "id": "zulu-client-id", "description": "zulu sandbox client_id" },
    { "type": "promptString", "id": "zulu-client-secret", "description": "zulu sandbox client_secret", "password": true },
    { "type": "promptString", "id": "zulu-api-key", "description": "zulu sandbox X-API-Key", "password": true }
  ],
  "servers": {
    "zulu-docs": {
      "type": "http",
      "url": "https://developers.zulu.com.co/mcp",
      "headers": {
        "X-Zulu-Client-Id": "${input:zulu-client-id}",
        "X-Zulu-Client-Secret": "${input:zulu-client-secret}",
        "X-API-Key": "${input:zulu-api-key}"
      }
    }
  }
}
```

**ChatGPT**

In ChatGPT, add a custom connector with the URL `https://developers.zulu.com.co/mcp` and no authentication (you need the connectors' developer mode). ChatGPT does not send custom headers, so `call_sandbox_api` is not available there: use the other tools to search and read the docs.

## Credentials: headers only

`call_sandbox_api` takes the sandbox credentials from the connection's headers (`X-Zulu-Client-Id`, `X-Zulu-Client-Secret`, `X-API-Key`), set once in your client. It never accepts them as arguments: whatever goes into an argument ends up in the model's context, its logs and its transcripts. An unknown argument —a `clientSecret`, say— fails the call before anything runs.

Never paste credentials into the chat or use production credentials: the MCP only talks to the sandbox.

## Security

- Every request creates a new, stateless server: nothing of one connection reaches another.
- It only accepts `POST`, with a body of up to 64 KB.
- A browser can only call it from developers.zulu.com.co; any other `Origin` gets `403`.
- `call_sandbox_api` calls land in your workspace's logs with the source `MCP`.
