@salesforce/plugin-agent 1.42.1 → 1.44.4

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.
Files changed (115) hide show
  1. package/README.md +513 -68
  2. package/lib/adlUtils.d.ts +2 -0
  3. package/lib/adlUtils.js +31 -0
  4. package/lib/adlUtils.js.map +1 -0
  5. package/lib/commands/agent/adl/create.d.ts +6 -1
  6. package/lib/commands/agent/adl/create.js +83 -19
  7. package/lib/commands/agent/adl/create.js.map +1 -1
  8. package/lib/commands/agent/adl/delete.d.ts +0 -1
  9. package/lib/commands/agent/adl/delete.js +3 -2
  10. package/lib/commands/agent/adl/delete.js.map +1 -1
  11. package/lib/commands/agent/adl/file/add.d.ts +0 -1
  12. package/lib/commands/agent/adl/file/add.js +3 -2
  13. package/lib/commands/agent/adl/file/add.js.map +1 -1
  14. package/lib/commands/agent/adl/file/delete.d.ts +0 -1
  15. package/lib/commands/agent/adl/file/delete.js +4 -3
  16. package/lib/commands/agent/adl/file/delete.js.map +1 -1
  17. package/lib/commands/agent/adl/file/list.d.ts +5 -5
  18. package/lib/commands/agent/adl/file/list.js +31 -7
  19. package/lib/commands/agent/adl/file/list.js.map +1 -1
  20. package/lib/commands/agent/adl/get.d.ts +0 -1
  21. package/lib/commands/agent/adl/get.js +15 -3
  22. package/lib/commands/agent/adl/get.js.map +1 -1
  23. package/lib/commands/agent/adl/list.d.ts +0 -1
  24. package/lib/commands/agent/adl/list.js +3 -2
  25. package/lib/commands/agent/adl/list.js.map +1 -1
  26. package/lib/commands/agent/adl/status.d.ts +1 -1
  27. package/lib/commands/agent/adl/status.js +21 -4
  28. package/lib/commands/agent/adl/status.js.map +1 -1
  29. package/lib/commands/agent/adl/update.d.ts +1 -1
  30. package/lib/commands/agent/adl/update.js +18 -5
  31. package/lib/commands/agent/adl/update.js.map +1 -1
  32. package/lib/commands/agent/adl/upload.d.ts +0 -1
  33. package/lib/commands/agent/adl/upload.js +3 -2
  34. package/lib/commands/agent/adl/upload.js.map +1 -1
  35. package/lib/commands/agent/generate/test-spec.d.ts +9 -0
  36. package/lib/commands/agent/generate/test-spec.js +194 -11
  37. package/lib/commands/agent/generate/test-spec.js.map +1 -1
  38. package/lib/commands/agent/mcp/asset/list.d.ts +16 -0
  39. package/lib/commands/agent/mcp/asset/list.js +68 -0
  40. package/lib/commands/agent/mcp/asset/list.js.map +1 -0
  41. package/lib/commands/agent/mcp/asset/replace.d.ts +18 -0
  42. package/lib/commands/agent/mcp/asset/replace.js +95 -0
  43. package/lib/commands/agent/mcp/asset/replace.js.map +1 -0
  44. package/lib/commands/agent/mcp/create.d.ts +24 -0
  45. package/lib/commands/agent/mcp/create.js +112 -0
  46. package/lib/commands/agent/mcp/create.js.map +1 -0
  47. package/lib/commands/agent/mcp/delete.d.ts +19 -0
  48. package/lib/commands/agent/mcp/delete.js +65 -0
  49. package/lib/commands/agent/mcp/delete.js.map +1 -0
  50. package/lib/commands/agent/mcp/fetch.d.ts +16 -0
  51. package/lib/commands/agent/mcp/fetch.js +68 -0
  52. package/lib/commands/agent/mcp/fetch.js.map +1 -0
  53. package/lib/commands/agent/mcp/get.d.ts +16 -0
  54. package/lib/commands/agent/mcp/get.js +58 -0
  55. package/lib/commands/agent/mcp/get.js.map +1 -0
  56. package/lib/commands/agent/mcp/list.d.ts +18 -0
  57. package/lib/commands/agent/mcp/list.js +73 -0
  58. package/lib/commands/agent/mcp/list.js.map +1 -0
  59. package/lib/commands/agent/mcp/update.d.ts +24 -0
  60. package/lib/commands/agent/mcp/update.js +115 -0
  61. package/lib/commands/agent/mcp/update.js.map +1 -0
  62. package/lib/commands/agent/preview/start.d.ts +1 -0
  63. package/lib/commands/agent/preview/start.js +4 -1
  64. package/lib/commands/agent/preview/start.js.map +1 -1
  65. package/lib/commands/agent/preview.d.ts +1 -0
  66. package/lib/commands/agent/preview.js +4 -0
  67. package/lib/commands/agent/preview.js.map +1 -1
  68. package/lib/components/agent-preview-react.d.ts +2 -1
  69. package/lib/components/agent-preview-react.js +3 -3
  70. package/lib/components/agent-preview-react.js.map +1 -1
  71. package/lib/flags.d.ts +12 -1
  72. package/lib/flags.js +31 -0
  73. package/lib/flags.js.map +1 -1
  74. package/messages/agent.adl.create.md +22 -0
  75. package/messages/agent.adl.file.add.md +2 -0
  76. package/messages/agent.adl.file.delete.md +4 -0
  77. package/messages/agent.adl.file.list.md +12 -0
  78. package/messages/agent.adl.status.md +5 -1
  79. package/messages/agent.adl.update.md +4 -0
  80. package/messages/agent.adl.upload.md +2 -0
  81. package/messages/agent.generate.test-spec.md +33 -5
  82. package/messages/agent.mcp.asset.list.md +25 -0
  83. package/messages/agent.mcp.asset.replace.md +49 -0
  84. package/messages/agent.mcp.create.md +61 -0
  85. package/messages/agent.mcp.delete.md +37 -0
  86. package/messages/agent.mcp.fetch.md +25 -0
  87. package/messages/agent.mcp.get.md +25 -0
  88. package/messages/agent.mcp.list.md +33 -0
  89. package/messages/agent.mcp.update.md +65 -0
  90. package/messages/shared.md +16 -0
  91. package/oclif.manifest.json +1774 -842
  92. package/package.json +14 -4
  93. package/schemas/agent-adl-create.json +63 -3
  94. package/schemas/agent-adl-delete.json +5 -2
  95. package/schemas/agent-adl-file-add.json +7 -2
  96. package/schemas/agent-adl-file-delete.json +5 -2
  97. package/schemas/agent-adl-file-list.json +26 -3
  98. package/schemas/agent-adl-get.json +63 -3
  99. package/schemas/agent-adl-list.json +55 -3
  100. package/schemas/agent-adl-status.json +44 -4
  101. package/schemas/agent-adl-update.json +63 -3
  102. package/schemas/agent-adl-upload.json +5 -2
  103. package/schemas/agent-mcp-asset-list.json +65 -0
  104. package/schemas/agent-mcp-asset-replace.json +65 -0
  105. package/schemas/agent-mcp-create.json +144 -0
  106. package/schemas/agent-mcp-delete.json +22 -0
  107. package/schemas/agent-mcp-fetch.json +66 -0
  108. package/schemas/agent-mcp-get.json +86 -0
  109. package/schemas/agent-mcp-list.json +101 -0
  110. package/schemas/agent-mcp-update.json +86 -0
  111. package/schemas/agent-preview-end.json +8 -3
  112. package/schemas/agent-publish-authoring__bundle.json +8 -3
  113. package/schemas/agent-trace-delete.json +7 -2
  114. package/schemas/agent-trace-list.json +9 -2
  115. package/schemas/agent-trace-read.json +131 -21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
