@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/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.
|
|
4
|
+
"version": "1.43.0",
|
|
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.
|
|
15
|
+
"@salesforce/agents": "^1.9.0",
|
|
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.
|
|
254
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.
|
|
263
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.43.0.crt",
|
|
264
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.43.0.sig"
|
|
255
265
|
}
|
|
256
266
|
}
|
|
@@ -14,11 +14,17 @@
|
|
|
14
14
|
"fileName": {
|
|
15
15
|
"type": "string"
|
|
16
16
|
},
|
|
17
|
+
"fileNames": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
17
23
|
"libraryId": {
|
|
18
24
|
"type": "string"
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
|
-
"required": ["success", "fileName", "libraryId"],
|
|
27
|
+
"required": ["success", "fileName", "fileNames", "libraryId"],
|
|
22
28
|
"additionalProperties": false
|
|
23
29
|
}
|
|
24
30
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/McpServerCreateOutput",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"McpServerCreateOutput": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"server": {
|
|
9
|
+
"$ref": "#/definitions/McpServerOutput"
|
|
10
|
+
},
|
|
11
|
+
"assets": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"$ref": "#/definitions/McpFetchedAsset"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"server",
|
|
20
|
+
"assets"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
"McpServerOutput": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"name": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"label": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"description": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"type": {
|
|
40
|
+
"$ref": "#/definitions/McpServerType"
|
|
41
|
+
},
|
|
42
|
+
"status": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"serverUrl": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"authorization": {
|
|
49
|
+
"$ref": "#/definitions/McpServerAuthorizationOutput"
|
|
50
|
+
},
|
|
51
|
+
"createdById": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"createdDate": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"lastModifiedById": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"lastModifiedDate": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"id",
|
|
66
|
+
"name",
|
|
67
|
+
"type",
|
|
68
|
+
"status"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
"McpServerType": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"const": "EXTERNAL"
|
|
75
|
+
},
|
|
76
|
+
"McpServerAuthorizationOutput": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"authType": {
|
|
80
|
+
"$ref": "#/definitions/McpAuthType"
|
|
81
|
+
},
|
|
82
|
+
"identityProvider": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"scope": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"authType"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
},
|
|
94
|
+
"McpAuthType": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"enum": [
|
|
97
|
+
"OAUTH",
|
|
98
|
+
"NO_AUTH"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"McpFetchedAsset": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"properties": {
|
|
104
|
+
"id": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"name": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"label": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"description": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"kind": {
|
|
117
|
+
"$ref": "#/definitions/McpAssetKind"
|
|
118
|
+
},
|
|
119
|
+
"active": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"availableAsAgentAction": {
|
|
123
|
+
"type": "boolean"
|
|
124
|
+
},
|
|
125
|
+
"status": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": [
|
|
130
|
+
"name",
|
|
131
|
+
"kind"
|
|
132
|
+
],
|
|
133
|
+
"additionalProperties": false
|
|
134
|
+
},
|
|
135
|
+
"McpAssetKind": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"enum": [
|
|
138
|
+
"MCP_TOOL",
|
|
139
|
+
"MCP_PROMPT",
|
|
140
|
+
"MCP_RESOURCE"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/ApiCatalogMcpServerDeleteResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"ApiCatalogMcpServerDeleteResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"deleted": {
|
|
12
|
+
"type": "boolean"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"id",
|
|
17
|
+
"deleted"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/ApiCatalogMcpServerFetchResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"ApiCatalogMcpServerFetchResult": {
|
|
6
|
+
"$ref": "#/definitions/McpServerFetchOutput"
|
|
7
|
+
},
|
|
8
|
+
"McpServerFetchOutput": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"assets": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"$ref": "#/definitions/McpFetchedAsset"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"assets"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
23
|
+
"McpFetchedAsset": {
|
|
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
|
+
"status": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"name",
|
|
53
|
+
"kind"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
},
|
|
57
|
+
"McpAssetKind": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"MCP_TOOL",
|
|
61
|
+
"MCP_PROMPT",
|
|
62
|
+
"MCP_RESOURCE"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/ApiCatalogMcpServerGetResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"ApiCatalogMcpServerGetResult": {
|
|
6
|
+
"$ref": "#/definitions/McpServerOutput"
|
|
7
|
+
},
|
|
8
|
+
"McpServerOutput": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"name": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"label": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"description": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"type": {
|
|
24
|
+
"$ref": "#/definitions/McpServerType"
|
|
25
|
+
},
|
|
26
|
+
"status": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"serverUrl": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"authorization": {
|
|
33
|
+
"$ref": "#/definitions/McpServerAuthorizationOutput"
|
|
34
|
+
},
|
|
35
|
+
"createdById": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"createdDate": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"lastModifiedById": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"lastModifiedDate": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"id",
|
|
50
|
+
"name",
|
|
51
|
+
"type",
|
|
52
|
+
"status"
|
|
53
|
+
],
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
},
|
|
56
|
+
"McpServerType": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "EXTERNAL"
|
|
59
|
+
},
|
|
60
|
+
"McpServerAuthorizationOutput": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"authType": {
|
|
64
|
+
"$ref": "#/definitions/McpAuthType"
|
|
65
|
+
},
|
|
66
|
+
"identityProvider": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"scope": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"authType"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
},
|
|
78
|
+
"McpAuthType": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": [
|
|
81
|
+
"OAUTH",
|
|
82
|
+
"NO_AUTH"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/ApiCatalogMcpServerListResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"ApiCatalogMcpServerListResult": {
|
|
6
|
+
"$ref": "#/definitions/McpServerCollection"
|
|
7
|
+
},
|
|
8
|
+
"McpServerCollection": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"mcpServers": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"$ref": "#/definitions/McpServerOutput"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"mcpServers"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
23
|
+
"McpServerOutput": {
|
|
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
|
+
"type": {
|
|
39
|
+
"$ref": "#/definitions/McpServerType"
|
|
40
|
+
},
|
|
41
|
+
"status": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"serverUrl": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"authorization": {
|
|
48
|
+
"$ref": "#/definitions/McpServerAuthorizationOutput"
|
|
49
|
+
},
|
|
50
|
+
"createdById": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"createdDate": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"lastModifiedById": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"lastModifiedDate": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"id",
|
|
65
|
+
"name",
|
|
66
|
+
"type",
|
|
67
|
+
"status"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
},
|
|
71
|
+
"McpServerType": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "EXTERNAL"
|
|
74
|
+
},
|
|
75
|
+
"McpServerAuthorizationOutput": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"authType": {
|
|
79
|
+
"$ref": "#/definitions/McpAuthType"
|
|
80
|
+
},
|
|
81
|
+
"identityProvider": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"scope": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"authType"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
},
|
|
93
|
+
"McpAuthType": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"OAUTH",
|
|
97
|
+
"NO_AUTH"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/ApiCatalogMcpServerUpdateResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"ApiCatalogMcpServerUpdateResult": {
|
|
6
|
+
"$ref": "#/definitions/McpServerOutput"
|
|
7
|
+
},
|
|
8
|
+
"McpServerOutput": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"name": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"label": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"description": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"type": {
|
|
24
|
+
"$ref": "#/definitions/McpServerType"
|
|
25
|
+
},
|
|
26
|
+
"status": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"serverUrl": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"authorization": {
|
|
33
|
+
"$ref": "#/definitions/McpServerAuthorizationOutput"
|
|
34
|
+
},
|
|
35
|
+
"createdById": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"createdDate": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"lastModifiedById": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"lastModifiedDate": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"id",
|
|
50
|
+
"name",
|
|
51
|
+
"type",
|
|
52
|
+
"status"
|
|
53
|
+
],
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
},
|
|
56
|
+
"McpServerType": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "EXTERNAL"
|
|
59
|
+
},
|
|
60
|
+
"McpServerAuthorizationOutput": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"authType": {
|
|
64
|
+
"$ref": "#/definitions/McpAuthType"
|
|
65
|
+
},
|
|
66
|
+
"identityProvider": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"scope": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"authType"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
},
|
|
78
|
+
"McpAuthType": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": [
|
|
81
|
+
"OAUTH",
|
|
82
|
+
"NO_AUTH"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|