Connect your agent
You need a BoxLite Cloud API key and an agent with an MCP client that supports Streamable HTTP and bearer authentication.1. Make your key available
Store your API key in your agent’s private secret store or in the environment of the process that starts it. For a terminal-launched agent:2. Add the hosted server
Use your agent’s remote MCP server settings:
Have the client resolve the key from its secret store or environment when sending the header. Environment-variable syntax is client-specific:
${BOXLITE_API_KEY} is not a substitution performed by the BoxLite server.
These are connection settings, not a universal configuration file. If your agent supports only local stdio MCP servers, it cannot use this remote configuration directly. It needs Streamable HTTP support or a separately configured transport bridge.
3. Verify the connection
Reconnect or restart the client, then ask:listBoxes and call it with {}. A successful result contains a boxes array; an empty array is also a successful connection. Some agents prefix tool names, for example mcp__boxlite__listBoxes.
A server appearing in your client’s configuration does not prove it connected. Verify that tools were discovered and that the tool call succeeded. Check both protocol errors and the tool result’s isError field.
Available tools
BoxLite exposes focused tools for common box operations and discovery tools for the wider Cloud API. Read the live input schema before constructing arguments.
Tool discovery does not grant additional permissions. Calls use your credential’s permissions, and an operation listed in the API catalog may be unavailable to your account.
Run your first command
Once the read-only check succeeds, ask your agent to run a small task:- Call
createBox:
- Take the returned box ID and call
startExecution:
wait: true, a completed command returns stdout, stderr, and an exit code. A nonzero exit code means the command failed even if the MCP call itself succeeded.
- Call
stopBoxwith the samebox_id. Stopping preserves the disk; useremoveBoxonly when you intend to delete it. See box lifecycle and cost controls.
wait: false on startExecution and pass its returned execution ID as exec_id to getExecution. That tool reports status and exit code; do not assume it returns command output. Save long-running task output to a file when you need to retrieve it later.
Keep identifiers exactly as returned. For list pagination, pass next_page_token back as pageToken until no next token remains.
Discover more operations
Use the API discovery tools for capabilities such as volumes, images, checkpoints, SSH, network policy, and domains. For example, discover volume operations:list_api_endpoints. Choose the returned operation, call get_api_endpoint_schema with its exact operationId, and construct arguments from that schema. Invoke the tool named by invocationTool in the discovery response.
To inspect the server’s enabled capabilities, first request the schema for getConfig, then call read_api_endpoint:
Build MCP support into a new agent
If you are implementing the client yourself, use an MCP SDK with Streamable HTTP support:- Resolve the API key in the host process and attach the bearer header to the transport’s requests.
- Initialize the MCP connection through the SDK and discover tools with
tools/list, following any pagination. - Expose each tool’s name, description, and
inputSchemato your agent’s tool system. Keep the original server name when dispatching calls, even if your UI adds a namespace. - Send tool invocations through
tools/call. Preserve content blocks and structured results, and surface protocol errors, tool errors, and command exit codes separately. - Refresh discovery after reconnecting or receiving a tool-list change notification. Close the client when the agent shuts down.
listBoxes and the getConfig discovery sequence above as your acceptance checks. Neither needs a model inference to prove the transport and credential work.
Keep the API key in the transport layer rather than including it in model prompts or tool arguments. Operations that accept Idempotency-Key can use a client-generated UUID for safe retries of the same request. After an uncertain write result, reuse that key with the same arguments; do not blindly repeat the action with a new key.
Troubleshooting
For credential creation, expiry, and rotation, see API keys and authentication.