3
  "description": "Commands to interact with Salesforce agents",
4
- "version": "1.42.1",
4
+ "version": "1.44.4",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "enableO11y": true,
@@ -12,7 +12,7 @@
12
12
  "@inquirer/prompts": "^7.10.1",
13
13
  "@oclif/core": "^4",
14
14
  "@oclif/multi-stage-output": "^0.8.36",
15
- "@salesforce/agents": "^1.8.1",
15
+ "@salesforce/agents": "^1.10.2",
16
16
  "@salesforce/core": "^8.28.3",
17
17
  "@salesforce/kit": "^3.2.6",
18
18
  "@salesforce/sf-plugins-core": "^12.2.6",
@@ -104,6 +104,16 @@
104
104
  "external": true
105
105
  }
106
106
  }
107
+ },
108
+ "mcp": {
109
+ "description": "Commands to manage MCP server registrations in the API Catalog.",
110
+ "external": true,
111
+ "subtopics": {
112
+ "asset": {
113
+ "description": "Commands to manage the asset allowlist of an MCP server.",
114
+ "external": true
115
+ }
116
+ }
107
117
  }
108
118
  }
109
119
  }
@@ -250,7 +260,7 @@
250
260
  "exports": "./lib/index.js",
251
261
  "type": "module",
252
262
  "sfdx": {
253
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.42.1.crt",
254
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.42.1.sig"
263
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.44.4.crt",
264
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.44.4.sig"
255
265
  }
