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.
Note
Description for agent mcp create
Registers an external Model Context Protocol (MCP) server with the API Catalog and discovers its assets (tools, prompts, and resources). Provide the server URL and, when the server requires it, OAuth authorization details. When the authorization type is OAUTH you must supply the identity provider, client ID, client secret, and scope.
Flags
Flag Name (Long)
Flag Name (Short)
Description
‑‑api‑version
N/A
Type: Value
Override the api version used for api requests made by this command
‑‑auth‑type
N/A
Type: Value Valid Values:OAUTH, NO_AUTH Default value:NO_AUTH
Authorization type to use when connecting to the MCP server.
‑‑client‑id
N/A
Type: Value
OAuth client ID. Required when auth-type is OAUTH.
‑‑client‑secret
N/A
Type: Value
OAuth client secret. Required when auth-type is OAUTH. Pass ”-” to read it from stdin (piped) and keep it out of shell history.
‑‑description
N/A
Type: Value
Description of the MCP server.
‑‑flags‑dir
N/A
Type: Value
Import flag values from a directory.
‑‑identity‑provider
N/A
Type: Value
Identity provider to use for OAuth authorization. Required when auth-type is OAUTH.
‑‑json
N/A
Type: Boolean
Format output as json.
‑‑label
N/A
Type: Value
Human-readable label for the MCP server.
‑‑name
‑n
Type: Value Required
Unique name of the MCP server.
‑‑scope
N/A
Type: Value
OAuth scope to request. Required when auth-type is OAUTH.
‑‑server‑url
N/A
Type: Value Required
URL of the external MCP server.
‑‑target‑org
‑o
Type: Value Required
Username or alias of the target org. Not required if the target-org configuration variable is already set.