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

# Connect AI tools to Dfns docs

> Give your AI coding assistants direct access to Dfns documentation for accurate, real-time answers.

Tools like Claude, Cursor, and VS Code Copilot can query Dfns docs in real time, giving you accurate answers about APIs, authentication flows, and blockchain integrations instead of relying on stale training data.

## One-click setup

Use the contextual menu on any page to instantly connect your AI tools to Dfns documentation.

<Frame>
  <img src="https://mintcdn.com/dfns-6d8c7466/BNRjRKiPjU4bat_b/images/ai-tools.png?fit=max&auto=format&n=BNRjRKiPjU4bat_b&q=85&s=24ec22e4ab5618d19970cd2be5540e12" alt="Contextual menu showing AI tool integration options" width="343" height="402" data-path="images/ai-tools.png" />
</Frame>

## Manual setup

<AccordionGroup>
  <Accordion title="Claude Desktop & Claude.ai">
    1. Open [Claude Settings → Connectors](https://claude.ai/settings/connectors)
    2. Click **Add custom connector**
    3. Enter name `Dfns` and URL `https://docs.dfns.co/mcp`
    4. When chatting, click the attachment icon and select Dfns to enable doc search
  </Accordion>

  <Accordion title="Claude Code (CLI)">
    ```bash theme={null}
    claude mcp add --transport http Dfns https://docs.dfns.co/mcp
    ```
  </Accordion>

  <Accordion title="Cursor">
    1. Open command palette: `Cmd+Shift+P` (Mac) or `Ctrl+Shift+P` (Windows)
    2. Search **Open MCP settings** → **Add custom MCP**
    3. Add to `mcp.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "Dfns": {
          "url": "https://docs.dfns.co/mcp"
        }
      }
    }
    ```
  </Accordion>

  <Accordion title="VS Code">
    1. Open command palette: `Cmd+Shift+P` (Mac) or `Ctrl+Shift+P` (Windows)
    2. Run **MCP: Add Server** and select **Workspace** (project-specific) or **User** (global)
    3. Add the following configuration:

    ```json theme={null}
    {
      "servers": {
        "Dfns": {
          "type": "http",
          "url": "https://docs.dfns.co/mcp"
        }
      }
    }
    ```

    See [VS Code MCP documentation](https://code.visualstudio.com/docs/copilot/customization/mcp-servers) for more options.
  </Accordion>
</AccordionGroup>

## How it works

Dfns documentation is exposed through the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/), an open standard that lets AI tools search and retrieve documentation content.

When you connect an AI tool to our MCP server `https://docs.dfns.co/mcp`, it gains the ability to:

* Search across all Dfns documentation
* Retrieve relevant pages based on your questions
* Access the latest content (not stale training data)

The AI decides when to search based on conversation context. Ask about creating wallets, signing transactions, or configuring policies, and it will automatically pull the relevant documentation.

## Bulk access for custom integrations

Building your own AI tooling or RAG pipeline? Access the full documentation programmatically:

| Resource                                             | Description                             |
| ---------------------------------------------------- | --------------------------------------- |
| [/llms.txt](https://docs.dfns.co/llms.txt)           | Index of all pages with descriptions    |
| [/llms-full.txt](https://docs.dfns.co/llms-full.txt) | Complete documentation as a single file |

Any page is also available as Markdown by adding `.md` to its URL (e.g., [/api-reference.md](https://docs.dfns.co/api-reference.md)).
