Skip to main content
Install an MCP CLI

Authorizations

Authorization
string
header
required

The server's token (MIRAGE_AUTH_TOKEN) or a JWT. A daemon in the default local mode with no token accepts requests without one.

Path Parameters

workspace_id
string
required

The workspace's id.

name
string
required

Body

application/json

One clis: entry: install a named CLI with its own config.

The section key is the installed head word. Exactly one handler source: cli names a registered spec tree; script references a program file whose content is embedded at load (the docker build-context model). runtime optionally pins the world runtime entry that runs the script; unset picks the first entry speaking the script's language. config validates through the spec's config_model at install time (fail loud). A CLI never takes a mode and never shares a mount's credentials: a binary has no mode, the credential does.

cli
string | null
script
string | null
runtime
string | null
config
Config · object

Response

OK

{key}
string