@workglow/util 0.0.116 → 0.0.118

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.
@@ -11,102 +11,194 @@ import type { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
11
11
  import type { McpAuthConfig } from "./McpAuthTypes";
12
12
  export declare const mcpTransportTypes: readonly ["stdio", "sse", "streamable-http"];
13
13
  export declare const mcpServerConfigSchema: {
14
- readonly auth_type: {
15
- readonly type: "string";
16
- readonly enum: readonly ["none", "bearer", "client_credentials", "private_key_jwt", "static_private_key_jwt", "authorization_code"];
17
- readonly title: "Auth Type";
18
- readonly description: "Authentication method for connecting to the MCP server";
19
- readonly default: "none";
20
- };
21
- readonly auth_token: {
22
- readonly type: "string";
23
- readonly format: "credential";
24
- readonly title: "Bearer Token";
25
- readonly description: "Static bearer token or API key (for bearer auth)";
26
- };
27
- readonly auth_client_id: {
28
- readonly type: "string";
29
- readonly title: "Client ID";
30
- readonly description: "OAuth client ID (for OAuth auth types)";
31
- };
32
- readonly auth_client_secret: {
33
- readonly type: "string";
34
- readonly format: "credential";
35
- readonly title: "Client Secret";
36
- readonly description: "OAuth client secret (for client_credentials auth)";
37
- };
38
- readonly auth_private_key: {
39
- readonly type: "string";
40
- readonly format: "credential";
41
- readonly title: "Private Key";
42
- readonly description: "PEM or JWK private key (for private_key_jwt auth)";
43
- };
44
- readonly auth_algorithm: {
45
- readonly type: "string";
46
- readonly title: "Algorithm";
47
- readonly description: "JWT signing algorithm, e.g. RS256, ES256 (for private_key_jwt auth)";
48
- };
49
- readonly auth_jwt_bearer_assertion: {
50
- readonly type: "string";
51
- readonly format: "credential";
52
- readonly title: "JWT Assertion";
53
- readonly description: "Pre-built JWT assertion (for static_private_key_jwt auth)";
54
- };
55
- readonly auth_redirect_url: {
56
- readonly type: "string";
57
- readonly format: "uri";
58
- readonly title: "Redirect URL";
59
- readonly description: "OAuth redirect URL (for authorization_code auth)";
60
- };
61
- readonly auth_scope: {
62
- readonly type: "string";
63
- readonly title: "Scope";
64
- readonly description: "OAuth scope (space-separated)";
65
- };
66
- readonly auth_client_name: {
67
- readonly type: "string";
68
- readonly title: "Client Name";
69
- readonly description: "Optional OAuth client display name";
70
- };
71
- readonly auth_jwt_lifetime_seconds: {
72
- readonly type: "number";
73
- readonly title: "JWT Lifetime";
74
- readonly description: "JWT lifetime in seconds (default: 300)";
75
- readonly minimum: 1;
76
- };
77
- readonly transport: {
78
- readonly type: "string";
79
- readonly enum: readonly ["stdio", "sse", "streamable-http"];
80
- readonly title: "Transport";
81
- readonly description: "The transport type to use for connecting to the MCP server";
82
- };
83
- readonly server_url: {
84
- readonly type: "string";
85
- readonly format: "string:uri";
86
- readonly title: "Server URL";
87
- readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
88
- };
89
- readonly command: {
90
- readonly type: "string";
91
- readonly title: "Command";
92
- readonly description: "The command to run (for stdio transport)";
93
- };
94
- readonly args: {
95
- readonly type: "array";
96
- readonly items: {
14
+ readonly properties: {
15
+ readonly auth_type: {
97
16
  readonly type: "string";
17
+ readonly enum: readonly ["none", "bearer", "client_credentials", "private_key_jwt", "static_private_key_jwt", "authorization_code"];
18
+ readonly title: "Auth Type";
19
+ readonly description: "Authentication method for connecting to the MCP server";
20
+ readonly default: "none";
98
21
  };
99
- readonly title: "Arguments";
100
- readonly description: "Command arguments (for stdio transport)";
101
- };
102
- readonly env: {
103
- readonly type: "object";
104
- readonly additionalProperties: {
22
+ readonly auth_token: {
23
+ readonly type: "string";
24
+ readonly format: "credential";
25
+ readonly title: "Bearer Token";
26
+ readonly description: "Static bearer token or API key (for bearer auth)";
27
+ };
28
+ readonly auth_client_id: {
29
+ readonly type: "string";
30
+ readonly title: "Client ID";
31
+ readonly description: "OAuth client ID (for OAuth auth types)";
32
+ };
33
+ readonly auth_client_secret: {
34
+ readonly type: "string";
35
+ readonly format: "credential";
36
+ readonly title: "Client Secret";
37
+ readonly description: "OAuth client secret (for client_credentials auth)";
38
+ };
39
+ readonly auth_private_key: {
40
+ readonly type: "string";
41
+ readonly format: "credential";
42
+ readonly title: "Private Key";
43
+ readonly description: "PEM or JWK private key (for private_key_jwt auth)";
44
+ };
45
+ readonly auth_algorithm: {
46
+ readonly type: "string";
47
+ readonly title: "Algorithm";
48
+ readonly description: "JWT signing algorithm, e.g. RS256, ES256 (for private_key_jwt auth)";
49
+ };
50
+ readonly auth_jwt_bearer_assertion: {
105
51
  readonly type: "string";
52
+ readonly format: "credential";
53
+ readonly title: "JWT Assertion";
54
+ readonly description: "Pre-built JWT assertion (for static_private_key_jwt auth)";
55
+ };
56
+ readonly auth_redirect_url: {
57
+ readonly type: "string";
58
+ readonly format: "uri";
59
+ readonly title: "Redirect URL";
60
+ readonly description: "OAuth redirect URL (for authorization_code auth)";
61
+ };
62
+ readonly auth_scope: {
63
+ readonly type: "string";
64
+ readonly title: "Scope";
65
+ readonly description: "OAuth scope (space-separated)";
66
+ };
67
+ readonly auth_client_name: {
68
+ readonly type: "string";
69
+ readonly title: "Client Name";
70
+ readonly description: "Optional OAuth client display name";
71
+ };
72
+ readonly auth_jwt_lifetime_seconds: {
73
+ readonly type: "number";
74
+ readonly title: "JWT Lifetime";
75
+ readonly description: "JWT lifetime in seconds (default: 300)";
76
+ readonly minimum: 1;
77
+ };
78
+ readonly transport: {
79
+ readonly type: "string";
80
+ readonly enum: readonly ["stdio", "sse", "streamable-http"];
81
+ readonly title: "Transport";
82
+ readonly description: "The transport type to use for connecting to the MCP server";
83
+ };
84
+ readonly server_url: {
85
+ readonly type: "string";
86
+ readonly format: "string:uri";
87
+ readonly title: "Server URL";
88
+ readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
89
+ };
90
+ readonly command: {
91
+ readonly type: "string";
92
+ readonly title: "Command";
93
+ readonly description: "The command to run (for stdio transport)";
94
+ };
95
+ readonly args: {
96
+ readonly type: "array";
97
+ readonly items: {
98
+ readonly type: "string";
99
+ };
100
+ readonly title: "Arguments";
101
+ readonly description: "Command arguments (for stdio transport)";
102
+ };
103
+ readonly env: {
104
+ readonly type: "object";
105
+ readonly additionalProperties: {
106
+ readonly type: "string";
107
+ };
108
+ readonly title: "Environment";
109
+ readonly description: "Environment variables (for stdio transport)";
106
110
  };
107
- readonly title: "Environment";
108
- readonly description: "Environment variables (for stdio transport)";
109
111
  };
112
+ readonly allOf: readonly [{
113
+ readonly if: {
114
+ readonly properties: {
115
+ readonly auth_type: {
116
+ readonly const: "bearer";
117
+ };
118
+ };
119
+ readonly required: readonly ["auth_type"];
120
+ };
121
+ readonly then: {
122
+ readonly required: readonly ["auth_token"];
123
+ readonly properties: {
124
+ readonly auth_token: true;
125
+ };
126
+ };
127
+ }, {
128
+ readonly if: {
129
+ readonly properties: {
130
+ readonly auth_type: {
131
+ readonly const: "client_credentials";
132
+ };
133
+ };
134
+ readonly required: readonly ["auth_type"];
135
+ };
136
+ readonly then: {
137
+ readonly required: readonly ["auth_client_id", "auth_client_secret"];
138
+ readonly properties: {
139
+ readonly auth_client_id: true;
140
+ readonly auth_client_secret: true;
141
+ readonly auth_client_name: true;
142
+ readonly auth_scope: true;
143
+ };
144
+ };
145
+ }, {
146
+ readonly if: {
147
+ readonly properties: {
148
+ readonly auth_type: {
149
+ readonly const: "private_key_jwt";
150
+ };
151
+ };
152
+ readonly required: readonly ["auth_type"];
153
+ };
154
+ readonly then: {
155
+ readonly required: readonly ["auth_client_id", "auth_private_key", "auth_algorithm"];
156
+ readonly properties: {
157
+ readonly auth_client_id: true;
158
+ readonly auth_private_key: true;
159
+ readonly auth_algorithm: true;
160
+ readonly auth_client_name: true;
161
+ readonly auth_jwt_lifetime_seconds: true;
162
+ readonly auth_scope: true;
163
+ };
164
+ };
165
+ }, {
166
+ readonly if: {
167
+ readonly properties: {
168
+ readonly auth_type: {
169
+ readonly const: "static_private_key_jwt";
170
+ };
171
+ };
172
+ readonly required: readonly ["auth_type"];
173
+ };
174
+ readonly then: {
175
+ readonly required: readonly ["auth_client_id", "auth_jwt_bearer_assertion"];
176
+ readonly properties: {
177
+ readonly auth_client_id: true;
178
+ readonly auth_jwt_bearer_assertion: true;
179
+ readonly auth_client_name: true;
180
+ readonly auth_scope: true;
181
+ };
182
+ };
183
+ }, {
184
+ readonly if: {
185
+ readonly properties: {
186
+ readonly auth_type: {
187
+ readonly const: "authorization_code";
188
+ };
189
+ };
190
+ readonly required: readonly ["auth_type"];
191
+ };
192
+ readonly then: {
193
+ readonly required: readonly ["auth_client_id", "auth_redirect_url"];
194
+ readonly properties: {
195
+ readonly auth_client_id: true;
196
+ readonly auth_client_secret: true;
197
+ readonly auth_redirect_url: true;
198
+ readonly auth_scope: true;
199
+ };
200
+ };
201
+ }];
110
202
  };
111
203
  export type McpTransportType = (typeof mcpTransportTypes)[number];
112
204
  export interface McpServerConfig {
@@ -1 +1 @@
1
- {"version":3,"file":"McpClientUtil.node.d.ts","sourceRoot":"","sources":["../../src/mcp/McpClientUtil.node.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAK1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAM/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,8CAA+C,CAAC;AAE9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BqB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,eAAe,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,CAuGnD;AAED,eAAO,MAAM,gBAAgB;;CAE5B,CAAC"}
1
+ {"version":3,"file":"McpClientUtil.node.d.ts","sourceRoot":"","sources":["../../src/mcp/McpClientUtil.node.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAK1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAK/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,8CAA+C,CAAC;AAE9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCxB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,eAAe,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,CAuGnD;AAED,eAAO,MAAM,gBAAgB;;CAE5B,CAAC"}
package/dist/node.js CHANGED
@@ -2579,69 +2579,136 @@ var mcpAuthTypes = [
2579
2579
  "authorization_code"
2580
2580
  ];
2581
2581
  var mcpAuthConfigSchema = {
2582
- auth_type: {
2583
- type: "string",
2584
- enum: mcpAuthTypes,
2585
- title: "Auth Type",
2586
- description: "Authentication method for connecting to the MCP server",
2587
- default: "none"
2588
- },
2589
- auth_token: {
2590
- type: "string",
2591
- format: "credential",
2592
- title: "Bearer Token",
2593
- description: "Static bearer token or API key (for bearer auth)"
2594
- },
2595
- auth_client_id: {
2596
- type: "string",
2597
- title: "Client ID",
2598
- description: "OAuth client ID (for OAuth auth types)"
2599
- },
2600
- auth_client_secret: {
2601
- type: "string",
2602
- format: "credential",
2603
- title: "Client Secret",
2604
- description: "OAuth client secret (for client_credentials auth)"
2605
- },
2606
- auth_private_key: {
2607
- type: "string",
2608
- format: "credential",
2609
- title: "Private Key",
2610
- description: "PEM or JWK private key (for private_key_jwt auth)"
2611
- },
2612
- auth_algorithm: {
2613
- type: "string",
2614
- title: "Algorithm",
2615
- description: "JWT signing algorithm, e.g. RS256, ES256 (for private_key_jwt auth)"
2616
- },
2617
- auth_jwt_bearer_assertion: {
2618
- type: "string",
2619
- format: "credential",
2620
- title: "JWT Assertion",
2621
- description: "Pre-built JWT assertion (for static_private_key_jwt auth)"
2622
- },
2623
- auth_redirect_url: {
2624
- type: "string",
2625
- format: "uri",
2626
- title: "Redirect URL",
2627
- description: "OAuth redirect URL (for authorization_code auth)"
2628
- },
2629
- auth_scope: {
2630
- type: "string",
2631
- title: "Scope",
2632
- description: "OAuth scope (space-separated)"
2633
- },
2634
- auth_client_name: {
2635
- type: "string",
2636
- title: "Client Name",
2637
- description: "Optional OAuth client display name"
2582
+ properties: {
2583
+ auth_type: {
2584
+ type: "string",
2585
+ enum: mcpAuthTypes,
2586
+ title: "Auth Type",
2587
+ description: "Authentication method for connecting to the MCP server",
2588
+ default: "none"
2589
+ },
2590
+ auth_token: {
2591
+ type: "string",
2592
+ format: "credential",
2593
+ title: "Bearer Token",
2594
+ description: "Static bearer token or API key (for bearer auth)"
2595
+ },
2596
+ auth_client_id: {
2597
+ type: "string",
2598
+ title: "Client ID",
2599
+ description: "OAuth client ID (for OAuth auth types)"
2600
+ },
2601
+ auth_client_secret: {
2602
+ type: "string",
2603
+ format: "credential",
2604
+ title: "Client Secret",
2605
+ description: "OAuth client secret (for client_credentials auth)"
2606
+ },
2607
+ auth_private_key: {
2608
+ type: "string",
2609
+ format: "credential",
2610
+ title: "Private Key",
2611
+ description: "PEM or JWK private key (for private_key_jwt auth)"
2612
+ },
2613
+ auth_algorithm: {
2614
+ type: "string",
2615
+ title: "Algorithm",
2616
+ description: "JWT signing algorithm, e.g. RS256, ES256 (for private_key_jwt auth)"
2617
+ },
2618
+ auth_jwt_bearer_assertion: {
2619
+ type: "string",
2620
+ format: "credential",
2621
+ title: "JWT Assertion",
2622
+ description: "Pre-built JWT assertion (for static_private_key_jwt auth)"
2623
+ },
2624
+ auth_redirect_url: {
2625
+ type: "string",
2626
+ format: "uri",
2627
+ title: "Redirect URL",
2628
+ description: "OAuth redirect URL (for authorization_code auth)"
2629
+ },
2630
+ auth_scope: {
2631
+ type: "string",
2632
+ title: "Scope",
2633
+ description: "OAuth scope (space-separated)"
2634
+ },
2635
+ auth_client_name: {
2636
+ type: "string",
2637
+ title: "Client Name",
2638
+ description: "Optional OAuth client display name"
2639
+ },
2640
+ auth_jwt_lifetime_seconds: {
2641
+ type: "number",
2642
+ title: "JWT Lifetime",
2643
+ description: "JWT lifetime in seconds (default: 300)",
2644
+ minimum: 1
2645
+ }
2638
2646
  },
2639
- auth_jwt_lifetime_seconds: {
2640
- type: "number",
2641
- title: "JWT Lifetime",
2642
- description: "JWT lifetime in seconds (default: 300)",
2643
- minimum: 1
2644
- }
2647
+ allOf: [
2648
+ {
2649
+ if: { properties: { auth_type: { const: "bearer" } }, required: ["auth_type"] },
2650
+ then: {
2651
+ required: ["auth_token"],
2652
+ properties: { auth_token: true }
2653
+ }
2654
+ },
2655
+ {
2656
+ if: {
2657
+ properties: { auth_type: { const: "client_credentials" } },
2658
+ required: ["auth_type"]
2659
+ },
2660
+ then: {
2661
+ required: ["auth_client_id", "auth_client_secret"],
2662
+ properties: {
2663
+ auth_client_id: true,
2664
+ auth_client_secret: true,
2665
+ auth_client_name: true,
2666
+ auth_scope: true
2667
+ }
2668
+ }
2669
+ },
2670
+ {
2671
+ if: { properties: { auth_type: { const: "private_key_jwt" } }, required: ["auth_type"] },
2672
+ then: {
2673
+ required: ["auth_client_id", "auth_private_key", "auth_algorithm"],
2674
+ properties: {
2675
+ auth_client_id: true,
2676
+ auth_private_key: true,
2677
+ auth_algorithm: true,
2678
+ auth_client_name: true,
2679
+ auth_jwt_lifetime_seconds: true,
2680
+ auth_scope: true
2681
+ }
2682
+ }
2683
+ },
2684
+ {
2685
+ if: {
2686
+ properties: { auth_type: { const: "static_private_key_jwt" } },
2687
+ required: ["auth_type"]
2688
+ },
2689
+ then: {
2690
+ required: ["auth_client_id", "auth_jwt_bearer_assertion"],
2691
+ properties: {
2692
+ auth_client_id: true,
2693
+ auth_jwt_bearer_assertion: true,
2694
+ auth_client_name: true,
2695
+ auth_scope: true
2696
+ }
2697
+ }
2698
+ },
2699
+ {
2700
+ if: { properties: { auth_type: { const: "authorization_code" } }, required: ["auth_type"] },
2701
+ then: {
2702
+ required: ["auth_client_id", "auth_redirect_url"],
2703
+ properties: {
2704
+ auth_client_id: true,
2705
+ auth_client_secret: true,
2706
+ auth_redirect_url: true,
2707
+ auth_scope: true
2708
+ }
2709
+ }
2710
+ }
2711
+ ]
2645
2712
  };
2646
2713
  function isMcpAuthType(value) {
2647
2714
  return typeof value === "string" && mcpAuthTypes.includes(value);
@@ -3152,7 +3219,7 @@ function createDefaultTelemetryProvider() {
3152
3219
  if (getEnv2("TELEMETRY")?.toLowerCase() === "console") {
3153
3220
  return new ConsoleTelemetryProvider;
3154
3221
  }
3155
- if (isTruthy2(getEnv2("DEV"))) {
3222
+ if (isTruthy2(getEnv2("DEV")) && getEnv2("NODE_ENV") !== "test" && !isTruthy2(getEnv2("VITEST")) && !isTruthy2(getEnv2("CI"))) {
3156
3223
  return new ConsoleTelemetryProvider;
3157
3224
  }
3158
3225
  return new NoopTelemetryProvider;
@@ -3192,36 +3259,39 @@ import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
3192
3259
  import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
3193
3260
  var mcpTransportTypes = ["stdio", "sse", "streamable-http"];
3194
3261
  var mcpServerConfigSchema = {
3195
- transport: {
3196
- type: "string",
3197
- enum: mcpTransportTypes,
3198
- title: "Transport",
3199
- description: "The transport type to use for connecting to the MCP server"
3200
- },
3201
- server_url: {
3202
- type: "string",
3203
- format: "string:uri",
3204
- title: "Server URL",
3205
- description: "The URL of the MCP server (for sse and streamable-http transports)"
3206
- },
3207
- command: {
3208
- type: "string",
3209
- title: "Command",
3210
- description: "The command to run (for stdio transport)"
3211
- },
3212
- args: {
3213
- type: "array",
3214
- items: { type: "string" },
3215
- title: "Arguments",
3216
- description: "Command arguments (for stdio transport)"
3217
- },
3218
- env: {
3219
- type: "object",
3220
- additionalProperties: { type: "string" },
3221
- title: "Environment",
3222
- description: "Environment variables (for stdio transport)"
3262
+ properties: {
3263
+ transport: {
3264
+ type: "string",
3265
+ enum: mcpTransportTypes,
3266
+ title: "Transport",
3267
+ description: "The transport type to use for connecting to the MCP server"
3268
+ },
3269
+ server_url: {
3270
+ type: "string",
3271
+ format: "string:uri",
3272
+ title: "Server URL",
3273
+ description: "The URL of the MCP server (for sse and streamable-http transports)"
3274
+ },
3275
+ command: {
3276
+ type: "string",
3277
+ title: "Command",
3278
+ description: "The command to run (for stdio transport)"
3279
+ },
3280
+ args: {
3281
+ type: "array",
3282
+ items: { type: "string" },
3283
+ title: "Arguments",
3284
+ description: "Command arguments (for stdio transport)"
3285
+ },
3286
+ env: {
3287
+ type: "object",
3288
+ additionalProperties: { type: "string" },
3289
+ title: "Environment",
3290
+ description: "Environment variables (for stdio transport)"
3291
+ },
3292
+ ...mcpAuthConfigSchema.properties
3223
3293
  },
3224
- ...mcpAuthConfigSchema
3294
+ allOf: mcpAuthConfigSchema.allOf
3225
3295
  };
3226
3296
  async function createMcpClient(config, signal) {
3227
3297
  let transport;
@@ -3434,4 +3504,4 @@ export {
3434
3504
  BaseError
3435
3505
  };
3436
3506
 
3437
- //# debugId=DC5A44A5E63616E064756E2164756E21
3507
+ //# debugId=6223E71938CDB4F664756E2164756E21