256
266
  }
@@ -35,6 +35,15 @@
35
35
  "dataSpaceScopeId": {
36
36
  "type": "string"
37
37
  },
38
+ "retriever": {
39
+ "$ref": "#/definitions/RetrieverDetail"
40
+ },
41
+ "retrieverAction": {
42
+ "$ref": "#/definitions/RetrieverActionDetail"
43
+ },
44
+ "totalFileCount": {
45
+ "type": "number"
46
+ },
38
47
  "groundingSource": {
39
48
  "type": "object",
40
49
  "properties": {
@@ -51,7 +60,50 @@
51
60
  "additionalProperties": {}
52
61
  }
53
62
  },
54
- "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
63
+ "required": [
64
+ "libraryId",
65
+ "masterLabel",
66
+ "developerName",
67
+ "sourceType"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "RetrieverDetail": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "label": {
78
+ "type": "string"
79
+ },
80
+ "apiName": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [
85
+ "id",
86
+ "label"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "RetrieverActionDetail": {
91
+ "type": "object",
92
+ "properties": {
93
+ "id": {
94
+ "type": "string"
95
+ },
96
+ "label": {
97
+ "type": "string"
98
+ },
99
+ "apiName": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "id",
105
+ "label"
106
+ ],
55
107
  "additionalProperties": false
56
108
  },
57
109
  "GroundingFileRef": {
@@ -74,10 +126,18 @@
74
126
  },
75
127
  "createdBy": {
76
128
  "type": "string"
129
+ },
130
+ "status": {
131
+ "type": "string"
77
132
  }
78
133
  },
79
- "required": ["fileId", "fileName", "filePath", "fileSize"],
134
+ "required": [
135
+ "fileId",
136
+ "fileName",
137
+ "filePath",
138
+ "fileSize"
139
+ ],
80
140
  "additionalProperties": false
81
141
  }
82
142
  }
83
- }
143
+ }
@@ -12,8 +12,11 @@
12
12
  "type": "string"
13
13
  }
14
14
  },
15
- "required": ["success", "libraryId"],
15
+ "required": [
16
+ "success",
17
+ "libraryId"
18
+ ],
16
19
  "additionalProperties": false
17
20
  }
18
21
  }
19
- }
22
+ }
@@ -24,8 +24,13 @@
24
24
  "type": "string"
25
25
  }
26
26
  },
27
- "required": ["success", "fileName", "fileNames", "libraryId"],
27
+ "required": [
28
+ "success",
29
+ "fileName",
30
+ "fileNames",
31
+ "libraryId"
32
+ ],
28
33
  "additionalProperties": false
29
34
  }
30
35
  }
31
- }
36
+ }
@@ -12,8 +12,11 @@
12
12
  "type": "string"
13
13
  }
14
14
  },
15
- "required": ["success", "fileId"],
15
+ "required": [
16
+ "success",
17
+ "fileId"
18
+ ],
16
19
  "additionalProperties": false
17
20
  }
