Skip to main content
The Mcpjungle CLI reads a YAML configuration file at ~/.mcpjungle.conf on startup. It stores two values: the URL of the Mcpjungle server and an access token for authenticated requests. Most users never edit this file by hand — mcpjungle init-server and mcpjungle login write to it automatically.

Client config file (~/.mcpjungle.conf)

Location and format

The file lives in your home directory and uses YAML syntax:
Both fields are optional. If either is absent the CLI falls back to its default value or prompts you to supply it via a CLI flag.

Supported fields

registry_url
string
default:"http://127.0.0.1:8080"
Base URL of the Mcpjungle server the CLI connects to. Set this to avoid passing --registry on every command.
access_token
string
Bearer token sent in the Authorization: Bearer header with every API request. Required when the server runs in enterprise mode. Populated automatically by mcpjungle init-server (admin token) or mcpjungle login (user token).

Value precedence

When the CLI resolves the registry URL it uses the following order, highest priority first:
  1. --registry flag passed explicitly on the command line
  2. registry_url set in ~/.mcpjungle.conf
  3. Built-in default (http://127.0.0.1:8080)
If you pass --registry manually but registry_url is not yet in your config file, the CLI prints a tip suggesting you add it to avoid repeating the flag.

Populating the file automatically

~/.mcpjungle.conf is usually created or updated in one of two ways:
  • mcpjungle init-server writes the initial admin credentials during enterprise bootstrap
  • mcpjungle login <user-token> stores a user token for later authenticated CLI use
You can also edit the file manually if needed. For the enterprise bootstrap flow and login workflow, see Enterprise operations.

JSON config file formats

Several mcpjungle commands accept a -c / --conf flag pointing to a JSON file instead of inline CLI flags. This section documents every supported JSON format.

${VAR_NAME} placeholder substitution

All JSON config files support environment variable placeholders in string fields. Before sending the request to the server, the CLI expands every ${VAR_NAME} occurrence using the current shell environment. Rules:
  • Only ${VAR_NAME} syntax is recognized — not $VAR_NAME.
  • Placeholders can appear anywhere inside a string, including as a substring: "prefix-${VAR}-suffix".
  • Substitution runs in the CLI process, so the variable must be set in the environment where you run the command.
  • Placeholders resolve in all string fields, including nested objects and string arrays.
  • If a referenced variable is not set, the command fails with a descriptive error.

Register a Streamable HTTP server

Used with mcpjungle register -c <file>.
Upstream OAuth support is currently beta.For interactive CLI use, you usually do not need to set oauth_redirect_uri manually. Mcpjungle can provision a localhost callback automatically when the upstream MCP server actually requires OAuth.

Register a STDIO server

Used with mcpjungle register -c <file>.

Create a tool group

Used with mcpjungle create group -c <file>.
At least one of included_tools or included_servers should be set, otherwise the group will be empty.

Create an MCP client

Used with mcpjungle create mcp-client --conf <file> (enterprise mode).
When creating a client from a config file, you must supply a token via access_token or access_token_ref. Mcpjungle cannot print a generated token back to the console when reading from a file.

Token supply strategies

For MCP client and user config files, there are three ways to supply a custom token:
  1. access_token
  2. access_token_ref.file
  3. access_token_ref.env
Use access_token only for testing or throwaway setups. For anything more serious, prefer file- or environment-based secrets.

Create a user account

Used with mcpjungle create user --conf <file> (enterprise mode).
The same ${VAR_NAME} placeholder substitution applies to user config files. When using a config file you must supply a token — Mcpjungle cannot print a generated one to the console.