@salesforce/plugin-agent 1.42.0 → 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 +495 -73
- package/lib/commands/agent/adl/file/add.d.ts +1 -1
- package/lib/commands/agent/adl/file/add.js +9 -5
- package/lib/commands/agent/adl/file/add.js.map +1 -1
- package/lib/commands/agent/adl/file/list.js +14 -1
- package/lib/commands/agent/adl/file/list.js.map +1 -1
- package/lib/commands/agent/adl/get.js +16 -1
- package/lib/commands/agent/adl/get.js.map +1 -1
- package/lib/commands/agent/adl/list.d.ts +1 -0
- package/lib/commands/agent/adl/list.js +7 -1
- package/lib/commands/agent/adl/list.js.map +1 -1
- package/lib/commands/agent/adl/update.d.ts +1 -0
- package/lib/commands/agent/adl/update.js +12 -0
- package/lib/commands/agent/adl/update.js.map +1 -1
- package/lib/commands/agent/adl/upload.d.ts +1 -1
- package/lib/commands/agent/adl/upload.js +11 -4
- package/lib/commands/agent/adl/upload.js.map +1 -1
- package/lib/commands/agent/generate/test-spec.d.ts +9 -0
- package/lib/commands/agent/generate/test-spec.js +195 -12
- 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.adl.file.add.md +7 -3
- package/messages/agent.adl.list.md +4 -0
- package/messages/agent.adl.update.md +4 -0
- 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 +1971 -1081
- package/package.json +14 -4
- package/schemas/agent-adl-file-add.json +7 -1
- 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
package/lib/flags.js
CHANGED
|
@@ -44,6 +44,37 @@ export const testRunnerFlag = Flags.custom({
|
|
|
44
44
|
summary: messages.getMessage('flags.test-runner.summary'),
|
|
45
45
|
description: messages.getMessage('flags.test-runner.description'),
|
|
46
46
|
})();
|
|
47
|
+
export const contextVariablesFlag = Flags.string({
|
|
48
|
+
multiple: true,
|
|
49
|
+
delimiter: ',',
|
|
50
|
+
summary: messages.getMessage('flags.context-variables.summary'),
|
|
51
|
+
description: messages.getMessage('flags.context-variables.description'),
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Parses raw "Name=Value" entries from --context-variables into ContextVariable
|
|
55
|
+
* objects for the SDK. Type defaults to "Text" — the only empirically-observed
|
|
56
|
+
* variant on the wire today.
|
|
57
|
+
*
|
|
58
|
+
* Names pass through verbatim. The runtime distinguishes two namespaces by name
|
|
59
|
+
* shape: "$Context.<Name>" for linked context variables, bare "<developerName>"
|
|
60
|
+
* for mutable state variables. The CLI does not transform either.
|
|
61
|
+
*/
|
|
62
|
+
export function parseContextVariables(raw) {
|
|
63
|
+
if (!raw || raw.length === 0)
|
|
64
|
+
return [];
|
|
65
|
+
return raw.map((entry) => {
|
|
66
|
+
const eq = entry.indexOf('=');
|
|
67
|
+
if (eq === -1) {
|
|
68
|
+
throw new SfError(`Invalid --context-variables: ${entry}. Expected Name=Value.`);
|
|
69
|
+
}
|
|
70
|
+
const name = entry.slice(0, eq).trim();
|
|
71
|
+
const value = entry.slice(eq + 1);
|
|
72
|
+
if (!name) {
|
|
73
|
+
throw new SfError(`Invalid --context-variables: ${entry}. Name cannot be empty.`);
|
|
74
|
+
}
|
|
75
|
+
return { name, type: 'Text', value };
|
|
76
|
+
});
|
|
77
|
+
}
|
|
47
78
|
function validateInput(input, validate) {
|
|
48
79
|
const result = validate(input);
|
|
49
80
|
if (typeof result === 'string')
|
package/lib/flags.js.map
CHANGED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AAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,UAAsB,EAAE,SAAiB,EAAmB,EAAE;IACjG,MAAM,CAAC,GAAG,yCAAyC,SAAS,GAAG,CAAC;IAChE,OAAO,CAAC,MAAM,UAAU,CAAC,iBAAiB,CAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -12,15 +12,19 @@ Constraints: at least 1 file required, no duplicate file names in a batch, maxim
|
|
|
12
12
|
|
|
13
13
|
- Add a file to an existing library:
|
|
14
14
|
|
|
15
|
-
<%= config.bin %> <%= command.id %>
|
|
15
|
+
<%= config.bin %> <%= command.id %> -i 1JDSG000007IbWX4A0 --path ./docs/new-guide.pdf --target-org myOrg
|
|
16
|
+
|
|
17
|
+
- Add multiple files:
|
|
18
|
+
|
|
19
|
+
<%= config.bin %> <%= command.id %> -i 1JDSG000007IbWX4A0 --path ./docs/guide.pdf --path ./docs/faq.txt --target-org myOrg
|
|
16
20
|
|
|
17
21
|
# flags.library-id.summary
|
|
18
22
|
|
|
19
23
|
Agentforce Data Library ID (18-char Salesforce ID with prefix 1JD).
|
|
20
24
|
|
|
21
|
-
# flags.
|
|
25
|
+
# flags.path.summary
|
|
22
26
|
|
|
23
|
-
Path to
|
|
27
|
+
Path to file(s) to add. Specify multiple times for batch upload.
|
|
24
28
|
|
|
25
29
|
# error.addFailed
|
|
26
30
|
|
|
@@ -16,6 +16,10 @@ Returns all data libraries in the target org, including their source type, statu
|
|
|
16
16
|
|
|
17
17
|
<%= config.bin %> <%= command.id %> --target-org myOrg --json
|
|
18
18
|
|
|
19
|
+
# flags.source-type.summary
|
|
20
|
+
|
|
21
|
+
Filter by source type: sfdrive, knowledge, or retriever.
|
|
22
|
+
|
|
19
23
|
# error.listFailed
|
|
20
24
|
|
|
21
25
|
Failed to list data libraries: %s
|
|
@@ -44,6 +44,10 @@ Comma-separated list of content fields for KNOWLEDGE libraries (triggers re-inde
|
|
|
44
44
|
|
|
45
45
|
Restrict to public Knowledge articles only (KNOWLEDGE libraries, triggers re-indexing).
|
|
46
46
|
|
|
47
|
+
# flags.retriever-id.summary
|
|
48
|
+
|
|
49
|
+
Swap the retriever for a RETRIEVER library (must be an active Custom Retriever ID).
|
|
50
|
+
|
|
47
51
|
# error.updateFailed
|
|
48
52
|
|
|
49
53
|
Failed to update data library: %s
|
|
@@ -17,13 +17,13 @@ To generate a specific agent test case, this command prompts you for this inform
|
|
|
17
17
|
|
|
18
18
|
You can manually add contextVariables to test cases in the generated YAML file to inject contextual data (such as CaseId or RoutableId) into agent sessions. This is useful for testing agent behavior with different contextual information.
|
|
19
19
|
|
|
20
|
-
When your test spec is ready, you then run the "agent test create" command to actually create the test in your org and synchronize the metadata with your DX project. The metadata type for an agent test is AiEvaluationDefinition.
|
|
20
|
+
When your test spec is ready, you then run the "agent test create" command to actually create the test in your org and synchronize the metadata with your DX project. The metadata type for an agent test is `AiEvaluationDefinition` (legacy testing-center) or `AiTestingDefinition` (Agentforce Studio / NGT), selected via --test-runner.
|
|
21
21
|
|
|
22
|
-
If you have an existing AiEvaluationDefinition metadata XML file in your DX project, you can generate its equivalent YAML test spec file with the --from-definition flag.
|
|
22
|
+
If you have an existing AiEvaluationDefinition or AiTestingDefinition metadata XML file in your DX project, you can generate its equivalent YAML test spec file with the --from-definition flag. The runner is inferred from the file extension; pass --test-runner to override.
|
|
23
23
|
|
|
24
24
|
# flags.from-definition.summary
|
|
25
25
|
|
|
26
|
-
Filepath to
|
|
26
|
+
Filepath to an AiEvaluationDefinition or AiTestingDefinition metadata XML file in your DX project that you want to convert to a test spec YAML file.
|
|
27
27
|
|
|
28
28
|
# flags.force-overwrite.summary
|
|
29
29
|
|
|
@@ -31,7 +31,15 @@ Don't prompt for confirmation when overwriting an existing test spec YAML file.
|
|
|
31
31
|
|
|
32
32
|
# flags.output-file.summary
|
|
33
33
|
|
|
34
|
-
Name of the generated test spec YAML file. Default value is "specs/<AGENT_API_NAME>-testSpec.yaml".
|
|
34
|
+
Name of the generated test spec YAML file. Default value is "specs/<AGENT_API_NAME>-testSpec.yaml" (legacy) or "specs/<AGENT_API_NAME>-ngtTestSpec.yaml" (Agentforce Studio).
|
|
35
|
+
|
|
36
|
+
# flags.test-runner.summary
|
|
37
|
+
|
|
38
|
+
Explicitly specify which test runner to use (agentforce-studio or testing-center).
|
|
39
|
+
|
|
40
|
+
# flags.test-runner.description
|
|
41
|
+
|
|
42
|
+
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.
|
|
35
43
|
|
|
36
44
|
# examples
|
|
37
45
|
|
|
@@ -39,22 +47,42 @@ Name of the generated test spec YAML file. Default value is "specs/<AGENT_API_NA
|
|
|
39
47
|
|
|
40
48
|
<%= config.bin %> <%= command.id %>
|
|
41
49
|
|
|
50
|
+
- Generate an Agentforce Studio (NGT) test spec YAML file interactively:
|
|
51
|
+
|
|
52
|
+
<%= config.bin %> <%= command.id %> --test-runner agentforce-studio
|
|
53
|
+
|
|
42
54
|
- Generate an agent test spec YAML file and specify a name for the new file; if the file exists, overwrite it without confirmation:
|
|
43
55
|
|
|
44
56
|
<%= config.bin %> <%= command.id %> --output-file specs/Resort_Manager-new-version-testSpec.yaml --force-overwrite
|
|
45
57
|
|
|
46
58
|
- Generate an agent test spec YAML file from an existing AiEvaluationDefinition metadata XML file in your DX project:
|
|
47
59
|
|
|
48
|
-
<%= config.bin %> <%= command.id %> --from-definition force-app
|
|
60
|
+
<%= config.bin %> <%= command.id %> --from-definition force-app/main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
61
|
+
|
|
62
|
+
- Generate an Agentforce Studio (NGT) test spec YAML file from an existing AiTestingDefinition metadata XML file:
|
|
63
|
+
|
|
64
|
+
<%= config.bin %> <%= command.id %> --from-definition force-app/main/default/aiTestingDefinitions/Returns_Checkout_Tests.aiTestingDefinition-meta.xml
|
|
49
65
|
|
|
50
66
|
# info.cancel
|
|
51
67
|
|
|
52
68
|
Operation canceled.
|
|
53
69
|
|
|
70
|
+
# warning.NoConversationHistoryForTaskResolution
|
|
71
|
+
|
|
72
|
+
Test case #%s uses the 'task_resolution' scorer, which requires `conversationHistory` on at least one input. Add conversationHistory by hand to the YAML before running 'agent test create', or accept the boilerplate prompt.
|
|
73
|
+
|
|
54
74
|
# error.InvalidAiEvaluationDefinition
|
|
55
75
|
|
|
56
76
|
File must be an AiEvaluationDefinition metadata XML file.
|
|
57
77
|
|
|
78
|
+
# error.UnknownDefinitionExtension
|
|
79
|
+
|
|
80
|
+
File must be an AiEvaluationDefinition or AiTestingDefinition metadata XML file (ends with `.aiEvaluationDefinition-meta.xml` or `.aiTestingDefinition-meta.xml`). Found: %s
|
|
81
|
+
|
|
82
|
+
# error.RunnerMismatch
|
|
83
|
+
|
|
84
|
+
--test-runner=%s contradicts the metadata file extension, which implies %s. Drop --test-runner, or pick the matching value.
|
|
85
|
+
|
|
58
86
|
# error.NoAgentsFound
|
|
59
87
|
|
|
60
88
|
No published agents ('GenAiPlannerBundle', 'GenAiPlugin', 'Bot') found in %s.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
List the assets (tools, prompts, and resources) for an MCP server in the catalog.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Returns the assets discovered for the specified MCP server, including each asset's kind (MCP_TOOL, MCP_PROMPT, or MCP_RESOURCE), whether it is active, and whether it is available as an agent action.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- List the assets for an MCP server in the default target org:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg --mcp-server-id 0XSxx0000000001
|
|
14
|
+
|
|
15
|
+
- List the assets for an MCP server and output as JSON:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg --mcp-server-id 0XSxx0000000001 --json
|
|
18
|
+
|
|
19
|
+
# flags.mcp-server-id.summary
|
|
20
|
+
|
|
21
|
+
The ID of the MCP server whose assets you want to list.
|
|
22
|
+
|
|
23
|
+
# error.failed
|
|
24
|
+
|
|
25
|
+
Failed to list MCP server assets: %s
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Replace the asset set of an MCP server in the API Catalog.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Replaces the full set of assets (tools, prompts, resources) for an MCP server with the asset items you supply. Provide the assets either inline with `--assets` (a JSON string, or `-` to read from stdin) or from a file with `--assets-file`. The JSON must be either an array of asset items or an object of the form `{ "assets": [...] }`. Each asset item may include `id`, `name`, `label`, `description`, `active`, and `kind`. This is a full replacement: existing assets not present in the supplied set are removed, so provide the complete desired asset set (read the current set first with `agent mcp asset list` or `agent mcp fetch`).
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Replace the assets inline with a JSON string:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --mcp-server-id 0XSxx0000000001 --assets '{"assets":[{"name":"McpTool__add","active":true}]}' --target-org myOrg
|
|
14
|
+
|
|
15
|
+
- Replace the assets from a JSON file:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --mcp-server-id 0XSxx0000000001 --assets-file ./assets.json --target-org myOrg
|
|
18
|
+
|
|
19
|
+
- Pipe the assets from stdin:
|
|
20
|
+
|
|
21
|
+
cat assets.json | <%= config.bin %> <%= command.id %> --mcp-server-id 0XSxx0000000001 --assets - --target-org myOrg
|
|
22
|
+
|
|
23
|
+
# flags.mcp-server-id.summary
|
|
24
|
+
|
|
25
|
+
ID of the MCP server whose assets you want to replace.
|
|
26
|
+
|
|
27
|
+
# flags.assets.summary
|
|
28
|
+
|
|
29
|
+
The desired asset allowlist as a JSON string (or "-" to read from stdin). Mutually exclusive with --assets-file.
|
|
30
|
+
|
|
31
|
+
# flags.assets-file.summary
|
|
32
|
+
|
|
33
|
+
Path to a JSON file containing the desired asset allowlist. Mutually exclusive with --assets.
|
|
34
|
+
|
|
35
|
+
# error.failed
|
|
36
|
+
|
|
37
|
+
Failed to replace MCP server assets: %s
|
|
38
|
+
|
|
39
|
+
# error.noInput
|
|
40
|
+
|
|
41
|
+
Provide the assets either inline with --assets or from a file with --assets-file.
|
|
42
|
+
|
|
43
|
+
# error.invalidJson
|
|
44
|
+
|
|
45
|
+
The assets input does not contain valid JSON.
|
|
46
|
+
|
|
47
|
+
# error.invalidShape
|
|
48
|
+
|
|
49
|
+
The assets input must be a JSON array of asset items or an object with an "assets" array.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Create an MCP server in the API Catalog.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Create an MCP server with no authentication:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --name myServer --server-url https://mcp.example.com --target-org myOrg
|
|
14
|
+
|
|
15
|
+
- Create an MCP server that uses OAuth authentication, piping the client secret from stdin to keep it out of shell history:
|
|
16
|
+
|
|
17
|
+
cat secret.txt | <%= config.bin %> <%= command.id %> --name myServer --server-url https://mcp.example.com --auth-type OAUTH --identity-provider myIdp --client-id abc123 --client-secret - --scope "read write" --target-org myOrg
|
|
18
|
+
|
|
19
|
+
# flags.name.summary
|
|
20
|
+
|
|
21
|
+
Unique name of the MCP server.
|
|
22
|
+
|
|
23
|
+
# flags.label.summary
|
|
24
|
+
|
|
25
|
+
Human-readable label for the MCP server.
|
|
26
|
+
|
|
27
|
+
# flags.description.summary
|
|
28
|
+
|
|
29
|
+
Description of the MCP server.
|
|
30
|
+
|
|
31
|
+
# flags.server-url.summary
|
|
32
|
+
|
|
33
|
+
URL of the external MCP server.
|
|
34
|
+
|
|
35
|
+
# flags.auth-type.summary
|
|
36
|
+
|
|
37
|
+
Authorization type to use when connecting to the MCP server.
|
|
38
|
+
|
|
39
|
+
# flags.identity-provider.summary
|
|
40
|
+
|
|
41
|
+
Identity provider to use 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 to request. Required when auth-type is OAUTH.
|
|
54
|
+
|
|
55
|
+
# error.missingOauthFields
|
|
56
|
+
|
|
57
|
+
When auth-type is OAUTH you must provide --identity-provider, --client-id, --client-secret, and --scope.
|
|
58
|
+
|
|
59
|
+
# error.failed
|
|
60
|
+
|
|
61
|
+
Failed to create MCP server: %s
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Delete an MCP server from the API Catalog.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Permanently removes an MCP (Model Context Protocol) server registration from the API Catalog, identified by its ID. By default you are prompted to confirm the deletion; pass --no-prompt to skip the confirmation (for example in scripts and CI).
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Delete an MCP server, confirming interactively:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --mcp-server-id 0XSxx0000000001 --target-org myOrg
|
|
14
|
+
|
|
15
|
+
- Delete an MCP server without a confirmation prompt:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --mcp-server-id 0XSxx0000000001 --target-org myOrg --no-prompt
|
|
18
|
+
|
|
19
|
+
# flags.mcp-server-id.summary
|
|
20
|
+
|
|
21
|
+
ID of the MCP server to delete.
|
|
22
|
+
|
|
23
|
+
# flags.no-prompt.summary
|
|
24
|
+
|
|
25
|
+
Skip the confirmation prompt and delete the MCP server immediately.
|
|
26
|
+
|
|
27
|
+
# confirm.delete
|
|
28
|
+
|
|
29
|
+
Are you sure you want to delete the MCP server %s? This action cannot be undone.
|
|
30
|
+
|
|
31
|
+
# error.aborted
|
|
32
|
+
|
|
33
|
+
Deletion aborted: the operation was not confirmed.
|
|
34
|
+
|
|
35
|
+
# error.failed
|
|
36
|
+
|
|
37
|
+
Failed to delete MCP server: %s
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Fetch the live assets (tools, prompts, resources) advertised by an MCP server.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Performs a live fetch against the configured MCP server identified by its ID, returning the assets (MCP tools, prompts, and resources) it currently advertises along with their status and activation state. Use this to refresh the view of what an MCP server exposes before activating its assets as agent actions.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Fetch the assets advertised by an MCP server in the default target org:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg --mcp-server-id 0XSxx0000000001
|
|
14
|
+
|
|
15
|
+
- Fetch MCP server assets and output as JSON:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --target-org myOrg --mcp-server-id 0XSxx0000000001 --json
|
|
18
|
+
|
|
19
|
+
# flags.mcp-server-id.summary
|
|
20
|
+
|
|
21
|
+
ID of the MCP server to fetch assets from.
|
|
22
|
+
|
|
23
|
+
# error.failed
|
|
24
|
+
|
|
25
|
+
Failed to fetch MCP server assets: %s
|
|
@@ -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]
|