18
21
  }
19
- }
22
+ }
@@ -3,6 +3,9 @@
3
3
  "$ref": "#/definitions/AgentAdlFileListResult",
4
4
  "definitions": {
5
5
  "AgentAdlFileListResult": {
6
+ "$ref": "#/definitions/FileListResponse"
7
+ },
8
+ "FileListResponse": {
6
9
  "type": "object",
7
10
  "properties": {
8
11
  "files": {
@@ -10,9 +13,21 @@
10
13
  "items": {
11
14
  "$ref": "#/definitions/GroundingFileRef"
12
15
  }
16
+ },
17
+ "totalSize": {
18
+ "type": "number"
19
+ },
20
+ "currentPageUrl": {
21
+ "type": "string"
22
+ },
23
+ "nextPageUrl": {
24
+ "type": "string"
13
25
  }
14
26
  },
15
- "required": ["files"],
27
+ "required": [
28
+ "files",
29
+ "totalSize"
30
+ ],
16
31
  "additionalProperties": false
17
32
  },
18
33
  "GroundingFileRef": {
@@ -35,10 +50,18 @@
35
50
  },
36
51
  "createdBy": {
37
52
  "type": "string"
53
+ },
54
+ "status": {
55
+ "type": "string"
38
56
  }
39
57
  },
40
- "required": ["fileId", "fileName", "filePath", "fileSize"],
58
+ "required": [
59
+ "fileId",
60
+ "fileName",
61
+ "filePath",
62
+ "fileSize"
63
+ ],
41
64
  "additionalProperties": false
42
65
  }
43
66
  }
44
- }
67
+ }
@@ -35,6 +35,15 @@
35
35
  "dataSpaceScopeId": {
36
36
  "type": "string"
37
37
  },
38
+ "retriever": {
39
+ "$ref": "#/definitions/RetrieverDetail"
40
+ },
41
+ "retrieverAction": {
42
+ "$ref": "#/definitions/RetrieverActionDetail"
43
+ },
44
+ "totalFileCount": {
45
+ "type": "number"
46
+ },
38
47
  "groundingSource": {
39
48
  "type": "object",
40
49
  "properties": {
@@ -51,7 +60,50 @@
51
60
  "additionalProperties": {}
52
61
  }
53
62
  },
54
- "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
63
+ "required": [
64
+ "libraryId",
65
+ "masterLabel",
66
+ "developerName",
67
+ "sourceType"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "RetrieverDetail": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "label": {
78
+ "type": "string"
79
+ },
80
+ "apiName": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [
85
+ "id",
86
+ "label"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "RetrieverActionDetail": {
91
+ "type": "object",
92
+ "properties": {
93
+ "id": {
94
+ "type": "string"
95
+ },
96
+ "label": {
97
+ "type": "string"
98
+ },
99
+ "apiName": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "id",
105
+ "label"
106
+ ],
55
107
  "additionalProperties": false
56
108
  },
57
109
  "GroundingFileRef": {
@@ -74,10 +126,18 @@
74
126
  },
75
127
  "createdBy": {
76
128
  "type": "string"
129
+ },
130
+ "status": {
131
+ "type": "string"
77
132
  }
78
133
  },
79
- "required": ["fileId", "fileName", "filePath", "fileSize"],
134
+ "required": [
135
+ "fileId",
136
+ "fileName",
137
+ "filePath",
138
+ "fileSize"
139
+ ],
80
140
  "additionalProperties": false
81
141
  }
82
142
  }
83
- }
143
+ }
@@ -12,7 +12,9 @@
12
12
  }
13
13
  }
14
14
  },
15
- "required": ["libraries"],
15
+ "required": [
16
+ "libraries"
17
+ ],
16
18
  "additionalProperties": false
17
19
  },
18
20
  "DataLibrarySummary": {
@@ -35,10 +37,60 @@
35
37
  },
