@salesforce/plugin-agent 1.42.1 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +476 -63
- package/lib/commands/agent/generate/test-spec.d.ts +9 -0
- package/lib/commands/agent/generate/test-spec.js +194 -11
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/lib/commands/agent/mcp/asset/list.d.ts +16 -0
- package/lib/commands/agent/mcp/asset/list.js +68 -0
- package/lib/commands/agent/mcp/asset/list.js.map +1 -0
- package/lib/commands/agent/mcp/asset/replace.d.ts +18 -0
- package/lib/commands/agent/mcp/asset/replace.js +95 -0
- package/lib/commands/agent/mcp/asset/replace.js.map +1 -0
- package/lib/commands/agent/mcp/create.d.ts +24 -0
- package/lib/commands/agent/mcp/create.js +112 -0
- package/lib/commands/agent/mcp/create.js.map +1 -0
- package/lib/commands/agent/mcp/delete.d.ts +19 -0
- package/lib/commands/agent/mcp/delete.js +65 -0
- package/lib/commands/agent/mcp/delete.js.map +1 -0
- package/lib/commands/agent/mcp/fetch.d.ts +16 -0
- package/lib/commands/agent/mcp/fetch.js +68 -0
- package/lib/commands/agent/mcp/fetch.js.map +1 -0
- package/lib/commands/agent/mcp/get.d.ts +16 -0
- package/lib/commands/agent/mcp/get.js +58 -0
- package/lib/commands/agent/mcp/get.js.map +1 -0
- package/lib/commands/agent/mcp/list.d.ts +18 -0
- package/lib/commands/agent/mcp/list.js +73 -0
- package/lib/commands/agent/mcp/list.js.map +1 -0
- package/lib/commands/agent/mcp/update.d.ts +24 -0
- package/lib/commands/agent/mcp/update.js +115 -0
- package/lib/commands/agent/mcp/update.js.map +1 -0
- package/lib/commands/agent/preview/start.d.ts +1 -0
- package/lib/commands/agent/preview/start.js +4 -1
- package/lib/commands/agent/preview/start.js.map +1 -1
- package/lib/commands/agent/preview.d.ts +1 -0
- package/lib/commands/agent/preview.js +4 -0
- package/lib/commands/agent/preview.js.map +1 -1
- package/lib/components/agent-preview-react.d.ts +2 -1
- package/lib/components/agent-preview-react.js +3 -3
- package/lib/components/agent-preview-react.js.map +1 -1
- package/lib/flags.d.ts +12 -1
- package/lib/flags.js +31 -0
- package/lib/flags.js.map +1 -1
- package/messages/agent.generate.test-spec.md +33 -5
- package/messages/agent.mcp.asset.list.md +25 -0
- package/messages/agent.mcp.asset.replace.md +49 -0
- package/messages/agent.mcp.create.md +61 -0
- package/messages/agent.mcp.delete.md +37 -0
- package/messages/agent.mcp.fetch.md +25 -0
- package/messages/agent.mcp.get.md +25 -0
- package/messages/agent.mcp.list.md +33 -0
- package/messages/agent.mcp.update.md +65 -0
- package/messages/shared.md +16 -0
- package/oclif.manifest.json +1750 -880
- package/package.json +14 -4
- package/schemas/agent-mcp-asset-list.json +65 -0
- package/schemas/agent-mcp-asset-replace.json +65 -0
- package/schemas/agent-mcp-create.json +144 -0
- package/schemas/agent-mcp-delete.json +22 -0
- package/schemas/agent-mcp-fetch.json +66 -0
- package/schemas/agent-mcp-get.json +86 -0
- package/schemas/agent-mcp-list.json +101 -0
- package/schemas/agent-mcp-update.json +86 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Get a single MCP server registered in the API Catalog.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Retrieves the details of an MCP (Model Context Protocol) server by its identifier, including its name, label, type, status, and server URL.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Get an MCP server by id in the default target org:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg --mcp-server-id 0Mx000000000001
|
|
14
|
+
|
|
15
|
+
- Get an MCP server and output as JSON:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg --mcp-server-id 0Mx000000000001 --json
|
|
18
|
+
|
|
19
|
+
# flags.mcp-server-id.summary
|
|
20
|
+
|
|
21
|
+
The identifier of the MCP server to retrieve.
|
|
22
|
+
|
|
23
|
+
# error.failed
|
|
24
|
+
|
|
25
|
+
Failed to get MCP server: %s
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
List the MCP servers registered in the API Catalog.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Returns the Model Context Protocol (MCP) servers registered in the API Catalog, optionally filtered by label, type, or status. Use this to discover which MCP servers are available and inspect their server URLs and current status.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- List all MCP servers in the default target org:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg
|
|
14
|
+
|
|
15
|
+
- List external MCP servers filtered by status and output as JSON:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg --type EXTERNAL --status ACTIVE --json
|
|
18
|
+
|
|
19
|
+
# flags.label.summary
|
|
20
|
+
|
|
21
|
+
Filter the MCP servers by label.
|
|
22
|
+
|
|
23
|
+
# flags.type.summary
|
|
24
|
+
|
|
25
|
+
Filter the MCP servers by type.
|
|
26
|
+
|
|
27
|
+
# flags.status.summary
|
|
28
|
+
|
|
29
|
+
Filter the MCP servers by connection status. Only ACTIVE and DISCONNECTED are supported as filters.
|
|
30
|
+
|
|
31
|
+
# error.failed
|
|
32
|
+
|
|
33
|
+
Failed to list MCP servers: %s
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Update an MCP server registered in the API Catalog.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Update the label and description of an MCP server in the default target org:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --mcp-server-id 0XSxx0000000001 --label "Orders MCP" --description "Order tooling" --target-org myOrg
|
|
14
|
+
|
|
15
|
+
- Update the server URL and switch the authorization to OAuth, piping the client secret from stdin and outputting as JSON:
|
|
16
|
+
|
|
17
|
+
cat secret.txt | <%= config.bin %> <%= command.id %> --mcp-server-id 0XSxx0000000001 --server-url https://mcp.example.com --auth-type OAUTH --identity-provider MyIdp --client-id abc --client-secret - --scope "read write" --target-org myOrg --json
|
|
18
|
+
|
|
19
|
+
# flags.mcp-server-id.summary
|
|
20
|
+
|
|
21
|
+
ID of the MCP server to update.
|
|
22
|
+
|
|
23
|
+
# flags.label.summary
|
|
24
|
+
|
|
25
|
+
New display label for the MCP server.
|
|
26
|
+
|
|
27
|
+
# flags.description.summary
|
|
28
|
+
|
|
29
|
+
New description for the MCP server.
|
|
30
|
+
|
|
31
|
+
# flags.server-url.summary
|
|
32
|
+
|
|
33
|
+
New endpoint URL of the MCP server.
|
|
34
|
+
|
|
35
|
+
# flags.auth-type.summary
|
|
36
|
+
|
|
37
|
+
Authorization type to apply to the MCP server (OAUTH or NO_AUTH).
|
|
38
|
+
|
|
39
|
+
# flags.identity-provider.summary
|
|
40
|
+
|
|
41
|
+
Identity provider name for OAuth authorization (required when --auth-type is OAUTH).
|
|
42
|
+
|
|
43
|
+
# flags.client-id.summary
|
|
44
|
+
|
|
45
|
+
OAuth client ID (required when --auth-type is OAUTH).
|
|
46
|
+
|
|
47
|
+
# flags.client-secret.summary
|
|
48
|
+
|
|
49
|
+
OAuth client secret (required when --auth-type is OAUTH). Pass "-" to read it from stdin (piped) and keep it out of shell history.
|
|
50
|
+
|
|
51
|
+
# flags.scope.summary
|
|
52
|
+
|
|
53
|
+
OAuth scope (required when --auth-type is OAUTH).
|
|
54
|
+
|
|
55
|
+
# error.failed
|
|
56
|
+
|
|
57
|
+
Failed to update MCP server: %s
|
|
58
|
+
|
|
59
|
+
# error.noFields
|
|
60
|
+
|
|
61
|
+
No fields to update. Provide at least one of --label, --description, --server-url, or --auth-type.
|
|
62
|
+
|
|
63
|
+
# error.missingOauthFields
|
|
64
|
+
|
|
65
|
+
OAuth authorization requires --identity-provider, --client-id, --client-secret, and --scope.
|
package/messages/shared.md
CHANGED
|
@@ -28,6 +28,22 @@ Explicitly specify which test runner to use (agentforce-studio or testing-center
|
|
|
28
28
|
|
|
29
29
|
By default, the command automatically detects which test runner to use based on the test definition metadata type in your org. Use this flag to explicitly specify the runner type. 'agentforce-studio' uses AiTestingDefinition metadata. 'testing-center' uses AiEvaluationDefinition metadata.
|
|
30
30
|
|
|
31
|
+
# flags.context-variables.summary
|
|
32
|
+
|
|
33
|
+
Session variables for the agent preview session, in the form Name=Value.
|
|
34
|
+
|
|
35
|
+
# flags.context-variables.description
|
|
36
|
+
|
|
37
|
+
Sets variables on the agent preview session, mirroring what the in-org Agentforce Builder UI does when you override variables before sending a message. Specify this flag multiple times or use comma-separated values. Two namespaces are supported, distinguished by the name shape. Names pass through to the runtime verbatim — the CLI doesn't transform them.
|
|
38
|
+
|
|
39
|
+
Linked context variables use the "$Context." prefix. These map to externally-provided fields that the runtime resolves (declared in the bundle's globalConfiguration.contextVariables) and are read by live actions and topic-routing expressions via $Context.Name. Example: $Context.MyLinkedVar=some-value.
|
|
40
|
+
|
|
41
|
+
State variables use the bare developerName, no prefix. These seed mutable agent state declared in agentVersion.stateVariables. Example: MyStateVar=some-value.
|
|
42
|
+
|
|
43
|
+
Both namespaces can be mixed in one value. Example: --context-variables '$Context.MyLinkedVar=foo,MyStateVar=bar'.
|
|
44
|
+
|
|
45
|
+
Tips: (1) Quote the whole value in single quotes so $Context isn't shell-expanded. (2) Names are sent verbatim — a bare name is treated as a state variable, not a linked context variable, so live actions that bind via $Context.Name will see null. (3) Type defaults to Text.
|
|
46
|
+
|
|
31
47
|
# error.invalidAgentType
|
|
32
48
|
|
|
33
49
|
agentType must be either "customer" or "internal". Found: [%s]
|