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

# Use with AI

> Connect AI assistants and coding tools to the Fairground docs

Every page on this site is available to AI tools in plain text, and the docs run an MCP server your assistant can search directly.

## Connect the MCP server

The Fairground docs MCP server exposes a `search_fairground` tool that searches every page, including the API reference.

| Setting | Value |
| - | - |
| URL | `https://docs.fairground.fi/mcp` |
| Transport | Streamable HTTP |

You can also use the page menu at the top of any page to connect Cursor or VS Code, or to copy the MCP server URL.

## Plain-text versions of the docs

| Resource | URL |
| - | - |
| Page index | [`/llms.txt`](https://docs.fairground.fi/llms.txt) |
| Full docs, one file | [`/llms-full.txt`](https://docs.fairground.fi/llms-full.txt) |
| Any single page | Add `.md` to its URL, for example `/trading/pricing.md` |
| OpenAPI spec | [`/developers/api-reference/openapi.yaml`](https://docs.fairground.fi/developers/api-reference/openapi.yaml) |

## Instructions for coding agents

Paste this into your agent's instructions file (for example `AGENTS.md` or `CLAUDE.md`) when it works with the Fairground API:

```markdown theme={null}
## Fairground API
- Docs: https://docs.fairground.fi (search with the MCP server at https://docs.fairground.fi/mcp)
- Every endpoint is a POST with a JSON body (ConnectRPC). Send `Authorization: Bearer <API key>`.
- Never hard-code or log the API key. Read it from an environment variable.
- Fairground is in testnet on Arbitrum Sepolia (chain ID 421614). Testnet funds have no value.
- All fills happen at the oracle price. There is no order book matching and no funding rate.
- Ask a human before taking any action that moves real funds.
```


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