36
38
  "status": {
37
39
  "type": "string"
40
+ },
41
+ "retriever": {
42
+ "$ref": "#/definitions/RetrieverDetail"
43
+ },
44
+ "retrieverAction": {
45
+ "$ref": "#/definitions/RetrieverActionDetail"
46
+ }
47
+ },
48
+ "required": [
49
+ "libraryId",
50
+ "masterLabel",
51
+ "developerName",
52
+ "sourceType",
53
+ "status"
54
+ ],
55
+ "additionalProperties": false
56
+ },
57
+ "RetrieverDetail": {
58
+ "type": "object",
59
+ "properties": {
60
+ "id": {
61
+ "type": "string"
62
+ },
63
+ "label": {
64
+ "type": "string"
65
+ },
66
+ "apiName": {
67
+ "type": "string"
68
+ }
69
+ },
70
+ "required": [
71
+ "id",
72
+ "label"
73
+ ],
74
+ "additionalProperties": false
75
+ },
76
+ "RetrieverActionDetail": {
77
+ "type": "object",
78
+ "properties": {
79
+ "id": {
80
+ "type": "string"
81
+ },
82
+ "label": {
83
+ "type": "string"
84
+ },
85
+ "apiName": {
86
+ "type": "string"
38
87
  }
39
88
  },
40
- "required": ["libraryId", "masterLabel", "developerName", "sourceType", "status"],
89
+ "required": [
90
+ "id",
91
+ "label"
92
+ ],
41
93
  "additionalProperties": false
42
94
  }
43
95
  }
44
- }
96
+ }
@@ -30,11 +30,16 @@
30
30
  "type": "number"
31
31
  }
32
32
  },
33
- "required": ["libraryId", "status"],
33
+ "required": [
34
+ "libraryId",
35
+ "status"
36
+ ],
34
37
  "additionalProperties": false
35
38
  }
36
39
  },
37
- "required": ["indexingStatus"],
40
+ "required": [
41
+ "indexingStatus"
42
+ ],
38
43
  "additionalProperties": false
39
44
  },
40
45
  "StageDetail": {
@@ -54,10 +59,45 @@
54
59
  },
55
60
  "error": {
56
61
  "type": "string"
62
+ },
63
+ "artifacts": {
64
+ "type": "array",
65
+ "items": {
66
+ "$ref": "#/definitions/StageArtifact"
67
+ }
68
+ },
69
+ "errorCode": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "required": [
74
+ "name",
75
+ "status"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "StageArtifact": {
80
+ "type": "object",
81
+ "properties": {
82
+ "id": {
83
+ "type": "string"
84
+ },
85
+ "label": {
86
+ "type": "string"
87
+ },
88
+ "apiName": {
89
+ "type": "string"
90
+ },
91
+ "assetType": {
92
+ "type": "string"
57
93
  }
58
94
  },
59
- "required": ["name", "status"],
95
+ "required": [
96
+ "id",
97
+ "label",
98
+ "assetType"
99
+ ],
60
100
  "additionalProperties": false
61
101
  }
62
102
  }
63
- }
103
+ }
@@ -35,6 +35,15 @@
35
35
  "dataSpaceScopeId": {
36
36
  "type": "string"
37
37
  },
38
+ "retriever": {
39
+ "$ref": "#/definitions/RetrieverDetail"
40
+ },
41
+ "retrieverAction": {
42
+ "$ref": "#/definitions/RetrieverActionDetail"
43
+ },
44
+ "totalFileCount": {
45
+ "type": "number"
46
+ },
38
47
  "groundingSource": {
39
48
  "type": "object",
40
49
  "properties": {
@@ -51,7 +60,50 @@
51
60
  "additionalProperties": {}
52
61
  }
53
62
  },
54
- "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
63
+ "required": [
64
+ "libraryId",
65
+ "masterLabel",
66
+ "developerName",
67
+ "sourceType"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "RetrieverDetail": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "label": {
78
+ "type": "string"
79
+ },
80
+ "apiName": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [
85
+ "id",
86
+ "label"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "RetrieverActionDetail": {
91
+ "type": "object",
92
+ "properties": {
93
+ "id": {
94
+ "type": "string"
95
+ },
96
+ "label": {
97
+ "type": "string"
98
+ },
99
+ "apiName": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "id",
105
+ "label"
106
+ ],
55
107
  "additionalProperties": false
56
108
  },
57
109
  "GroundingFileRef": {
@@ -74,10 +126,18 @@
74
126
  },
75
127
  "createdBy": {
76
128
  "type": "string"
129
+ },
130
+ "status": {
131
+ "type": "string"
77
132
  }
78
133
  },
79
- "required": ["fileId", "fileName", "filePath", "fileSize"],
134
+ "required": [
135
+ "fileId",
136
+ "fileName",
137
+ "filePath",
138
+ "fileSize"
139
+ ],
80
140
  "additionalProperties": false
81
141
  }
