---
title: Build with AI
description: Every way an AI assistant or agent can use Invictus - the docs as Markdown, llms.txt, the MCP docs server, the agent skill and the public read-only API.
icon: bot
---

These docs and the Invictus API are made to be read by AI assistants as well as people. Whether you want ChatGPT or
Claude to explain a page, a coding agent to build on the API, or your own agent to look up pools, start here.

:::info[What an agent can and cannot do]
The public API is **read only** and needs **no key**: pools, tokens, prices, candles, depth and quotes. It never moves
funds. Opening, changing or closing a position always happens in the terminal, where the person reviews and signs
every transaction.
:::

## Give an assistant the docs

| You want to | Use |
| --- | --- |
| Ask a chatbot about one page | **Open in chat** in the page's right rail sends it to Claude, ChatGPT or Cursor. **Copy page** copies it as Markdown. |
| Read any page as Markdown | Add `.md` to its address, for example [`/concepts/dlmm.md`](/concepts/dlmm.md), or send `Accept: text/markdown`. |
| Give an agent the whole site | [`/llms.txt`](/llms.txt) lists every page with a summary; [`/llms-full.txt`](/llms-full.txt) holds all of them in one file. |
| Let an agent search the docs | Connect the MCP server below. |
| Teach an agent how Invictus works | Install the agent skill below. |
| Build on the API | Download [`/openapi.json`](/api/openapi.json), read the [API quickstart](/build-with-ai/api-quickstart) and the [recipes](/build-with-ai/recipes). |

## Connect the MCP docs server

The docs run a [Model Context Protocol](https://modelcontextprotocol.io) server at `https://docs.lpinvictus.com/mcp`.
An MCP client, such as Claude Desktop, Claude Code, Cursor or VS Code, can then search and read these pages while it
answers you.

**Claude Code**

```bash
claude mcp add --transport http invictus-docs https://docs.lpinvictus.com/mcp
```

**Cursor and VS Code**

Add this to the MCP settings file of your editor (`.cursor/mcp.json`, or `.vscode/mcp.json` with `servers` in place
of `mcpServers`):

```json
{
  "mcpServers": {
    "invictus-docs": { "url": "https://docs.lpinvictus.com/mcp" }
  }
}
```

**Claude Desktop**

Open **Settings**, then **Connectors**, choose **Add custom connector**, and enter
`https://docs.lpinvictus.com/mcp`.

The server is read only and needs no sign-in.

## Install the agent skill

A **skill** is a short instruction file that teaches an agent a task. The Invictus skill explains the terminal's
concepts, the safety rules and how to call the public API. Agents that support skills can load it from
[`/.well-known/agent-skills/index.json`](/.well-known/agent-skills/index.json), or fetch the generated site skill at [`/skill.md`](/skill.md).

## Writing prompts that work

- **Name the chain and the pool.** "The WETH/USDC Uniswap v3 pool on Base" is unambiguous; "the ETH pool" is not.
- **Ask for the source.** Ask the assistant to quote the page it used. The MCP server's instructions already ask it to
  say when the docs do not answer the question.
- **Never paste a key.** No Invictus task needs your private key or recovery phrase. An assistant that asks for one is
  wrong.
