@viu/emporix-sdk 2.35.0 → 2.36.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/CHANGELOG.md +70 -0
- package/README.md +22 -8
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +179 -11
- package/dist/index.d.ts +179 -11
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/orders.d.cts +29 -3
- package/dist/orders.d.ts +29 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3004,10 +3004,7 @@ type McpServerConfigRequest = McpServerConfig & {
|
|
|
3004
3004
|
type McpServerConfigResponse = McpServerConfig & {
|
|
3005
3005
|
authorizationHeaderToken?: ExpandableTokenResponse;
|
|
3006
3006
|
};
|
|
3007
|
-
|
|
3008
|
-
* An object representing customer's own implementation of the MCP server.
|
|
3009
|
-
*/
|
|
3010
|
-
type BaseMcpServer = {
|
|
3007
|
+
type BaseManagedMcpServer = {
|
|
3011
3008
|
/**
|
|
3012
3009
|
* Name of the MCP server.
|
|
3013
3010
|
*/
|
|
@@ -3018,14 +3015,160 @@ type BaseMcpServer = {
|
|
|
3018
3015
|
enabled?: boolean;
|
|
3019
3016
|
transport?: CustomMcpServerTransportType;
|
|
3020
3017
|
};
|
|
3021
|
-
|
|
3018
|
+
/**
|
|
3019
|
+
* Type of the managed MCP server resource. Possible values:
|
|
3020
|
+
* * `custom`
|
|
3021
|
+
* * `dynamic`
|
|
3022
|
+
*
|
|
3023
|
+
* **The `dynamic` value is in preview mode** - some of the features may not be fully operational yet.
|
|
3024
|
+
*/
|
|
3025
|
+
type ManagedMcpServerType = 'custom' | 'dynamic';
|
|
3026
|
+
/**
|
|
3027
|
+
* HTTP method used to invoke the Automation function.
|
|
3028
|
+
*/
|
|
3029
|
+
type McpToolInvocationMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3030
|
+
/**
|
|
3031
|
+
* Location of the tool arguments in the HTTP request. Defaults to `body` when omitted.
|
|
3032
|
+
*/
|
|
3033
|
+
type McpToolInvocationArgsLocation = 'body' | 'query';
|
|
3034
|
+
type McpToolInvocationRequest = {
|
|
3035
|
+
/**
|
|
3036
|
+
* Identifier of the Automation function to invoke when the tool is called.
|
|
3037
|
+
*/
|
|
3038
|
+
functionId: string;
|
|
3039
|
+
method: McpToolInvocationMethod;
|
|
3040
|
+
argsLocation?: McpToolInvocationArgsLocation;
|
|
3041
|
+
};
|
|
3042
|
+
type McpToolInvocationResponse = {
|
|
3043
|
+
/**
|
|
3044
|
+
* Identifier of the Automation function to invoke when the tool is called.
|
|
3045
|
+
*/
|
|
3046
|
+
functionId?: string;
|
|
3047
|
+
method?: McpToolInvocationMethod;
|
|
3048
|
+
argsLocation?: McpToolInvocationArgsLocation;
|
|
3049
|
+
};
|
|
3050
|
+
type McpToolConfigRequest = {
|
|
3051
|
+
/**
|
|
3052
|
+
* OAuth scopes required to invoke the tool.
|
|
3053
|
+
*/
|
|
3054
|
+
requiredScopes?: Array<string>;
|
|
3055
|
+
/**
|
|
3056
|
+
* JSON Schema document describing the tool input, provided as a JSON string.
|
|
3057
|
+
*/
|
|
3058
|
+
inputSchema: string;
|
|
3059
|
+
invocation: McpToolInvocationRequest;
|
|
3060
|
+
};
|
|
3061
|
+
type McpToolConfigResponse = {
|
|
3062
|
+
/**
|
|
3063
|
+
* OAuth scopes required to invoke the tool.
|
|
3064
|
+
*/
|
|
3065
|
+
requiredScopes?: Array<string>;
|
|
3066
|
+
/**
|
|
3067
|
+
* JSON Schema document describing the tool input, provided as a JSON string.
|
|
3068
|
+
*/
|
|
3069
|
+
inputSchema?: string;
|
|
3070
|
+
invocation?: McpToolInvocationResponse;
|
|
3071
|
+
};
|
|
3072
|
+
/**
|
|
3073
|
+
* Tool definition for a dynamic MCP server.
|
|
3074
|
+
*
|
|
3075
|
+
* **Dynamic MCP tools are in preview mode** - some of the features may not be fully operational yet.
|
|
3076
|
+
*/
|
|
3077
|
+
type McpToolRequest = {
|
|
3078
|
+
/**
|
|
3079
|
+
* Unique name of the tool. Must not contain whitespace characters.
|
|
3080
|
+
*/
|
|
3081
|
+
name: string;
|
|
3082
|
+
/**
|
|
3083
|
+
* Human-readable description of the tool.
|
|
3084
|
+
*/
|
|
3085
|
+
description?: string;
|
|
3086
|
+
/**
|
|
3087
|
+
* Prompt that defines when and why the agent should call this tool.
|
|
3088
|
+
*/
|
|
3089
|
+
prompt: string;
|
|
3090
|
+
/**
|
|
3091
|
+
* An indicator whether the tool is enabled.
|
|
3092
|
+
*/
|
|
3093
|
+
enabled?: boolean;
|
|
3094
|
+
config: McpToolConfigRequest;
|
|
3095
|
+
};
|
|
3096
|
+
/**
|
|
3097
|
+
* Tool definition for a dynamic MCP server.
|
|
3098
|
+
*
|
|
3099
|
+
* **Dynamic MCP tools are in preview mode** - some of the features may not be fully operational yet.
|
|
3100
|
+
*/
|
|
3101
|
+
type McpToolResponse = {
|
|
3102
|
+
/**
|
|
3103
|
+
* Unique name of the tool.
|
|
3104
|
+
*/
|
|
3105
|
+
name?: string;
|
|
3106
|
+
/**
|
|
3107
|
+
* Human-readable description of the tool.
|
|
3108
|
+
*/
|
|
3109
|
+
description?: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* Prompt that defines when and why the agent should call this tool.
|
|
3112
|
+
*/
|
|
3113
|
+
prompt?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* An indicator whether the tool is enabled.
|
|
3116
|
+
*/
|
|
3117
|
+
enabled?: boolean;
|
|
3118
|
+
config?: McpToolConfigResponse;
|
|
3119
|
+
};
|
|
3120
|
+
type CustomMcpServerRequest = BaseManagedMcpServer & {
|
|
3121
|
+
/**
|
|
3122
|
+
* For custom MCP servers it has to be set to `custom` or omitted. Defaults to `custom`.
|
|
3123
|
+
*/
|
|
3124
|
+
type?: ManagedMcpServerType;
|
|
3022
3125
|
config: McpServerConfigRequest;
|
|
3023
3126
|
metadata?: MetadataRequest;
|
|
3024
3127
|
};
|
|
3025
|
-
type
|
|
3128
|
+
type DynamicMcpServerRequest = BaseManagedMcpServer & {
|
|
3129
|
+
/**
|
|
3130
|
+
* For dynamic MCP servers it has to be set to `dynamic`.
|
|
3131
|
+
*/
|
|
3132
|
+
type: ManagedMcpServerType;
|
|
3133
|
+
/**
|
|
3134
|
+
* List of tools exposed by this MCP server.
|
|
3135
|
+
*
|
|
3136
|
+
* **The `tools` field is in preview mode** - some of the features may not be fully operational yet.
|
|
3137
|
+
*/
|
|
3138
|
+
tools: Array<McpToolRequest>;
|
|
3139
|
+
metadata?: MetadataRequest;
|
|
3140
|
+
};
|
|
3141
|
+
type McpServerRequest = CustomMcpServerRequest | DynamicMcpServerRequest;
|
|
3142
|
+
type CustomMcpServerResponse = BaseManagedMcpServer & {
|
|
3143
|
+
/**
|
|
3144
|
+
* Unique identifier of the MCP server.
|
|
3145
|
+
*/
|
|
3146
|
+
id?: string;
|
|
3147
|
+
/**
|
|
3148
|
+
* Type of the managed MCP server resource.
|
|
3149
|
+
*/
|
|
3150
|
+
type?: ManagedMcpServerType;
|
|
3026
3151
|
config?: McpServerConfigResponse;
|
|
3027
3152
|
metadata?: MetadataResponse$1;
|
|
3028
3153
|
};
|
|
3154
|
+
type DynamicMcpServerResponse = BaseManagedMcpServer & {
|
|
3155
|
+
/**
|
|
3156
|
+
* Unique identifier of the MCP server.
|
|
3157
|
+
*/
|
|
3158
|
+
id?: string;
|
|
3159
|
+
/**
|
|
3160
|
+
* For dynamic MCP servers it has to be set to `dynamic`.
|
|
3161
|
+
*/
|
|
3162
|
+
type?: ManagedMcpServerType;
|
|
3163
|
+
/**
|
|
3164
|
+
* List of tools exposed by this MCP server.
|
|
3165
|
+
*
|
|
3166
|
+
* **The `tools` field is in preview mode** - some of the features may not be fully operational yet.
|
|
3167
|
+
*/
|
|
3168
|
+
tools?: Array<McpToolResponse>;
|
|
3169
|
+
metadata?: MetadataResponse$1;
|
|
3170
|
+
};
|
|
3171
|
+
type McpServerResponse = CustomMcpServerResponse | DynamicMcpServerResponse;
|
|
3029
3172
|
type CommerceEventsResponse = {
|
|
3030
3173
|
/**
|
|
3031
3174
|
* List of events available to use by an agent with the `COMMERCE_EVENTS` trigger.
|
|
@@ -3033,9 +3176,9 @@ type CommerceEventsResponse = {
|
|
|
3033
3176
|
events?: Array<string>;
|
|
3034
3177
|
};
|
|
3035
3178
|
/**
|
|
3036
|
-
* Type of the MCP server. The `custom` type
|
|
3179
|
+
* Type of the MCP server attachment on an agent. The `custom` type references a tenant-managed MCP server with a URL. The `predefined` type references an Emporix domain MCP server. The `dynamic` type references a tenant-managed dynamic MCP server and may include an optional tool-name allow-list.
|
|
3037
3180
|
*/
|
|
3038
|
-
type McpServerType = 'custom' | 'predefined';
|
|
3181
|
+
type McpServerType = 'custom' | 'predefined' | 'dynamic';
|
|
3039
3182
|
/**
|
|
3040
3183
|
* Type of the communication between the agent and the MCP server. The `streamable_http` protocol is recommended, since the `sse` protocol is deprecated.
|
|
3041
3184
|
*/
|
|
@@ -3066,17 +3209,42 @@ type CustomAgentMcpServerRequest = BaseAgentMcpServer & {
|
|
|
3066
3209
|
id: string;
|
|
3067
3210
|
};
|
|
3068
3211
|
};
|
|
3069
|
-
type
|
|
3212
|
+
type DynamicAgentMcpServerRequest = BaseAgentMcpServer & {
|
|
3213
|
+
/**
|
|
3214
|
+
* For a dynamic MCP server attachment it has to be set to `dynamic`.
|
|
3215
|
+
*/
|
|
3216
|
+
type?: unknown;
|
|
3217
|
+
mcpServer: {
|
|
3218
|
+
/**
|
|
3219
|
+
* ID of the dynamic MCP server.
|
|
3220
|
+
*/
|
|
3221
|
+
id: string;
|
|
3222
|
+
};
|
|
3223
|
+
/**
|
|
3224
|
+
* Optional allow-list of tool names from the dynamic MCP server.
|
|
3225
|
+
*/
|
|
3226
|
+
tools?: Array<string>;
|
|
3227
|
+
};
|
|
3228
|
+
type AgentMcpServerResponse = {
|
|
3229
|
+
type: McpServerType;
|
|
3070
3230
|
mcpServer?: McpServerResponse & unknown;
|
|
3231
|
+
/**
|
|
3232
|
+
* Present for `predefined` attachments.
|
|
3233
|
+
*/
|
|
3234
|
+
domain?: 'customer' | 'extensibility' | 'order' | 'product' | 'frontend';
|
|
3235
|
+
/**
|
|
3236
|
+
* Tool-name allow-list. Present for `predefined` attachments and for `dynamic` attachments when a subset is configured. Omitted on `dynamic` means all enabled tools on the MCP server.
|
|
3237
|
+
*/
|
|
3238
|
+
tools?: Array<string>;
|
|
3071
3239
|
};
|
|
3072
3240
|
/**
|
|
3073
3241
|
* List of MCP servers which agents should have access to.
|
|
3074
3242
|
*/
|
|
3075
|
-
type AgentMcpServersRequest = Array<CustomAgentMcpServerRequest | PredefinedAgentMcpServer>;
|
|
3243
|
+
type AgentMcpServersRequest = Array<CustomAgentMcpServerRequest | DynamicAgentMcpServerRequest | PredefinedAgentMcpServer>;
|
|
3076
3244
|
/**
|
|
3077
3245
|
* List of MCP servers which agents should have access to.
|
|
3078
3246
|
*/
|
|
3079
|
-
type AgentMcpServersResponse = Array<
|
|
3247
|
+
type AgentMcpServersResponse = Array<AgentMcpServerResponse>;
|
|
3080
3248
|
type BaseLlm = {
|
|
3081
3249
|
/**
|
|
3082
3250
|
* The exact name of the model.
|
package/dist/index.d.ts
CHANGED
|
@@ -3004,10 +3004,7 @@ type McpServerConfigRequest = McpServerConfig & {
|
|
|
3004
3004
|
type McpServerConfigResponse = McpServerConfig & {
|
|
3005
3005
|
authorizationHeaderToken?: ExpandableTokenResponse;
|
|
3006
3006
|
};
|
|
3007
|
-
|
|
3008
|
-
* An object representing customer's own implementation of the MCP server.
|
|
3009
|
-
*/
|
|
3010
|
-
type BaseMcpServer = {
|
|
3007
|
+
type BaseManagedMcpServer = {
|
|
3011
3008
|
/**
|
|
3012
3009
|
* Name of the MCP server.
|
|
3013
3010
|
*/
|
|
@@ -3018,14 +3015,160 @@ type BaseMcpServer = {
|
|
|
3018
3015
|
enabled?: boolean;
|
|
3019
3016
|
transport?: CustomMcpServerTransportType;
|
|
3020
3017
|
};
|
|
3021
|
-
|
|
3018
|
+
/**
|
|
3019
|
+
* Type of the managed MCP server resource. Possible values:
|
|
3020
|
+
* * `custom`
|
|
3021
|
+
* * `dynamic`
|
|
3022
|
+
*
|
|
3023
|
+
* **The `dynamic` value is in preview mode** - some of the features may not be fully operational yet.
|
|
3024
|
+
*/
|
|
3025
|
+
type ManagedMcpServerType = 'custom' | 'dynamic';
|
|
3026
|
+
/**
|
|
3027
|
+
* HTTP method used to invoke the Automation function.
|
|
3028
|
+
*/
|
|
3029
|
+
type McpToolInvocationMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3030
|
+
/**
|
|
3031
|
+
* Location of the tool arguments in the HTTP request. Defaults to `body` when omitted.
|
|
3032
|
+
*/
|
|
3033
|
+
type McpToolInvocationArgsLocation = 'body' | 'query';
|
|
3034
|
+
type McpToolInvocationRequest = {
|
|
3035
|
+
/**
|
|
3036
|
+
* Identifier of the Automation function to invoke when the tool is called.
|
|
3037
|
+
*/
|
|
3038
|
+
functionId: string;
|
|
3039
|
+
method: McpToolInvocationMethod;
|
|
3040
|
+
argsLocation?: McpToolInvocationArgsLocation;
|
|
3041
|
+
};
|
|
3042
|
+
type McpToolInvocationResponse = {
|
|
3043
|
+
/**
|
|
3044
|
+
* Identifier of the Automation function to invoke when the tool is called.
|
|
3045
|
+
*/
|
|
3046
|
+
functionId?: string;
|
|
3047
|
+
method?: McpToolInvocationMethod;
|
|
3048
|
+
argsLocation?: McpToolInvocationArgsLocation;
|
|
3049
|
+
};
|
|
3050
|
+
type McpToolConfigRequest = {
|
|
3051
|
+
/**
|
|
3052
|
+
* OAuth scopes required to invoke the tool.
|
|
3053
|
+
*/
|
|
3054
|
+
requiredScopes?: Array<string>;
|
|
3055
|
+
/**
|
|
3056
|
+
* JSON Schema document describing the tool input, provided as a JSON string.
|
|
3057
|
+
*/
|
|
3058
|
+
inputSchema: string;
|
|
3059
|
+
invocation: McpToolInvocationRequest;
|
|
3060
|
+
};
|
|
3061
|
+
type McpToolConfigResponse = {
|
|
3062
|
+
/**
|
|
3063
|
+
* OAuth scopes required to invoke the tool.
|
|
3064
|
+
*/
|
|
3065
|
+
requiredScopes?: Array<string>;
|
|
3066
|
+
/**
|
|
3067
|
+
* JSON Schema document describing the tool input, provided as a JSON string.
|
|
3068
|
+
*/
|
|
3069
|
+
inputSchema?: string;
|
|
3070
|
+
invocation?: McpToolInvocationResponse;
|
|
3071
|
+
};
|
|
3072
|
+
/**
|
|
3073
|
+
* Tool definition for a dynamic MCP server.
|
|
3074
|
+
*
|
|
3075
|
+
* **Dynamic MCP tools are in preview mode** - some of the features may not be fully operational yet.
|
|
3076
|
+
*/
|
|
3077
|
+
type McpToolRequest = {
|
|
3078
|
+
/**
|
|
3079
|
+
* Unique name of the tool. Must not contain whitespace characters.
|
|
3080
|
+
*/
|
|
3081
|
+
name: string;
|
|
3082
|
+
/**
|
|
3083
|
+
* Human-readable description of the tool.
|
|
3084
|
+
*/
|
|
3085
|
+
description?: string;
|
|
3086
|
+
/**
|
|
3087
|
+
* Prompt that defines when and why the agent should call this tool.
|
|
3088
|
+
*/
|
|
3089
|
+
prompt: string;
|
|
3090
|
+
/**
|
|
3091
|
+
* An indicator whether the tool is enabled.
|
|
3092
|
+
*/
|
|
3093
|
+
enabled?: boolean;
|
|
3094
|
+
config: McpToolConfigRequest;
|
|
3095
|
+
};
|
|
3096
|
+
/**
|
|
3097
|
+
* Tool definition for a dynamic MCP server.
|
|
3098
|
+
*
|
|
3099
|
+
* **Dynamic MCP tools are in preview mode** - some of the features may not be fully operational yet.
|
|
3100
|
+
*/
|
|
3101
|
+
type McpToolResponse = {
|
|
3102
|
+
/**
|
|
3103
|
+
* Unique name of the tool.
|
|
3104
|
+
*/
|
|
3105
|
+
name?: string;
|
|
3106
|
+
/**
|
|
3107
|
+
* Human-readable description of the tool.
|
|
3108
|
+
*/
|
|
3109
|
+
description?: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* Prompt that defines when and why the agent should call this tool.
|
|
3112
|
+
*/
|
|
3113
|
+
prompt?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* An indicator whether the tool is enabled.
|
|
3116
|
+
*/
|
|
3117
|
+
enabled?: boolean;
|
|
3118
|
+
config?: McpToolConfigResponse;
|
|
3119
|
+
};
|
|
3120
|
+
type CustomMcpServerRequest = BaseManagedMcpServer & {
|
|
3121
|
+
/**
|
|
3122
|
+
* For custom MCP servers it has to be set to `custom` or omitted. Defaults to `custom`.
|
|
3123
|
+
*/
|
|
3124
|
+
type?: ManagedMcpServerType;
|
|
3022
3125
|
config: McpServerConfigRequest;
|
|
3023
3126
|
metadata?: MetadataRequest;
|
|
3024
3127
|
};
|
|
3025
|
-
type
|
|
3128
|
+
type DynamicMcpServerRequest = BaseManagedMcpServer & {
|
|
3129
|
+
/**
|
|
3130
|
+
* For dynamic MCP servers it has to be set to `dynamic`.
|
|
3131
|
+
*/
|
|
3132
|
+
type: ManagedMcpServerType;
|
|
3133
|
+
/**
|
|
3134
|
+
* List of tools exposed by this MCP server.
|
|
3135
|
+
*
|
|
3136
|
+
* **The `tools` field is in preview mode** - some of the features may not be fully operational yet.
|
|
3137
|
+
*/
|
|
3138
|
+
tools: Array<McpToolRequest>;
|
|
3139
|
+
metadata?: MetadataRequest;
|
|
3140
|
+
};
|
|
3141
|
+
type McpServerRequest = CustomMcpServerRequest | DynamicMcpServerRequest;
|
|
3142
|
+
type CustomMcpServerResponse = BaseManagedMcpServer & {
|
|
3143
|
+
/**
|
|
3144
|
+
* Unique identifier of the MCP server.
|
|
3145
|
+
*/
|
|
3146
|
+
id?: string;
|
|
3147
|
+
/**
|
|
3148
|
+
* Type of the managed MCP server resource.
|
|
3149
|
+
*/
|
|
3150
|
+
type?: ManagedMcpServerType;
|
|
3026
3151
|
config?: McpServerConfigResponse;
|
|
3027
3152
|
metadata?: MetadataResponse$1;
|
|
3028
3153
|
};
|
|
3154
|
+
type DynamicMcpServerResponse = BaseManagedMcpServer & {
|
|
3155
|
+
/**
|
|
3156
|
+
* Unique identifier of the MCP server.
|
|
3157
|
+
*/
|
|
3158
|
+
id?: string;
|
|
3159
|
+
/**
|
|
3160
|
+
* For dynamic MCP servers it has to be set to `dynamic`.
|
|
3161
|
+
*/
|
|
3162
|
+
type?: ManagedMcpServerType;
|
|
3163
|
+
/**
|
|
3164
|
+
* List of tools exposed by this MCP server.
|
|
3165
|
+
*
|
|
3166
|
+
* **The `tools` field is in preview mode** - some of the features may not be fully operational yet.
|
|
3167
|
+
*/
|
|
3168
|
+
tools?: Array<McpToolResponse>;
|
|
3169
|
+
metadata?: MetadataResponse$1;
|
|
3170
|
+
};
|
|
3171
|
+
type McpServerResponse = CustomMcpServerResponse | DynamicMcpServerResponse;
|
|
3029
3172
|
type CommerceEventsResponse = {
|
|
3030
3173
|
/**
|
|
3031
3174
|
* List of events available to use by an agent with the `COMMERCE_EVENTS` trigger.
|
|
@@ -3033,9 +3176,9 @@ type CommerceEventsResponse = {
|
|
|
3033
3176
|
events?: Array<string>;
|
|
3034
3177
|
};
|
|
3035
3178
|
/**
|
|
3036
|
-
* Type of the MCP server. The `custom` type
|
|
3179
|
+
* Type of the MCP server attachment on an agent. The `custom` type references a tenant-managed MCP server with a URL. The `predefined` type references an Emporix domain MCP server. The `dynamic` type references a tenant-managed dynamic MCP server and may include an optional tool-name allow-list.
|
|
3037
3180
|
*/
|
|
3038
|
-
type McpServerType = 'custom' | 'predefined';
|
|
3181
|
+
type McpServerType = 'custom' | 'predefined' | 'dynamic';
|
|
3039
3182
|
/**
|
|
3040
3183
|
* Type of the communication between the agent and the MCP server. The `streamable_http` protocol is recommended, since the `sse` protocol is deprecated.
|
|
3041
3184
|
*/
|
|
@@ -3066,17 +3209,42 @@ type CustomAgentMcpServerRequest = BaseAgentMcpServer & {
|
|
|
3066
3209
|
id: string;
|
|
3067
3210
|
};
|
|
3068
3211
|
};
|
|
3069
|
-
type
|
|
3212
|
+
type DynamicAgentMcpServerRequest = BaseAgentMcpServer & {
|
|
3213
|
+
/**
|
|
3214
|
+
* For a dynamic MCP server attachment it has to be set to `dynamic`.
|
|
3215
|
+
*/
|
|
3216
|
+
type?: unknown;
|
|
3217
|
+
mcpServer: {
|
|
3218
|
+
/**
|
|
3219
|
+
* ID of the dynamic MCP server.
|
|
3220
|
+
*/
|
|
3221
|
+
id: string;
|
|
3222
|
+
};
|
|
3223
|
+
/**
|
|
3224
|
+
* Optional allow-list of tool names from the dynamic MCP server.
|
|
3225
|
+
*/
|
|
3226
|
+
tools?: Array<string>;
|
|
3227
|
+
};
|
|
3228
|
+
type AgentMcpServerResponse = {
|
|
3229
|
+
type: McpServerType;
|
|
3070
3230
|
mcpServer?: McpServerResponse & unknown;
|
|
3231
|
+
/**
|
|
3232
|
+
* Present for `predefined` attachments.
|
|
3233
|
+
*/
|
|
3234
|
+
domain?: 'customer' | 'extensibility' | 'order' | 'product' | 'frontend';
|
|
3235
|
+
/**
|
|
3236
|
+
* Tool-name allow-list. Present for `predefined` attachments and for `dynamic` attachments when a subset is configured. Omitted on `dynamic` means all enabled tools on the MCP server.
|
|
3237
|
+
*/
|
|
3238
|
+
tools?: Array<string>;
|
|
3071
3239
|
};
|
|
3072
3240
|
/**
|
|
3073
3241
|
* List of MCP servers which agents should have access to.
|
|
3074
3242
|
*/
|
|
3075
|
-
type AgentMcpServersRequest = Array<CustomAgentMcpServerRequest | PredefinedAgentMcpServer>;
|
|
3243
|
+
type AgentMcpServersRequest = Array<CustomAgentMcpServerRequest | DynamicAgentMcpServerRequest | PredefinedAgentMcpServer>;
|
|
3076
3244
|
/**
|
|
3077
3245
|
* List of MCP servers which agents should have access to.
|
|
3078
3246
|
*/
|
|
3079
|
-
type AgentMcpServersResponse = Array<
|
|
3247
|
+
type AgentMcpServersResponse = Array<AgentMcpServerResponse>;
|
|
3080
3248
|
type BaseLlm = {
|
|
3081
3249
|
/**
|
|
3082
3250
|
* The exact name of the model.
|