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

# Integration

Setting up and configuring Contree MCP.

> [card] [Configuration](https://docs.tokenfactory.nebius.com/sandboxes/mcp/integration/configuration.md)

> [card] [Troubleshooting](https://docs.tokenfactory.nebius.com/sandboxes/mcp/integration/troubleshooting.md)

## Quick Setup

See the [Quickstart](https://docs.tokenfactory.nebius.com/sandboxes/mcp/quickstart.md) for basic setup instructions.

## Configuration Options

Credentials live in a profile-based `auth.ini` shared with
[`contree-cli`](https://docs.contree.dev/cli/tutorial/installation.html);
install the CLI and run `contree auth` once to populate it. The MCP
server then reads the active profile automatically.

| Option | Environment Variable | Default |
| - | - | - |
| - | `CONTREE_HOME` | `$XDG_CONFIG_HOME/contree` (typically `~/.config/contree`) |
| `--profile` | `CONTREE_PROFILE` | active profile from `auth.ini` |
| `--token` | `CONTREE_TOKEN` | from profile |
| `--url` | `CONTREE_URL` | from profile |
| `--project` | `CONTREE_PROJECT` | from profile (IAM auth only) |
| `--mode` | - | `stdio` |
| `--http-port` | - | `9452` |
| `--log-level` | - | `warning` |
| `--version` / `-V` | - | print User-Agent and exit |

Resolution priority for credentials: \*\*CLI flag > environment variable

> stored profile\*\*.

## Supported Clients

* Claude Code
* Claude Desktop
* OpenAI Codex CLI
* Any MCP-compatible client

## See Also

* [Configuration](https://docs.tokenfactory.nebius.com/sandboxes/mcp/integration/configuration.md) - Detailed config options
* [Troubleshooting](https://docs.tokenfactory.nebius.com/sandboxes/mcp/integration/troubleshooting.md) - Common issues
