agent mcp update (Developer Preview)

Update an MCP server registered in the API Catalog.

This command is available as a developer preview. The command isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don’t implement functionality developed with these commands or tools.

Updates an existing MCP server in the API Catalog. Only the fields you provide are changed; omitted fields are left untouched. You can update the label, description, and server URL, and replace the authorization configuration. When setting --auth-type OAUTH, you must also provide --identity-provider, --client-id, --client-secret, and --scope. When setting --auth-type NO_AUTH, no authorization credentials are required. At least one updatable field must be supplied.

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑auth‑typeN/AType: Value
Valid Values: OAUTH, NO_AUTH

Authorization type to apply to the MCP server (OAUTH or NO_AUTH).
‑‑client‑idN/AType: Value

OAuth client ID (required when –auth-type is OAUTH).
‑‑client‑secretN/AType: Value

OAuth client secret (required when –auth-type is OAUTH). Pass ”-” to read it from stdin (piped) and keep it out of shell history.
‑‑descriptionN/AType: Value

New description for the MCP server.
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑identity‑providerN/AType: Value

Identity provider name for OAuth authorization (required when –auth-type is OAUTH).
‑‑jsonN/AType: Boolean

Format output as json.
‑‑labelN/AType: Value

New display label for the MCP server.
‑‑mcp‑server‑id‑iType: Value
Required

ID of the MCP server to update.
‑‑scopeN/AType: Value

OAuth scope (required when –auth-type is OAUTH).
‑‑server‑urlN/AType: Value

New endpoint URL of the MCP server.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Update the label and description of an MCP server in the default target org:

Update the server URL and switch the authorization to OAuth, piping the client secret from stdin and outputting as JSON: