Share feedback
Answers are generated based on the documentation.

sbx mcp auth

DescriptionAuthorize MCP servers
Usagesbx mcp auth [server-name] [flags]

Description

Authorize registered remote MCP servers through the hosted MCP control plane.

Commands use the Docker Hub account from 'sbx login' as the request principal. User and tenant identity are derived by the control plane; they are not sent in the request body.

Running 'sbx mcp auth ' authorizes or reauthorizes one server. If the stored credential is expired, sbx asks the control plane to refresh it first and only falls back to interactive OAuth when refresh needs user consent.

Use 'sbx mcp auth status' to inspect hosted credential status without starting OAuth, and 'sbx mcp auth rm' to remove hosted credentials without removing local MCP server registrations.

Pass --scope (repeatable) to authorize a specific set of scopes for this run, overriding the default recorded at 'sbx mcp add' time. Scopes are validated only when the server advertises a supported set (RFC 8414 scopes_supported); each scope must then be a member or the command fails. If the server advertises no supported set, the requested scopes are accepted as given. With no --scope and no recorded default, all advertised scopes are requested.

Commands

CommandDescription
sbx mcp auth rmRemove MCP server OAuth credentials
sbx mcp auth statusShow MCP server OAuth status

Options

OptionDefaultDescription
--allApply to all registered OAuth servers
--formattextOutput format: "text" or "json"
--scopeOAuth scope to authorize for this run (repeatable; overrides the recorded default; must be advertised by the server's authorization metadata)
--verbosePrint authorization polling progress

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

sbx mcp auth status --all
sbx mcp auth status notion
sbx mcp auth rm --all
sbx mcp auth rm notion
sbx mcp auth --all
sbx mcp auth notion
sbx mcp auth notion --scope read --scope write