82
142
  }
83
- }
143
+ }
@@ -21,8 +21,11 @@
21
21
  "type": "string"
22
22
  }
23
23
  },
24
- "required": ["libraryId", "status"],
24
+ "required": [
25
+ "libraryId",
26
+ "status"
27
+ ],
25
28
  "additionalProperties": false
26
29
  }
27
30
  }
28
- }
31
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ApiCatalogMcpServerAssetListResult",
4
+ "definitions": {
5
+ "ApiCatalogMcpServerAssetListResult": {
6
+ "$ref": "#/definitions/McpServerAssetCollection"
7
+ },
8
+ "McpServerAssetCollection": {
9
+ "type": "object",
10
+ "properties": {
11
+ "assets": {
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "#/definitions/McpServerAssetOutput"
15
+ }
16
+ }
17
+ },
18
+ "required": [
19
+ "assets"
20
+ ],
21
+ "additionalProperties": false
22
+ },
23
+ "McpServerAssetOutput": {
24
+ "type": "object",
25
+ "properties": {
26
+ "id": {
27
+ "type": "string"
28
+ },
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "label": {
33
+ "type": "string"
34
+ },
35
+ "description": {
36
+ "type": "string"
37
+ },
38
+ "kind": {
39
+ "$ref": "#/definitions/McpAssetKind"
40
+ },
41
+ "active": {
42
+ "type": "boolean"
43
+ },
44
+ "availableAsAgentAction": {
45
+ "type": "boolean"
46
+ }
47
+ },
48
+ "required": [
49
+ "id",
50
+ "name",
51
+ "kind",
52
+ "active"
53
+ ],
54
+ "additionalProperties": false
55
+ },
56
+ "McpAssetKind": {
57
+ "type": "string",
58
+ "enum": [
59
+ "MCP_TOOL",
60
+ "MCP_PROMPT",
61
+ "MCP_RESOURCE"
62
+ ]
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ApiCatalogMcpServerAssetReplaceResult",
4
+ "definitions": {
5
+ "ApiCatalogMcpServerAssetReplaceResult": {
6
+ "$ref": "#/definitions/McpServerAssetCollection"
7
+ },
8
+ "McpServerAssetCollection": {
9
+ "type": "object",
10
+ "properties": {
11
+ "assets": {
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "#/definitions/McpServerAssetOutput"
15
+ }
16
+ }
17
+ },
18
+ "required": [
19
+ "assets"
20
+ ],
21
+ "additionalProperties": false
22
+ },
23
+ "McpServerAssetOutput": {
24
+ "type": "object",
25
+ "properties": {
26
+ "id": {
27
+ "type": "string"
28
+ },
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "label": {
33
+ "type": "string"
34
+ },
35
+ "description": {
36
+ "type": "string"
37
+ },
38
+ "kind": {
39
+ "$ref": "#/definitions/McpAssetKind"
40
+ },
41
+ "active": {
42
+ "type": "boolean"
43
+ },
44
+ "availableAsAgentAction": {
45
+ "type": "boolean"
46
+ }
47
+ },
48
+ "required": [
49
+ "id",
50
+ "name",
51
+ "kind",
52
+ "active"
53
+ ],
54
+ "additionalProperties": false
55
+ },
56
+ "McpAssetKind": {
57
+ "type": "string",
58
+ "enum": [
59
+ "MCP_TOOL",
60
+ "MCP_PROMPT",
61
+ "MCP_RESOURCE"
62
+ ]
63
+ }
64
+ }
65
+ }