Skip to main content
The CLI connects to a Studio MCP endpoint and uses managed tool grants to prepare transfers. Configure managed MCP connections on the host, then create a credential with access to the required workspace and tools.

Set the endpoint and token

Set the complete endpoint, including its configured path. The following URL is illustrative. Use the URL supplied by your Studio installation.
Supply FLEX_STUDIO_TOKEN through your shell or CI secret store. The CLI reads it from the environment for each process. The endpoint must use HTTPS. HTTP is accepted for localhost, loopback and .test development hosts.

Grant tools for the intended workflow

A resumable import also reads upload policy. A client that must work with either session or ordinary uploads needs the tools for both paths. Include folder resolution when local files or manifest records contain destination folders.

Verify the credential

An empty search page can be a valid response. A permission error requires checking the tool grant, workspace allowlist and the credential owner’s current workspace permissions. The CLI requires the explicit --workspace on remote operations. Use the workspace public ULID from Studio. The CLI follows the server’s prepared upload and download paths on the same origin. For a provider redirect during a download, it forwards the managed token only if the destination remains on the Studio origin.