--enterprise, every request to the MCP proxy must include a valid bearer token, and each token is scoped to a specific list of allowed servers.
This page documents all commands for setting up the enterprise server and managing clients, users, and authentication.
All commands on this page require the server to be running in enterprise mode (
mcpjungle start --enterprise). They return errors when issued against a development-mode server.init-server
Initializes the MCPJungle server for enterprise use. Run this once, from your local machine, after the server has started in enterprise mode.
init-server creates the first admin user, generates the admin access token, and saves both the server URL and token to ~/.mcpjungle.conf. After this command, your CLI is authenticated as admin and all subsequent commands work without explicit credentials.
Example
login
Authenticates the CLI with an MCPJungle server and persists the credentials to ~/.mcpjungle.conf.
login to store the token locally. After logging in, the user can run CLI commands without passing the token manually.
Example
create mcp-client
Creates an authenticated MCP client that can connect to the MCPJungle MCP proxy. The client receives a bearer token it must include in the Authorization header of every request.
Flags
Comma-separated list of MCP server names this client is allowed to access. Use
"*" to grant access to all servers. Defaults to empty (no access).Optional description of the client.
Custom access token for the client. If not provided, MCPJungle generates a random token and prints it to stdout — copy it immediately as it is not stored in recoverable form.
Path to a JSON configuration file. When provided, all other flags are ignored.
Client config file format
Use a configuration file to manage client definitions in version control. Theaccess_token_ref field loads the token from an environment variable or file at creation time, avoiding hard-coded secrets.
claude-client.json
claude-client.json
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Unique client name. |
description | string | No | Human-readable description. |
allowed_servers | array | No | List of server names the client can access. Use ["*"] for all servers. |
access_token | string | No | Hard-coded access token. Not recommended in production. |
access_token_ref.env | string | No | Environment variable name that holds the access token. |
access_token_ref.file | string | No | Path to a file containing the access token. |
When using a config file, you must supply a custom access token via
access_token or access_token_ref. MCPJungle does not auto-generate tokens from a config file.Examples
Create a client with auto-generated token:list mcp-clients
Lists all MCP clients registered in the gateway, including their names, descriptions, and allowed server lists.
delete mcp-client
Deletes an MCP client and immediately revokes its access token. Any requests using the deleted client’s token will be rejected.
Example
update mcp-client
Updates the access token of an existing MCP client. Use this to rotate a client’s credentials.
Flags
The new access token for the client.
Example
create user
Creates a standard user account. Users can list and view MCP servers and tools, check tool usage, and invoke tools. They cannot manage servers, clients, or other users.
login command they should run:
Flags
Custom access token for the user. If not provided, a random token is generated and printed to stdout.
Path to a JSON configuration file. When provided, all other flags are ignored.
User config file format
alice.json
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Username (unique). |
access_token | string | No | Hard-coded access token. Not recommended in production. |
access_token_ref.env | string | No | Environment variable name that holds the access token. |
access_token_ref.file | string | No | Path to a file containing the access token. |
When using a config file, you must supply a custom access token via
access_token or access_token_ref.Examples
Create a user with auto-generated token:list users
Lists all users in the gateway. Admin users are shown with an [ADMIN] label.
delete user
Deletes a user and immediately revokes their access token.
Example
update user
Updates the access token of an existing user. Use this to rotate credentials.
Flags
The new access token for the user.
Example
Enterprise setup workflow
The following steps show the complete flow for setting up an enterprise MCPJungle instance from scratch.Initialize the server (one-time)
From your local machine, run Your
init-server to create the admin account and save credentials:~/.mcpjungle.conf is now populated with the admin token.Create MCP clients for your agents
http://your-server:8080/mcp with the token in the Authorization: Bearer <token> header.