# Set up your coding agent

At the end of this page, your agent can rank documents and pick the best of several drafts by itself.

A person must do one thing: sign up at [app.supposing.app](https://app.supposing.app) and create an API key under **Developers**. Everything after that, the agent can do.

## Connect over MCP

The hosted MCP server is at `https://api.supposing.app/mcp`. It takes the key as a bearer token.

Claude Code:

```sh
claude mcp add --transport http supposing https://api.supposing.app/mcp --header "Authorization: Bearer sp_your_key"
```

Cursor and other clients that read JSON config (`.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "supposing": {
      "url": "https://api.supposing.app/mcp",
      "headers": { "Authorization": "Bearer sp_your_key" }
    }
  }
}
```

The agent now has four tools: `rank_documents`, `get_run`, `get_results` and `compare_options`. [MCP tools](mcp.md) says what each takes and returns.

## Or give it the CLI

An agent with a shell can use the CLI instead. Paste this into its instructions:

```text
Supposing ranks documents with LLM judges (pairwise comparisons, 90% rank ranges).
- Free local test: `supposing rank <folder> --rubric "<what to prefer>" --provider mock --json`
- Cloud: `supposing run <folder|dataset-id> --rubric "<...>" --json`. If it would cost money it exits
  with code 7 and prints the estimate; rerun with --yes only if the cost is acceptable. Cap it with --max-cost.
- Output: {"run", "estimate", "results", "skipped"}. results.summary is the verdict in one sentence;
  results.ranking.leaderboard[] has rank, rank_lo, rank_hi (the 90% range) and title.
- Errors: {"error": {"code", "message", "hint"}}. Follow the hint.
- Docs as Markdown: https://app.supposing.app/llms.txt
```

## Let it read the docs

Every page is plain Markdown at the same address plus `.md`, for example `https://app.supposing.app/docs/cli.md`. [llms.txt](llms.txt) lists every page with one line on each. `llms-full.txt` beside it holds all pages in one file.
