Skip to main content
Setting up and configuring Contree MCP.

Configuration

Troubleshooting

Quick Setup

See the Quickstart for basic setup instructions.

Configuration Options

Credentials live in a profile-based auth.ini shared with contree-cli; install the CLI and run contree auth once to populate it. The MCP server then reads the active profile automatically.
OptionEnvironment VariableDefault
-CONTREE_HOME$XDG_CONFIG_HOME/contree (typically ~/.config/contree)
--profileCONTREE_PROFILEactive profile from auth.ini
--tokenCONTREE_TOKENfrom profile
--urlCONTREE_URLfrom profile
--projectCONTREE_PROJECTfrom 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