@rudderhq/shared 0.5.2-canary.2 → 0.6.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.
Files changed (79) hide show
  1. package/dist/chat-transcript-provenance.d.ts +7 -0
  2. package/dist/chat-transcript-provenance.d.ts.map +1 -0
  3. package/dist/chat-transcript-provenance.js +41 -0
  4. package/dist/chat-transcript-provenance.js.map +1 -0
  5. package/dist/chat-transcript-provenance.test.d.ts +2 -0
  6. package/dist/chat-transcript-provenance.test.d.ts.map +1 -0
  7. package/dist/chat-transcript-provenance.test.js +30 -0
  8. package/dist/chat-transcript-provenance.test.js.map +1 -0
  9. package/dist/chat-transcript-visibility.d.ts +14 -0
  10. package/dist/chat-transcript-visibility.d.ts.map +1 -0
  11. package/dist/chat-transcript-visibility.js +21 -0
  12. package/dist/chat-transcript-visibility.js.map +1 -0
  13. package/dist/config-schema.d.ts +42 -42
  14. package/dist/constants.d.ts +60 -2
  15. package/dist/constants.d.ts.map +1 -1
  16. package/dist/constants.js +70 -2
  17. package/dist/constants.js.map +1 -1
  18. package/dist/index.d.ts +8 -3
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +6 -2
  21. package/dist/index.js.map +1 -1
  22. package/dist/markdown-source-boundary.d.ts +12 -0
  23. package/dist/markdown-source-boundary.d.ts.map +1 -0
  24. package/dist/markdown-source-boundary.js +201 -0
  25. package/dist/markdown-source-boundary.js.map +1 -0
  26. package/dist/types/chat.d.ts +53 -8
  27. package/dist/types/chat.d.ts.map +1 -1
  28. package/dist/types/heartbeat.d.ts +1 -0
  29. package/dist/types/heartbeat.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +2 -1
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/mcp.d.ts +146 -0
  33. package/dist/types/mcp.d.ts.map +1 -0
  34. package/dist/types/mcp.js +2 -0
  35. package/dist/types/mcp.js.map +1 -0
  36. package/dist/types/secrets.d.ts +2 -0
  37. package/dist/types/secrets.d.ts.map +1 -1
  38. package/dist/validators/adapter-skills.d.ts +8 -8
  39. package/dist/validators/agent-integration.d.ts +6 -6
  40. package/dist/validators/automation.d.ts +6 -6
  41. package/dist/validators/chat-inline-annotations.test.d.ts +2 -0
  42. package/dist/validators/chat-inline-annotations.test.d.ts.map +1 -0
  43. package/dist/validators/chat-inline-annotations.test.js +251 -0
  44. package/dist/validators/chat-inline-annotations.test.js.map +1 -0
  45. package/dist/validators/chat.d.ts +2437 -39
  46. package/dist/validators/chat.d.ts.map +1 -1
  47. package/dist/validators/chat.js +246 -3
  48. package/dist/validators/chat.js.map +1 -1
  49. package/dist/validators/cost.d.ts +4 -4
  50. package/dist/validators/custom-integration.d.ts +1 -1
  51. package/dist/validators/custom-integration.d.ts.map +1 -1
  52. package/dist/validators/finance.d.ts +4 -4
  53. package/dist/validators/index.d.ts +2 -1
  54. package/dist/validators/index.d.ts.map +1 -1
  55. package/dist/validators/index.js +2 -1
  56. package/dist/validators/index.js.map +1 -1
  57. package/dist/validators/mcp.d.ts +2780 -0
  58. package/dist/validators/mcp.d.ts.map +1 -0
  59. package/dist/validators/mcp.js +500 -0
  60. package/dist/validators/mcp.js.map +1 -0
  61. package/dist/validators/mcp.test.d.ts +2 -0
  62. package/dist/validators/mcp.test.d.ts.map +1 -0
  63. package/dist/validators/mcp.test.js +643 -0
  64. package/dist/validators/mcp.test.js.map +1 -0
  65. package/dist/validators/messenger.d.ts +2 -2
  66. package/dist/validators/messenger.test.js +13 -0
  67. package/dist/validators/messenger.test.js.map +1 -1
  68. package/dist/validators/organization-portability.d.ts +20 -20
  69. package/dist/validators/project.d.ts +6 -6
  70. package/dist/validators/secret.d.ts +3 -3
  71. package/dist/validators/secret.d.ts.map +1 -1
  72. package/dist/validators/secret.js +3 -3
  73. package/dist/validators/secret.js.map +1 -1
  74. package/dist/validators/secret.test.d.ts +2 -0
  75. package/dist/validators/secret.test.d.ts.map +1 -0
  76. package/dist/validators/secret.test.js +20 -0
  77. package/dist/validators/secret.test.js.map +1 -0
  78. package/dist/validators/work-product.d.ts +6 -6
  79. package/package.json +1 -1
@@ -0,0 +1,2780 @@
1
+ import { z } from "zod";
2
+ export declare const mcpConnectionProviderSchema: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
3
+ export declare const mcpConnectionTransportSchema: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
4
+ export declare const mcpConnectionAccessModeSchema: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
5
+ export declare const mcpConnectionStatusSchema: z.ZodEnum<["draft", "authorizing", "selecting_scope", "active", "needs_reauth", "disabled", "revoked", "error"]>;
6
+ export declare const mcpOAuthGrantStatusSchema: z.ZodEnum<["active", "needs_reauth", "revoked", "error"]>;
7
+ export declare const mcpAgentBindingStatusSchema: z.ZodEnum<["active", "disabled", "revoked"]>;
8
+ export declare const mcpStdioSafeConfigSchema: z.ZodEffects<z.ZodObject<{
9
+ command: z.ZodString;
10
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
+ cwd: z.ZodOptional<z.ZodString>;
12
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
13
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
+ }, "strict", z.ZodTypeAny, {
18
+ command: string;
19
+ args?: string[] | undefined;
20
+ cwd?: string | undefined;
21
+ staticEnv?: Record<string, string> | undefined;
22
+ forwardedEnv?: string[] | undefined;
23
+ secretEnvNames?: string[] | undefined;
24
+ toolAllowlist?: string[] | undefined;
25
+ toolDenylist?: string[] | undefined;
26
+ }, {
27
+ command: string;
28
+ args?: string[] | undefined;
29
+ cwd?: string | undefined;
30
+ staticEnv?: Record<string, string> | undefined;
31
+ forwardedEnv?: string[] | undefined;
32
+ secretEnvNames?: string[] | undefined;
33
+ toolAllowlist?: string[] | undefined;
34
+ toolDenylist?: string[] | undefined;
35
+ }>, {
36
+ command: string;
37
+ args?: string[] | undefined;
38
+ cwd?: string | undefined;
39
+ staticEnv?: Record<string, string> | undefined;
40
+ forwardedEnv?: string[] | undefined;
41
+ secretEnvNames?: string[] | undefined;
42
+ toolAllowlist?: string[] | undefined;
43
+ toolDenylist?: string[] | undefined;
44
+ }, {
45
+ command: string;
46
+ args?: string[] | undefined;
47
+ cwd?: string | undefined;
48
+ staticEnv?: Record<string, string> | undefined;
49
+ forwardedEnv?: string[] | undefined;
50
+ secretEnvNames?: string[] | undefined;
51
+ toolAllowlist?: string[] | undefined;
52
+ toolDenylist?: string[] | undefined;
53
+ }>;
54
+ export declare const mcpStreamableHttpSafeConfigSchema: z.ZodEffects<z.ZodObject<{
55
+ url: z.ZodOptional<z.ZodString>;
56
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
57
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
58
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
59
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
61
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ }, "strict", z.ZodTypeAny, {
64
+ url?: string | undefined;
65
+ toolAllowlist?: string[] | undefined;
66
+ toolDenylist?: string[] | undefined;
67
+ staticHeaders?: Record<string, string> | undefined;
68
+ headersFromEnv?: Record<string, string> | undefined;
69
+ bearerTokenEnvVar?: string | undefined;
70
+ secretHeaderNames?: string[] | undefined;
71
+ hasBearerToken?: boolean | undefined;
72
+ }, {
73
+ url?: string | undefined;
74
+ toolAllowlist?: string[] | undefined;
75
+ toolDenylist?: string[] | undefined;
76
+ staticHeaders?: Record<string, string> | undefined;
77
+ headersFromEnv?: Record<string, string> | undefined;
78
+ bearerTokenEnvVar?: string | undefined;
79
+ secretHeaderNames?: string[] | undefined;
80
+ hasBearerToken?: boolean | undefined;
81
+ }>, {
82
+ url?: string | undefined;
83
+ toolAllowlist?: string[] | undefined;
84
+ toolDenylist?: string[] | undefined;
85
+ staticHeaders?: Record<string, string> | undefined;
86
+ headersFromEnv?: Record<string, string> | undefined;
87
+ bearerTokenEnvVar?: string | undefined;
88
+ secretHeaderNames?: string[] | undefined;
89
+ hasBearerToken?: boolean | undefined;
90
+ }, {
91
+ url?: string | undefined;
92
+ toolAllowlist?: string[] | undefined;
93
+ toolDenylist?: string[] | undefined;
94
+ staticHeaders?: Record<string, string> | undefined;
95
+ headersFromEnv?: Record<string, string> | undefined;
96
+ bearerTokenEnvVar?: string | undefined;
97
+ secretHeaderNames?: string[] | undefined;
98
+ hasBearerToken?: boolean | undefined;
99
+ }>;
100
+ export declare const mcpConnectionSecretsMutationSchema: z.ZodEffects<z.ZodObject<{
101
+ env: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
102
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
103
+ bearerToken: z.ZodOptional<z.ZodString>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ env?: Record<string, string> | undefined;
106
+ headers?: Record<string, string> | undefined;
107
+ bearerToken?: string | undefined;
108
+ }, {
109
+ env?: Record<string, string> | undefined;
110
+ headers?: Record<string, string> | undefined;
111
+ bearerToken?: string | undefined;
112
+ }>, {
113
+ env?: Record<string, string> | undefined;
114
+ headers?: Record<string, string> | undefined;
115
+ bearerToken?: string | undefined;
116
+ }, {
117
+ env?: Record<string, string> | undefined;
118
+ headers?: Record<string, string> | undefined;
119
+ bearerToken?: string | undefined;
120
+ }>;
121
+ export declare const mcpLegacyManualSafeConfigSchema: z.ZodObject<{
122
+ legacyConfigRetained: z.ZodLiteral<true>;
123
+ }, "strict", z.ZodTypeAny, {
124
+ legacyConfigRetained: true;
125
+ }, {
126
+ legacyConfigRetained: true;
127
+ }>;
128
+ export declare const mcpCuratedSafeConfigSchema: z.ZodObject<{
129
+ featureGroups: z.ZodObject<{
130
+ mode: z.ZodLiteral<"provider_default">;
131
+ excluded: z.ZodArray<z.ZodString, "many">;
132
+ }, "strict", z.ZodTypeAny, {
133
+ mode: "provider_default";
134
+ excluded: string[];
135
+ }, {
136
+ mode: "provider_default";
137
+ excluded: string[];
138
+ }>;
139
+ }, "strict", z.ZodTypeAny, {
140
+ featureGroups: {
141
+ mode: "provider_default";
142
+ excluded: string[];
143
+ };
144
+ }, {
145
+ featureGroups: {
146
+ mode: "provider_default";
147
+ excluded: string[];
148
+ };
149
+ }>;
150
+ export declare const mcpConnectionSafeConfigSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
151
+ command: z.ZodString;
152
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
+ cwd: z.ZodOptional<z.ZodString>;
154
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
155
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
156
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
157
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
159
+ }, "strict", z.ZodTypeAny, {
160
+ command: string;
161
+ args?: string[] | undefined;
162
+ cwd?: string | undefined;
163
+ staticEnv?: Record<string, string> | undefined;
164
+ forwardedEnv?: string[] | undefined;
165
+ secretEnvNames?: string[] | undefined;
166
+ toolAllowlist?: string[] | undefined;
167
+ toolDenylist?: string[] | undefined;
168
+ }, {
169
+ command: string;
170
+ args?: string[] | undefined;
171
+ cwd?: string | undefined;
172
+ staticEnv?: Record<string, string> | undefined;
173
+ forwardedEnv?: string[] | undefined;
174
+ secretEnvNames?: string[] | undefined;
175
+ toolAllowlist?: string[] | undefined;
176
+ toolDenylist?: string[] | undefined;
177
+ }>, {
178
+ command: string;
179
+ args?: string[] | undefined;
180
+ cwd?: string | undefined;
181
+ staticEnv?: Record<string, string> | undefined;
182
+ forwardedEnv?: string[] | undefined;
183
+ secretEnvNames?: string[] | undefined;
184
+ toolAllowlist?: string[] | undefined;
185
+ toolDenylist?: string[] | undefined;
186
+ }, {
187
+ command: string;
188
+ args?: string[] | undefined;
189
+ cwd?: string | undefined;
190
+ staticEnv?: Record<string, string> | undefined;
191
+ forwardedEnv?: string[] | undefined;
192
+ secretEnvNames?: string[] | undefined;
193
+ toolAllowlist?: string[] | undefined;
194
+ toolDenylist?: string[] | undefined;
195
+ }>, z.ZodEffects<z.ZodObject<{
196
+ url: z.ZodOptional<z.ZodString>;
197
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
198
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
199
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
200
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
201
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
202
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
203
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
204
+ }, "strict", z.ZodTypeAny, {
205
+ url?: string | undefined;
206
+ toolAllowlist?: string[] | undefined;
207
+ toolDenylist?: string[] | undefined;
208
+ staticHeaders?: Record<string, string> | undefined;
209
+ headersFromEnv?: Record<string, string> | undefined;
210
+ bearerTokenEnvVar?: string | undefined;
211
+ secretHeaderNames?: string[] | undefined;
212
+ hasBearerToken?: boolean | undefined;
213
+ }, {
214
+ url?: string | undefined;
215
+ toolAllowlist?: string[] | undefined;
216
+ toolDenylist?: string[] | undefined;
217
+ staticHeaders?: Record<string, string> | undefined;
218
+ headersFromEnv?: Record<string, string> | undefined;
219
+ bearerTokenEnvVar?: string | undefined;
220
+ secretHeaderNames?: string[] | undefined;
221
+ hasBearerToken?: boolean | undefined;
222
+ }>, {
223
+ url?: string | undefined;
224
+ toolAllowlist?: string[] | undefined;
225
+ toolDenylist?: string[] | undefined;
226
+ staticHeaders?: Record<string, string> | undefined;
227
+ headersFromEnv?: Record<string, string> | undefined;
228
+ bearerTokenEnvVar?: string | undefined;
229
+ secretHeaderNames?: string[] | undefined;
230
+ hasBearerToken?: boolean | undefined;
231
+ }, {
232
+ url?: string | undefined;
233
+ toolAllowlist?: string[] | undefined;
234
+ toolDenylist?: string[] | undefined;
235
+ staticHeaders?: Record<string, string> | undefined;
236
+ headersFromEnv?: Record<string, string> | undefined;
237
+ bearerTokenEnvVar?: string | undefined;
238
+ secretHeaderNames?: string[] | undefined;
239
+ hasBearerToken?: boolean | undefined;
240
+ }>, z.ZodObject<{
241
+ legacyConfigRetained: z.ZodLiteral<true>;
242
+ }, "strict", z.ZodTypeAny, {
243
+ legacyConfigRetained: true;
244
+ }, {
245
+ legacyConfigRetained: true;
246
+ }>, z.ZodObject<{
247
+ featureGroups: z.ZodObject<{
248
+ mode: z.ZodLiteral<"provider_default">;
249
+ excluded: z.ZodArray<z.ZodString, "many">;
250
+ }, "strict", z.ZodTypeAny, {
251
+ mode: "provider_default";
252
+ excluded: string[];
253
+ }, {
254
+ mode: "provider_default";
255
+ excluded: string[];
256
+ }>;
257
+ }, "strict", z.ZodTypeAny, {
258
+ featureGroups: {
259
+ mode: "provider_default";
260
+ excluded: string[];
261
+ };
262
+ }, {
263
+ featureGroups: {
264
+ mode: "provider_default";
265
+ excluded: string[];
266
+ };
267
+ }>]>;
268
+ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
269
+ name: z.ZodString;
270
+ displayName: z.ZodString;
271
+ provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
272
+ transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
273
+ externalScope: z.ZodNullable<z.ZodOptional<z.ZodString>>;
274
+ accessMode: z.ZodOptional<z.ZodEnum<["provider_default", "read_only", "read_write"]>>;
275
+ safeConfig: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
276
+ command: z.ZodString;
277
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
278
+ cwd: z.ZodOptional<z.ZodString>;
279
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
280
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
281
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
283
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
284
+ }, "strict", z.ZodTypeAny, {
285
+ command: string;
286
+ args?: string[] | undefined;
287
+ cwd?: string | undefined;
288
+ staticEnv?: Record<string, string> | undefined;
289
+ forwardedEnv?: string[] | undefined;
290
+ secretEnvNames?: string[] | undefined;
291
+ toolAllowlist?: string[] | undefined;
292
+ toolDenylist?: string[] | undefined;
293
+ }, {
294
+ command: string;
295
+ args?: string[] | undefined;
296
+ cwd?: string | undefined;
297
+ staticEnv?: Record<string, string> | undefined;
298
+ forwardedEnv?: string[] | undefined;
299
+ secretEnvNames?: string[] | undefined;
300
+ toolAllowlist?: string[] | undefined;
301
+ toolDenylist?: string[] | undefined;
302
+ }>, {
303
+ command: string;
304
+ args?: string[] | undefined;
305
+ cwd?: string | undefined;
306
+ staticEnv?: Record<string, string> | undefined;
307
+ forwardedEnv?: string[] | undefined;
308
+ secretEnvNames?: string[] | undefined;
309
+ toolAllowlist?: string[] | undefined;
310
+ toolDenylist?: string[] | undefined;
311
+ }, {
312
+ command: string;
313
+ args?: string[] | undefined;
314
+ cwd?: string | undefined;
315
+ staticEnv?: Record<string, string> | undefined;
316
+ forwardedEnv?: string[] | undefined;
317
+ secretEnvNames?: string[] | undefined;
318
+ toolAllowlist?: string[] | undefined;
319
+ toolDenylist?: string[] | undefined;
320
+ }>, z.ZodEffects<z.ZodObject<{
321
+ url: z.ZodOptional<z.ZodString>;
322
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
323
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
324
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
325
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
326
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
327
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
328
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
329
+ }, "strict", z.ZodTypeAny, {
330
+ url?: string | undefined;
331
+ toolAllowlist?: string[] | undefined;
332
+ toolDenylist?: string[] | undefined;
333
+ staticHeaders?: Record<string, string> | undefined;
334
+ headersFromEnv?: Record<string, string> | undefined;
335
+ bearerTokenEnvVar?: string | undefined;
336
+ secretHeaderNames?: string[] | undefined;
337
+ hasBearerToken?: boolean | undefined;
338
+ }, {
339
+ url?: string | undefined;
340
+ toolAllowlist?: string[] | undefined;
341
+ toolDenylist?: string[] | undefined;
342
+ staticHeaders?: Record<string, string> | undefined;
343
+ headersFromEnv?: Record<string, string> | undefined;
344
+ bearerTokenEnvVar?: string | undefined;
345
+ secretHeaderNames?: string[] | undefined;
346
+ hasBearerToken?: boolean | undefined;
347
+ }>, {
348
+ url?: string | undefined;
349
+ toolAllowlist?: string[] | undefined;
350
+ toolDenylist?: string[] | undefined;
351
+ staticHeaders?: Record<string, string> | undefined;
352
+ headersFromEnv?: Record<string, string> | undefined;
353
+ bearerTokenEnvVar?: string | undefined;
354
+ secretHeaderNames?: string[] | undefined;
355
+ hasBearerToken?: boolean | undefined;
356
+ }, {
357
+ url?: string | undefined;
358
+ toolAllowlist?: string[] | undefined;
359
+ toolDenylist?: string[] | undefined;
360
+ staticHeaders?: Record<string, string> | undefined;
361
+ headersFromEnv?: Record<string, string> | undefined;
362
+ bearerTokenEnvVar?: string | undefined;
363
+ secretHeaderNames?: string[] | undefined;
364
+ hasBearerToken?: boolean | undefined;
365
+ }>, z.ZodObject<{
366
+ legacyConfigRetained: z.ZodLiteral<true>;
367
+ }, "strict", z.ZodTypeAny, {
368
+ legacyConfigRetained: true;
369
+ }, {
370
+ legacyConfigRetained: true;
371
+ }>, z.ZodObject<{
372
+ featureGroups: z.ZodObject<{
373
+ mode: z.ZodLiteral<"provider_default">;
374
+ excluded: z.ZodArray<z.ZodString, "many">;
375
+ }, "strict", z.ZodTypeAny, {
376
+ mode: "provider_default";
377
+ excluded: string[];
378
+ }, {
379
+ mode: "provider_default";
380
+ excluded: string[];
381
+ }>;
382
+ }, "strict", z.ZodTypeAny, {
383
+ featureGroups: {
384
+ mode: "provider_default";
385
+ excluded: string[];
386
+ };
387
+ }, {
388
+ featureGroups: {
389
+ mode: "provider_default";
390
+ excluded: string[];
391
+ };
392
+ }>]>>;
393
+ startupTimeoutMs: z.ZodDefault<z.ZodNumber>;
394
+ toolTimeoutMs: z.ZodDefault<z.ZodNumber>;
395
+ enabled: z.ZodDefault<z.ZodBoolean>;
396
+ required: z.ZodDefault<z.ZodBoolean>;
397
+ secrets: z.ZodOptional<z.ZodEffects<z.ZodObject<{
398
+ env: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
399
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
400
+ bearerToken: z.ZodOptional<z.ZodString>;
401
+ }, "strict", z.ZodTypeAny, {
402
+ env?: Record<string, string> | undefined;
403
+ headers?: Record<string, string> | undefined;
404
+ bearerToken?: string | undefined;
405
+ }, {
406
+ env?: Record<string, string> | undefined;
407
+ headers?: Record<string, string> | undefined;
408
+ bearerToken?: string | undefined;
409
+ }>, {
410
+ env?: Record<string, string> | undefined;
411
+ headers?: Record<string, string> | undefined;
412
+ bearerToken?: string | undefined;
413
+ }, {
414
+ env?: Record<string, string> | undefined;
415
+ headers?: Record<string, string> | undefined;
416
+ bearerToken?: string | undefined;
417
+ }>>;
418
+ }, "strict", z.ZodTypeAny, {
419
+ displayName: string;
420
+ name: string;
421
+ transport: "stdio" | "streamable_http" | "legacy_manual";
422
+ safeConfig: {
423
+ command: string;
424
+ args?: string[] | undefined;
425
+ cwd?: string | undefined;
426
+ staticEnv?: Record<string, string> | undefined;
427
+ forwardedEnv?: string[] | undefined;
428
+ secretEnvNames?: string[] | undefined;
429
+ toolAllowlist?: string[] | undefined;
430
+ toolDenylist?: string[] | undefined;
431
+ } | {
432
+ url?: string | undefined;
433
+ toolAllowlist?: string[] | undefined;
434
+ toolDenylist?: string[] | undefined;
435
+ staticHeaders?: Record<string, string> | undefined;
436
+ headersFromEnv?: Record<string, string> | undefined;
437
+ bearerTokenEnvVar?: string | undefined;
438
+ secretHeaderNames?: string[] | undefined;
439
+ hasBearerToken?: boolean | undefined;
440
+ } | {
441
+ legacyConfigRetained: true;
442
+ } | {
443
+ featureGroups: {
444
+ mode: "provider_default";
445
+ excluded: string[];
446
+ };
447
+ };
448
+ enabled: boolean;
449
+ provider: "supabase" | "linear" | "notion" | "custom";
450
+ startupTimeoutMs: number;
451
+ toolTimeoutMs: number;
452
+ required: boolean;
453
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
454
+ secrets?: {
455
+ env?: Record<string, string> | undefined;
456
+ headers?: Record<string, string> | undefined;
457
+ bearerToken?: string | undefined;
458
+ } | undefined;
459
+ externalScope?: string | null | undefined;
460
+ }, {
461
+ displayName: string;
462
+ name: string;
463
+ transport: "stdio" | "streamable_http" | "legacy_manual";
464
+ provider: "supabase" | "linear" | "notion" | "custom";
465
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
466
+ safeConfig?: {
467
+ command: string;
468
+ args?: string[] | undefined;
469
+ cwd?: string | undefined;
470
+ staticEnv?: Record<string, string> | undefined;
471
+ forwardedEnv?: string[] | undefined;
472
+ secretEnvNames?: string[] | undefined;
473
+ toolAllowlist?: string[] | undefined;
474
+ toolDenylist?: string[] | undefined;
475
+ } | {
476
+ url?: string | undefined;
477
+ toolAllowlist?: string[] | undefined;
478
+ toolDenylist?: string[] | undefined;
479
+ staticHeaders?: Record<string, string> | undefined;
480
+ headersFromEnv?: Record<string, string> | undefined;
481
+ bearerTokenEnvVar?: string | undefined;
482
+ secretHeaderNames?: string[] | undefined;
483
+ hasBearerToken?: boolean | undefined;
484
+ } | {
485
+ legacyConfigRetained: true;
486
+ } | {
487
+ featureGroups: {
488
+ mode: "provider_default";
489
+ excluded: string[];
490
+ };
491
+ } | undefined;
492
+ secrets?: {
493
+ env?: Record<string, string> | undefined;
494
+ headers?: Record<string, string> | undefined;
495
+ bearerToken?: string | undefined;
496
+ } | undefined;
497
+ enabled?: boolean | undefined;
498
+ externalScope?: string | null | undefined;
499
+ startupTimeoutMs?: number | undefined;
500
+ toolTimeoutMs?: number | undefined;
501
+ required?: boolean | undefined;
502
+ }>, {
503
+ displayName: string;
504
+ name: string;
505
+ transport: "stdio" | "streamable_http" | "legacy_manual";
506
+ safeConfig: {
507
+ command: string;
508
+ args?: string[] | undefined;
509
+ cwd?: string | undefined;
510
+ staticEnv?: Record<string, string> | undefined;
511
+ forwardedEnv?: string[] | undefined;
512
+ secretEnvNames?: string[] | undefined;
513
+ toolAllowlist?: string[] | undefined;
514
+ toolDenylist?: string[] | undefined;
515
+ } | {
516
+ url?: string | undefined;
517
+ toolAllowlist?: string[] | undefined;
518
+ toolDenylist?: string[] | undefined;
519
+ staticHeaders?: Record<string, string> | undefined;
520
+ headersFromEnv?: Record<string, string> | undefined;
521
+ bearerTokenEnvVar?: string | undefined;
522
+ secretHeaderNames?: string[] | undefined;
523
+ hasBearerToken?: boolean | undefined;
524
+ } | {
525
+ legacyConfigRetained: true;
526
+ } | {
527
+ featureGroups: {
528
+ mode: "provider_default";
529
+ excluded: string[];
530
+ };
531
+ };
532
+ enabled: boolean;
533
+ provider: "supabase" | "linear" | "notion" | "custom";
534
+ startupTimeoutMs: number;
535
+ toolTimeoutMs: number;
536
+ required: boolean;
537
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
538
+ secrets?: {
539
+ env?: Record<string, string> | undefined;
540
+ headers?: Record<string, string> | undefined;
541
+ bearerToken?: string | undefined;
542
+ } | undefined;
543
+ externalScope?: string | null | undefined;
544
+ }, {
545
+ displayName: string;
546
+ name: string;
547
+ transport: "stdio" | "streamable_http" | "legacy_manual";
548
+ provider: "supabase" | "linear" | "notion" | "custom";
549
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
550
+ safeConfig?: {
551
+ command: string;
552
+ args?: string[] | undefined;
553
+ cwd?: string | undefined;
554
+ staticEnv?: Record<string, string> | undefined;
555
+ forwardedEnv?: string[] | undefined;
556
+ secretEnvNames?: string[] | undefined;
557
+ toolAllowlist?: string[] | undefined;
558
+ toolDenylist?: string[] | undefined;
559
+ } | {
560
+ url?: string | undefined;
561
+ toolAllowlist?: string[] | undefined;
562
+ toolDenylist?: string[] | undefined;
563
+ staticHeaders?: Record<string, string> | undefined;
564
+ headersFromEnv?: Record<string, string> | undefined;
565
+ bearerTokenEnvVar?: string | undefined;
566
+ secretHeaderNames?: string[] | undefined;
567
+ hasBearerToken?: boolean | undefined;
568
+ } | {
569
+ legacyConfigRetained: true;
570
+ } | {
571
+ featureGroups: {
572
+ mode: "provider_default";
573
+ excluded: string[];
574
+ };
575
+ } | undefined;
576
+ secrets?: {
577
+ env?: Record<string, string> | undefined;
578
+ headers?: Record<string, string> | undefined;
579
+ bearerToken?: string | undefined;
580
+ } | undefined;
581
+ enabled?: boolean | undefined;
582
+ externalScope?: string | null | undefined;
583
+ startupTimeoutMs?: number | undefined;
584
+ toolTimeoutMs?: number | undefined;
585
+ required?: boolean | undefined;
586
+ }>, {
587
+ displayName: string;
588
+ name: string;
589
+ transport: "stdio" | "streamable_http" | "legacy_manual";
590
+ safeConfig: {
591
+ command: string;
592
+ args?: string[] | undefined;
593
+ cwd?: string | undefined;
594
+ staticEnv?: Record<string, string> | undefined;
595
+ forwardedEnv?: string[] | undefined;
596
+ secretEnvNames?: string[] | undefined;
597
+ toolAllowlist?: string[] | undefined;
598
+ toolDenylist?: string[] | undefined;
599
+ } | {
600
+ url?: string | undefined;
601
+ toolAllowlist?: string[] | undefined;
602
+ toolDenylist?: string[] | undefined;
603
+ staticHeaders?: Record<string, string> | undefined;
604
+ headersFromEnv?: Record<string, string> | undefined;
605
+ bearerTokenEnvVar?: string | undefined;
606
+ secretHeaderNames?: string[] | undefined;
607
+ hasBearerToken?: boolean | undefined;
608
+ } | {
609
+ legacyConfigRetained: true;
610
+ } | {
611
+ featureGroups: {
612
+ mode: "provider_default";
613
+ excluded: string[];
614
+ };
615
+ };
616
+ enabled: boolean;
617
+ provider: "supabase" | "linear" | "notion" | "custom";
618
+ startupTimeoutMs: number;
619
+ toolTimeoutMs: number;
620
+ required: boolean;
621
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
622
+ secrets?: {
623
+ env?: Record<string, string> | undefined;
624
+ headers?: Record<string, string> | undefined;
625
+ bearerToken?: string | undefined;
626
+ } | undefined;
627
+ externalScope?: string | null | undefined;
628
+ }, {
629
+ displayName: string;
630
+ name: string;
631
+ transport: "stdio" | "streamable_http" | "legacy_manual";
632
+ provider: "supabase" | "linear" | "notion" | "custom";
633
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
634
+ safeConfig?: {
635
+ command: string;
636
+ args?: string[] | undefined;
637
+ cwd?: string | undefined;
638
+ staticEnv?: Record<string, string> | undefined;
639
+ forwardedEnv?: string[] | undefined;
640
+ secretEnvNames?: string[] | undefined;
641
+ toolAllowlist?: string[] | undefined;
642
+ toolDenylist?: string[] | undefined;
643
+ } | {
644
+ url?: string | undefined;
645
+ toolAllowlist?: string[] | undefined;
646
+ toolDenylist?: string[] | undefined;
647
+ staticHeaders?: Record<string, string> | undefined;
648
+ headersFromEnv?: Record<string, string> | undefined;
649
+ bearerTokenEnvVar?: string | undefined;
650
+ secretHeaderNames?: string[] | undefined;
651
+ hasBearerToken?: boolean | undefined;
652
+ } | {
653
+ legacyConfigRetained: true;
654
+ } | {
655
+ featureGroups: {
656
+ mode: "provider_default";
657
+ excluded: string[];
658
+ };
659
+ } | undefined;
660
+ secrets?: {
661
+ env?: Record<string, string> | undefined;
662
+ headers?: Record<string, string> | undefined;
663
+ bearerToken?: string | undefined;
664
+ } | undefined;
665
+ enabled?: boolean | undefined;
666
+ externalScope?: string | null | undefined;
667
+ startupTimeoutMs?: number | undefined;
668
+ toolTimeoutMs?: number | undefined;
669
+ required?: boolean | undefined;
670
+ }>, {
671
+ displayName: string;
672
+ name: string;
673
+ transport: "stdio" | "streamable_http" | "legacy_manual";
674
+ safeConfig: {
675
+ command: string;
676
+ args?: string[] | undefined;
677
+ cwd?: string | undefined;
678
+ staticEnv?: Record<string, string> | undefined;
679
+ forwardedEnv?: string[] | undefined;
680
+ secretEnvNames?: string[] | undefined;
681
+ toolAllowlist?: string[] | undefined;
682
+ toolDenylist?: string[] | undefined;
683
+ } | {
684
+ url?: string | undefined;
685
+ toolAllowlist?: string[] | undefined;
686
+ toolDenylist?: string[] | undefined;
687
+ staticHeaders?: Record<string, string> | undefined;
688
+ headersFromEnv?: Record<string, string> | undefined;
689
+ bearerTokenEnvVar?: string | undefined;
690
+ secretHeaderNames?: string[] | undefined;
691
+ hasBearerToken?: boolean | undefined;
692
+ } | {
693
+ legacyConfigRetained: true;
694
+ } | {
695
+ featureGroups: {
696
+ mode: "provider_default";
697
+ excluded: string[];
698
+ };
699
+ };
700
+ enabled: boolean;
701
+ provider: "supabase" | "linear" | "notion" | "custom";
702
+ startupTimeoutMs: number;
703
+ toolTimeoutMs: number;
704
+ required: boolean;
705
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
706
+ secrets?: {
707
+ env?: Record<string, string> | undefined;
708
+ headers?: Record<string, string> | undefined;
709
+ bearerToken?: string | undefined;
710
+ } | undefined;
711
+ externalScope?: string | null | undefined;
712
+ }, {
713
+ displayName: string;
714
+ name: string;
715
+ transport: "stdio" | "streamable_http" | "legacy_manual";
716
+ provider: "supabase" | "linear" | "notion" | "custom";
717
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
718
+ safeConfig?: {
719
+ command: string;
720
+ args?: string[] | undefined;
721
+ cwd?: string | undefined;
722
+ staticEnv?: Record<string, string> | undefined;
723
+ forwardedEnv?: string[] | undefined;
724
+ secretEnvNames?: string[] | undefined;
725
+ toolAllowlist?: string[] | undefined;
726
+ toolDenylist?: string[] | undefined;
727
+ } | {
728
+ url?: string | undefined;
729
+ toolAllowlist?: string[] | undefined;
730
+ toolDenylist?: string[] | undefined;
731
+ staticHeaders?: Record<string, string> | undefined;
732
+ headersFromEnv?: Record<string, string> | undefined;
733
+ bearerTokenEnvVar?: string | undefined;
734
+ secretHeaderNames?: string[] | undefined;
735
+ hasBearerToken?: boolean | undefined;
736
+ } | {
737
+ legacyConfigRetained: true;
738
+ } | {
739
+ featureGroups: {
740
+ mode: "provider_default";
741
+ excluded: string[];
742
+ };
743
+ } | undefined;
744
+ secrets?: {
745
+ env?: Record<string, string> | undefined;
746
+ headers?: Record<string, string> | undefined;
747
+ bearerToken?: string | undefined;
748
+ } | undefined;
749
+ enabled?: boolean | undefined;
750
+ externalScope?: string | null | undefined;
751
+ startupTimeoutMs?: number | undefined;
752
+ toolTimeoutMs?: number | undefined;
753
+ required?: boolean | undefined;
754
+ }>, {
755
+ accessMode: "provider_default" | "read_only" | "read_write";
756
+ displayName: string;
757
+ name: string;
758
+ transport: "stdio" | "streamable_http" | "legacy_manual";
759
+ safeConfig: {
760
+ command: string;
761
+ args?: string[] | undefined;
762
+ cwd?: string | undefined;
763
+ staticEnv?: Record<string, string> | undefined;
764
+ forwardedEnv?: string[] | undefined;
765
+ secretEnvNames?: string[] | undefined;
766
+ toolAllowlist?: string[] | undefined;
767
+ toolDenylist?: string[] | undefined;
768
+ } | {
769
+ url?: string | undefined;
770
+ toolAllowlist?: string[] | undefined;
771
+ toolDenylist?: string[] | undefined;
772
+ staticHeaders?: Record<string, string> | undefined;
773
+ headersFromEnv?: Record<string, string> | undefined;
774
+ bearerTokenEnvVar?: string | undefined;
775
+ secretHeaderNames?: string[] | undefined;
776
+ hasBearerToken?: boolean | undefined;
777
+ } | {
778
+ legacyConfigRetained: true;
779
+ } | {
780
+ featureGroups: {
781
+ mode: "provider_default";
782
+ excluded: string[];
783
+ };
784
+ };
785
+ enabled: boolean;
786
+ provider: "supabase" | "linear" | "notion" | "custom";
787
+ startupTimeoutMs: number;
788
+ toolTimeoutMs: number;
789
+ required: boolean;
790
+ secrets?: {
791
+ env?: Record<string, string> | undefined;
792
+ headers?: Record<string, string> | undefined;
793
+ bearerToken?: string | undefined;
794
+ } | undefined;
795
+ externalScope?: string | null | undefined;
796
+ }, {
797
+ displayName: string;
798
+ name: string;
799
+ transport: "stdio" | "streamable_http" | "legacy_manual";
800
+ provider: "supabase" | "linear" | "notion" | "custom";
801
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
802
+ safeConfig?: {
803
+ command: string;
804
+ args?: string[] | undefined;
805
+ cwd?: string | undefined;
806
+ staticEnv?: Record<string, string> | undefined;
807
+ forwardedEnv?: string[] | undefined;
808
+ secretEnvNames?: string[] | undefined;
809
+ toolAllowlist?: string[] | undefined;
810
+ toolDenylist?: string[] | undefined;
811
+ } | {
812
+ url?: string | undefined;
813
+ toolAllowlist?: string[] | undefined;
814
+ toolDenylist?: string[] | undefined;
815
+ staticHeaders?: Record<string, string> | undefined;
816
+ headersFromEnv?: Record<string, string> | undefined;
817
+ bearerTokenEnvVar?: string | undefined;
818
+ secretHeaderNames?: string[] | undefined;
819
+ hasBearerToken?: boolean | undefined;
820
+ } | {
821
+ legacyConfigRetained: true;
822
+ } | {
823
+ featureGroups: {
824
+ mode: "provider_default";
825
+ excluded: string[];
826
+ };
827
+ } | undefined;
828
+ secrets?: {
829
+ env?: Record<string, string> | undefined;
830
+ headers?: Record<string, string> | undefined;
831
+ bearerToken?: string | undefined;
832
+ } | undefined;
833
+ enabled?: boolean | undefined;
834
+ externalScope?: string | null | undefined;
835
+ startupTimeoutMs?: number | undefined;
836
+ toolTimeoutMs?: number | undefined;
837
+ required?: boolean | undefined;
838
+ }>;
839
+ export declare const updateMcpConnectionSchema: z.ZodEffects<z.ZodObject<{
840
+ displayName: z.ZodOptional<z.ZodString>;
841
+ externalScope: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
842
+ accessMode: z.ZodOptional<z.ZodEnum<["provider_default", "read_only", "read_write"]>>;
843
+ safeConfig: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
844
+ command: z.ZodString;
845
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
846
+ cwd: z.ZodOptional<z.ZodString>;
847
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
848
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
849
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
850
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
851
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
852
+ }, "strict", z.ZodTypeAny, {
853
+ command: string;
854
+ args?: string[] | undefined;
855
+ cwd?: string | undefined;
856
+ staticEnv?: Record<string, string> | undefined;
857
+ forwardedEnv?: string[] | undefined;
858
+ secretEnvNames?: string[] | undefined;
859
+ toolAllowlist?: string[] | undefined;
860
+ toolDenylist?: string[] | undefined;
861
+ }, {
862
+ command: string;
863
+ args?: string[] | undefined;
864
+ cwd?: string | undefined;
865
+ staticEnv?: Record<string, string> | undefined;
866
+ forwardedEnv?: string[] | undefined;
867
+ secretEnvNames?: string[] | undefined;
868
+ toolAllowlist?: string[] | undefined;
869
+ toolDenylist?: string[] | undefined;
870
+ }>, {
871
+ command: string;
872
+ args?: string[] | undefined;
873
+ cwd?: string | undefined;
874
+ staticEnv?: Record<string, string> | undefined;
875
+ forwardedEnv?: string[] | undefined;
876
+ secretEnvNames?: string[] | undefined;
877
+ toolAllowlist?: string[] | undefined;
878
+ toolDenylist?: string[] | undefined;
879
+ }, {
880
+ command: string;
881
+ args?: string[] | undefined;
882
+ cwd?: string | undefined;
883
+ staticEnv?: Record<string, string> | undefined;
884
+ forwardedEnv?: string[] | undefined;
885
+ secretEnvNames?: string[] | undefined;
886
+ toolAllowlist?: string[] | undefined;
887
+ toolDenylist?: string[] | undefined;
888
+ }>, z.ZodEffects<z.ZodObject<{
889
+ url: z.ZodOptional<z.ZodString>;
890
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
891
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
892
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
893
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
894
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
895
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
896
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
897
+ }, "strict", z.ZodTypeAny, {
898
+ url?: string | undefined;
899
+ toolAllowlist?: string[] | undefined;
900
+ toolDenylist?: string[] | undefined;
901
+ staticHeaders?: Record<string, string> | undefined;
902
+ headersFromEnv?: Record<string, string> | undefined;
903
+ bearerTokenEnvVar?: string | undefined;
904
+ secretHeaderNames?: string[] | undefined;
905
+ hasBearerToken?: boolean | undefined;
906
+ }, {
907
+ url?: string | undefined;
908
+ toolAllowlist?: string[] | undefined;
909
+ toolDenylist?: string[] | undefined;
910
+ staticHeaders?: Record<string, string> | undefined;
911
+ headersFromEnv?: Record<string, string> | undefined;
912
+ bearerTokenEnvVar?: string | undefined;
913
+ secretHeaderNames?: string[] | undefined;
914
+ hasBearerToken?: boolean | undefined;
915
+ }>, {
916
+ url?: string | undefined;
917
+ toolAllowlist?: string[] | undefined;
918
+ toolDenylist?: string[] | undefined;
919
+ staticHeaders?: Record<string, string> | undefined;
920
+ headersFromEnv?: Record<string, string> | undefined;
921
+ bearerTokenEnvVar?: string | undefined;
922
+ secretHeaderNames?: string[] | undefined;
923
+ hasBearerToken?: boolean | undefined;
924
+ }, {
925
+ url?: string | undefined;
926
+ toolAllowlist?: string[] | undefined;
927
+ toolDenylist?: string[] | undefined;
928
+ staticHeaders?: Record<string, string> | undefined;
929
+ headersFromEnv?: Record<string, string> | undefined;
930
+ bearerTokenEnvVar?: string | undefined;
931
+ secretHeaderNames?: string[] | undefined;
932
+ hasBearerToken?: boolean | undefined;
933
+ }>, z.ZodObject<{
934
+ legacyConfigRetained: z.ZodLiteral<true>;
935
+ }, "strict", z.ZodTypeAny, {
936
+ legacyConfigRetained: true;
937
+ }, {
938
+ legacyConfigRetained: true;
939
+ }>, z.ZodObject<{
940
+ featureGroups: z.ZodObject<{
941
+ mode: z.ZodLiteral<"provider_default">;
942
+ excluded: z.ZodArray<z.ZodString, "many">;
943
+ }, "strict", z.ZodTypeAny, {
944
+ mode: "provider_default";
945
+ excluded: string[];
946
+ }, {
947
+ mode: "provider_default";
948
+ excluded: string[];
949
+ }>;
950
+ }, "strict", z.ZodTypeAny, {
951
+ featureGroups: {
952
+ mode: "provider_default";
953
+ excluded: string[];
954
+ };
955
+ }, {
956
+ featureGroups: {
957
+ mode: "provider_default";
958
+ excluded: string[];
959
+ };
960
+ }>]>>;
961
+ startupTimeoutMs: z.ZodOptional<z.ZodNumber>;
962
+ toolTimeoutMs: z.ZodOptional<z.ZodNumber>;
963
+ enabled: z.ZodOptional<z.ZodBoolean>;
964
+ required: z.ZodOptional<z.ZodBoolean>;
965
+ secrets: z.ZodOptional<z.ZodEffects<z.ZodObject<{
966
+ env: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
967
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
968
+ bearerToken: z.ZodOptional<z.ZodString>;
969
+ }, "strict", z.ZodTypeAny, {
970
+ env?: Record<string, string> | undefined;
971
+ headers?: Record<string, string> | undefined;
972
+ bearerToken?: string | undefined;
973
+ }, {
974
+ env?: Record<string, string> | undefined;
975
+ headers?: Record<string, string> | undefined;
976
+ bearerToken?: string | undefined;
977
+ }>, {
978
+ env?: Record<string, string> | undefined;
979
+ headers?: Record<string, string> | undefined;
980
+ bearerToken?: string | undefined;
981
+ }, {
982
+ env?: Record<string, string> | undefined;
983
+ headers?: Record<string, string> | undefined;
984
+ bearerToken?: string | undefined;
985
+ }>>;
986
+ }, "strict", z.ZodTypeAny, {
987
+ displayName?: string | undefined;
988
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
989
+ safeConfig?: {
990
+ command: string;
991
+ args?: string[] | undefined;
992
+ cwd?: string | undefined;
993
+ staticEnv?: Record<string, string> | undefined;
994
+ forwardedEnv?: string[] | undefined;
995
+ secretEnvNames?: string[] | undefined;
996
+ toolAllowlist?: string[] | undefined;
997
+ toolDenylist?: string[] | undefined;
998
+ } | {
999
+ url?: string | undefined;
1000
+ toolAllowlist?: string[] | undefined;
1001
+ toolDenylist?: string[] | undefined;
1002
+ staticHeaders?: Record<string, string> | undefined;
1003
+ headersFromEnv?: Record<string, string> | undefined;
1004
+ bearerTokenEnvVar?: string | undefined;
1005
+ secretHeaderNames?: string[] | undefined;
1006
+ hasBearerToken?: boolean | undefined;
1007
+ } | {
1008
+ legacyConfigRetained: true;
1009
+ } | {
1010
+ featureGroups: {
1011
+ mode: "provider_default";
1012
+ excluded: string[];
1013
+ };
1014
+ } | undefined;
1015
+ secrets?: {
1016
+ env?: Record<string, string> | undefined;
1017
+ headers?: Record<string, string> | undefined;
1018
+ bearerToken?: string | undefined;
1019
+ } | undefined;
1020
+ enabled?: boolean | undefined;
1021
+ externalScope?: string | null | undefined;
1022
+ startupTimeoutMs?: number | undefined;
1023
+ toolTimeoutMs?: number | undefined;
1024
+ required?: boolean | undefined;
1025
+ }, {
1026
+ displayName?: string | undefined;
1027
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
1028
+ safeConfig?: {
1029
+ command: string;
1030
+ args?: string[] | undefined;
1031
+ cwd?: string | undefined;
1032
+ staticEnv?: Record<string, string> | undefined;
1033
+ forwardedEnv?: string[] | undefined;
1034
+ secretEnvNames?: string[] | undefined;
1035
+ toolAllowlist?: string[] | undefined;
1036
+ toolDenylist?: string[] | undefined;
1037
+ } | {
1038
+ url?: string | undefined;
1039
+ toolAllowlist?: string[] | undefined;
1040
+ toolDenylist?: string[] | undefined;
1041
+ staticHeaders?: Record<string, string> | undefined;
1042
+ headersFromEnv?: Record<string, string> | undefined;
1043
+ bearerTokenEnvVar?: string | undefined;
1044
+ secretHeaderNames?: string[] | undefined;
1045
+ hasBearerToken?: boolean | undefined;
1046
+ } | {
1047
+ legacyConfigRetained: true;
1048
+ } | {
1049
+ featureGroups: {
1050
+ mode: "provider_default";
1051
+ excluded: string[];
1052
+ };
1053
+ } | undefined;
1054
+ secrets?: {
1055
+ env?: Record<string, string> | undefined;
1056
+ headers?: Record<string, string> | undefined;
1057
+ bearerToken?: string | undefined;
1058
+ } | undefined;
1059
+ enabled?: boolean | undefined;
1060
+ externalScope?: string | null | undefined;
1061
+ startupTimeoutMs?: number | undefined;
1062
+ toolTimeoutMs?: number | undefined;
1063
+ required?: boolean | undefined;
1064
+ }>, {
1065
+ displayName?: string | undefined;
1066
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
1067
+ safeConfig?: {
1068
+ command: string;
1069
+ args?: string[] | undefined;
1070
+ cwd?: string | undefined;
1071
+ staticEnv?: Record<string, string> | undefined;
1072
+ forwardedEnv?: string[] | undefined;
1073
+ secretEnvNames?: string[] | undefined;
1074
+ toolAllowlist?: string[] | undefined;
1075
+ toolDenylist?: string[] | undefined;
1076
+ } | {
1077
+ url?: string | undefined;
1078
+ toolAllowlist?: string[] | undefined;
1079
+ toolDenylist?: string[] | undefined;
1080
+ staticHeaders?: Record<string, string> | undefined;
1081
+ headersFromEnv?: Record<string, string> | undefined;
1082
+ bearerTokenEnvVar?: string | undefined;
1083
+ secretHeaderNames?: string[] | undefined;
1084
+ hasBearerToken?: boolean | undefined;
1085
+ } | {
1086
+ legacyConfigRetained: true;
1087
+ } | {
1088
+ featureGroups: {
1089
+ mode: "provider_default";
1090
+ excluded: string[];
1091
+ };
1092
+ } | undefined;
1093
+ secrets?: {
1094
+ env?: Record<string, string> | undefined;
1095
+ headers?: Record<string, string> | undefined;
1096
+ bearerToken?: string | undefined;
1097
+ } | undefined;
1098
+ enabled?: boolean | undefined;
1099
+ externalScope?: string | null | undefined;
1100
+ startupTimeoutMs?: number | undefined;
1101
+ toolTimeoutMs?: number | undefined;
1102
+ required?: boolean | undefined;
1103
+ }, {
1104
+ displayName?: string | undefined;
1105
+ accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
1106
+ safeConfig?: {
1107
+ command: string;
1108
+ args?: string[] | undefined;
1109
+ cwd?: string | undefined;
1110
+ staticEnv?: Record<string, string> | undefined;
1111
+ forwardedEnv?: string[] | undefined;
1112
+ secretEnvNames?: string[] | undefined;
1113
+ toolAllowlist?: string[] | undefined;
1114
+ toolDenylist?: string[] | undefined;
1115
+ } | {
1116
+ url?: string | undefined;
1117
+ toolAllowlist?: string[] | undefined;
1118
+ toolDenylist?: string[] | undefined;
1119
+ staticHeaders?: Record<string, string> | undefined;
1120
+ headersFromEnv?: Record<string, string> | undefined;
1121
+ bearerTokenEnvVar?: string | undefined;
1122
+ secretHeaderNames?: string[] | undefined;
1123
+ hasBearerToken?: boolean | undefined;
1124
+ } | {
1125
+ legacyConfigRetained: true;
1126
+ } | {
1127
+ featureGroups: {
1128
+ mode: "provider_default";
1129
+ excluded: string[];
1130
+ };
1131
+ } | undefined;
1132
+ secrets?: {
1133
+ env?: Record<string, string> | undefined;
1134
+ headers?: Record<string, string> | undefined;
1135
+ bearerToken?: string | undefined;
1136
+ } | undefined;
1137
+ enabled?: boolean | undefined;
1138
+ externalScope?: string | null | undefined;
1139
+ startupTimeoutMs?: number | undefined;
1140
+ toolTimeoutMs?: number | undefined;
1141
+ required?: boolean | undefined;
1142
+ }>;
1143
+ export declare const mcpConnectionMergedConfigSchema: z.ZodEffects<z.ZodObject<{
1144
+ provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
1145
+ transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
1146
+ accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
1147
+ safeConfig: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1148
+ command: z.ZodString;
1149
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1150
+ cwd: z.ZodOptional<z.ZodString>;
1151
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1152
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1153
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1154
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1155
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1156
+ }, "strict", z.ZodTypeAny, {
1157
+ command: string;
1158
+ args?: string[] | undefined;
1159
+ cwd?: string | undefined;
1160
+ staticEnv?: Record<string, string> | undefined;
1161
+ forwardedEnv?: string[] | undefined;
1162
+ secretEnvNames?: string[] | undefined;
1163
+ toolAllowlist?: string[] | undefined;
1164
+ toolDenylist?: string[] | undefined;
1165
+ }, {
1166
+ command: string;
1167
+ args?: string[] | undefined;
1168
+ cwd?: string | undefined;
1169
+ staticEnv?: Record<string, string> | undefined;
1170
+ forwardedEnv?: string[] | undefined;
1171
+ secretEnvNames?: string[] | undefined;
1172
+ toolAllowlist?: string[] | undefined;
1173
+ toolDenylist?: string[] | undefined;
1174
+ }>, {
1175
+ command: string;
1176
+ args?: string[] | undefined;
1177
+ cwd?: string | undefined;
1178
+ staticEnv?: Record<string, string> | undefined;
1179
+ forwardedEnv?: string[] | undefined;
1180
+ secretEnvNames?: string[] | undefined;
1181
+ toolAllowlist?: string[] | undefined;
1182
+ toolDenylist?: string[] | undefined;
1183
+ }, {
1184
+ command: string;
1185
+ args?: string[] | undefined;
1186
+ cwd?: string | undefined;
1187
+ staticEnv?: Record<string, string> | undefined;
1188
+ forwardedEnv?: string[] | undefined;
1189
+ secretEnvNames?: string[] | undefined;
1190
+ toolAllowlist?: string[] | undefined;
1191
+ toolDenylist?: string[] | undefined;
1192
+ }>, z.ZodEffects<z.ZodObject<{
1193
+ url: z.ZodOptional<z.ZodString>;
1194
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1195
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1196
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
1197
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1198
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
1199
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1200
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1201
+ }, "strict", z.ZodTypeAny, {
1202
+ url?: string | undefined;
1203
+ toolAllowlist?: string[] | undefined;
1204
+ toolDenylist?: string[] | undefined;
1205
+ staticHeaders?: Record<string, string> | undefined;
1206
+ headersFromEnv?: Record<string, string> | undefined;
1207
+ bearerTokenEnvVar?: string | undefined;
1208
+ secretHeaderNames?: string[] | undefined;
1209
+ hasBearerToken?: boolean | undefined;
1210
+ }, {
1211
+ url?: string | undefined;
1212
+ toolAllowlist?: string[] | undefined;
1213
+ toolDenylist?: string[] | undefined;
1214
+ staticHeaders?: Record<string, string> | undefined;
1215
+ headersFromEnv?: Record<string, string> | undefined;
1216
+ bearerTokenEnvVar?: string | undefined;
1217
+ secretHeaderNames?: string[] | undefined;
1218
+ hasBearerToken?: boolean | undefined;
1219
+ }>, {
1220
+ url?: string | undefined;
1221
+ toolAllowlist?: string[] | undefined;
1222
+ toolDenylist?: string[] | undefined;
1223
+ staticHeaders?: Record<string, string> | undefined;
1224
+ headersFromEnv?: Record<string, string> | undefined;
1225
+ bearerTokenEnvVar?: string | undefined;
1226
+ secretHeaderNames?: string[] | undefined;
1227
+ hasBearerToken?: boolean | undefined;
1228
+ }, {
1229
+ url?: string | undefined;
1230
+ toolAllowlist?: string[] | undefined;
1231
+ toolDenylist?: string[] | undefined;
1232
+ staticHeaders?: Record<string, string> | undefined;
1233
+ headersFromEnv?: Record<string, string> | undefined;
1234
+ bearerTokenEnvVar?: string | undefined;
1235
+ secretHeaderNames?: string[] | undefined;
1236
+ hasBearerToken?: boolean | undefined;
1237
+ }>, z.ZodObject<{
1238
+ legacyConfigRetained: z.ZodLiteral<true>;
1239
+ }, "strict", z.ZodTypeAny, {
1240
+ legacyConfigRetained: true;
1241
+ }, {
1242
+ legacyConfigRetained: true;
1243
+ }>, z.ZodObject<{
1244
+ featureGroups: z.ZodObject<{
1245
+ mode: z.ZodLiteral<"provider_default">;
1246
+ excluded: z.ZodArray<z.ZodString, "many">;
1247
+ }, "strict", z.ZodTypeAny, {
1248
+ mode: "provider_default";
1249
+ excluded: string[];
1250
+ }, {
1251
+ mode: "provider_default";
1252
+ excluded: string[];
1253
+ }>;
1254
+ }, "strict", z.ZodTypeAny, {
1255
+ featureGroups: {
1256
+ mode: "provider_default";
1257
+ excluded: string[];
1258
+ };
1259
+ }, {
1260
+ featureGroups: {
1261
+ mode: "provider_default";
1262
+ excluded: string[];
1263
+ };
1264
+ }>]>;
1265
+ enabled: z.ZodBoolean;
1266
+ }, "strict", z.ZodTypeAny, {
1267
+ accessMode: "provider_default" | "read_only" | "read_write";
1268
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1269
+ safeConfig: {
1270
+ command: string;
1271
+ args?: string[] | undefined;
1272
+ cwd?: string | undefined;
1273
+ staticEnv?: Record<string, string> | undefined;
1274
+ forwardedEnv?: string[] | undefined;
1275
+ secretEnvNames?: string[] | undefined;
1276
+ toolAllowlist?: string[] | undefined;
1277
+ toolDenylist?: string[] | undefined;
1278
+ } | {
1279
+ url?: string | undefined;
1280
+ toolAllowlist?: string[] | undefined;
1281
+ toolDenylist?: string[] | undefined;
1282
+ staticHeaders?: Record<string, string> | undefined;
1283
+ headersFromEnv?: Record<string, string> | undefined;
1284
+ bearerTokenEnvVar?: string | undefined;
1285
+ secretHeaderNames?: string[] | undefined;
1286
+ hasBearerToken?: boolean | undefined;
1287
+ } | {
1288
+ legacyConfigRetained: true;
1289
+ } | {
1290
+ featureGroups: {
1291
+ mode: "provider_default";
1292
+ excluded: string[];
1293
+ };
1294
+ };
1295
+ enabled: boolean;
1296
+ provider: "supabase" | "linear" | "notion" | "custom";
1297
+ }, {
1298
+ accessMode: "provider_default" | "read_only" | "read_write";
1299
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1300
+ safeConfig: {
1301
+ command: string;
1302
+ args?: string[] | undefined;
1303
+ cwd?: string | undefined;
1304
+ staticEnv?: Record<string, string> | undefined;
1305
+ forwardedEnv?: string[] | undefined;
1306
+ secretEnvNames?: string[] | undefined;
1307
+ toolAllowlist?: string[] | undefined;
1308
+ toolDenylist?: string[] | undefined;
1309
+ } | {
1310
+ url?: string | undefined;
1311
+ toolAllowlist?: string[] | undefined;
1312
+ toolDenylist?: string[] | undefined;
1313
+ staticHeaders?: Record<string, string> | undefined;
1314
+ headersFromEnv?: Record<string, string> | undefined;
1315
+ bearerTokenEnvVar?: string | undefined;
1316
+ secretHeaderNames?: string[] | undefined;
1317
+ hasBearerToken?: boolean | undefined;
1318
+ } | {
1319
+ legacyConfigRetained: true;
1320
+ } | {
1321
+ featureGroups: {
1322
+ mode: "provider_default";
1323
+ excluded: string[];
1324
+ };
1325
+ };
1326
+ enabled: boolean;
1327
+ provider: "supabase" | "linear" | "notion" | "custom";
1328
+ }>, {
1329
+ accessMode: "provider_default" | "read_only" | "read_write";
1330
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1331
+ safeConfig: {
1332
+ command: string;
1333
+ args?: string[] | undefined;
1334
+ cwd?: string | undefined;
1335
+ staticEnv?: Record<string, string> | undefined;
1336
+ forwardedEnv?: string[] | undefined;
1337
+ secretEnvNames?: string[] | undefined;
1338
+ toolAllowlist?: string[] | undefined;
1339
+ toolDenylist?: string[] | undefined;
1340
+ } | {
1341
+ url?: string | undefined;
1342
+ toolAllowlist?: string[] | undefined;
1343
+ toolDenylist?: string[] | undefined;
1344
+ staticHeaders?: Record<string, string> | undefined;
1345
+ headersFromEnv?: Record<string, string> | undefined;
1346
+ bearerTokenEnvVar?: string | undefined;
1347
+ secretHeaderNames?: string[] | undefined;
1348
+ hasBearerToken?: boolean | undefined;
1349
+ } | {
1350
+ legacyConfigRetained: true;
1351
+ } | {
1352
+ featureGroups: {
1353
+ mode: "provider_default";
1354
+ excluded: string[];
1355
+ };
1356
+ };
1357
+ enabled: boolean;
1358
+ provider: "supabase" | "linear" | "notion" | "custom";
1359
+ }, {
1360
+ accessMode: "provider_default" | "read_only" | "read_write";
1361
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1362
+ safeConfig: {
1363
+ command: string;
1364
+ args?: string[] | undefined;
1365
+ cwd?: string | undefined;
1366
+ staticEnv?: Record<string, string> | undefined;
1367
+ forwardedEnv?: string[] | undefined;
1368
+ secretEnvNames?: string[] | undefined;
1369
+ toolAllowlist?: string[] | undefined;
1370
+ toolDenylist?: string[] | undefined;
1371
+ } | {
1372
+ url?: string | undefined;
1373
+ toolAllowlist?: string[] | undefined;
1374
+ toolDenylist?: string[] | undefined;
1375
+ staticHeaders?: Record<string, string> | undefined;
1376
+ headersFromEnv?: Record<string, string> | undefined;
1377
+ bearerTokenEnvVar?: string | undefined;
1378
+ secretHeaderNames?: string[] | undefined;
1379
+ hasBearerToken?: boolean | undefined;
1380
+ } | {
1381
+ legacyConfigRetained: true;
1382
+ } | {
1383
+ featureGroups: {
1384
+ mode: "provider_default";
1385
+ excluded: string[];
1386
+ };
1387
+ };
1388
+ enabled: boolean;
1389
+ provider: "supabase" | "linear" | "notion" | "custom";
1390
+ }>;
1391
+ /**
1392
+ * Mutation-aware validation target for create, secret rotation, or a safe
1393
+ * config change that alters secret declarations.
1394
+ */
1395
+ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1396
+ secrets: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1397
+ env: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1398
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1399
+ bearerToken: z.ZodOptional<z.ZodString>;
1400
+ }, "strict", z.ZodTypeAny, {
1401
+ env?: Record<string, string> | undefined;
1402
+ headers?: Record<string, string> | undefined;
1403
+ bearerToken?: string | undefined;
1404
+ }, {
1405
+ env?: Record<string, string> | undefined;
1406
+ headers?: Record<string, string> | undefined;
1407
+ bearerToken?: string | undefined;
1408
+ }>, {
1409
+ env?: Record<string, string> | undefined;
1410
+ headers?: Record<string, string> | undefined;
1411
+ bearerToken?: string | undefined;
1412
+ }, {
1413
+ env?: Record<string, string> | undefined;
1414
+ headers?: Record<string, string> | undefined;
1415
+ bearerToken?: string | undefined;
1416
+ }>>;
1417
+ provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
1418
+ transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
1419
+ accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
1420
+ safeConfig: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1421
+ command: z.ZodString;
1422
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1423
+ cwd: z.ZodOptional<z.ZodString>;
1424
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1425
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1426
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1427
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1428
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1429
+ }, "strict", z.ZodTypeAny, {
1430
+ command: string;
1431
+ args?: string[] | undefined;
1432
+ cwd?: string | undefined;
1433
+ staticEnv?: Record<string, string> | undefined;
1434
+ forwardedEnv?: string[] | undefined;
1435
+ secretEnvNames?: string[] | undefined;
1436
+ toolAllowlist?: string[] | undefined;
1437
+ toolDenylist?: string[] | undefined;
1438
+ }, {
1439
+ command: string;
1440
+ args?: string[] | undefined;
1441
+ cwd?: string | undefined;
1442
+ staticEnv?: Record<string, string> | undefined;
1443
+ forwardedEnv?: string[] | undefined;
1444
+ secretEnvNames?: string[] | undefined;
1445
+ toolAllowlist?: string[] | undefined;
1446
+ toolDenylist?: string[] | undefined;
1447
+ }>, {
1448
+ command: string;
1449
+ args?: string[] | undefined;
1450
+ cwd?: string | undefined;
1451
+ staticEnv?: Record<string, string> | undefined;
1452
+ forwardedEnv?: string[] | undefined;
1453
+ secretEnvNames?: string[] | undefined;
1454
+ toolAllowlist?: string[] | undefined;
1455
+ toolDenylist?: string[] | undefined;
1456
+ }, {
1457
+ command: string;
1458
+ args?: string[] | undefined;
1459
+ cwd?: string | undefined;
1460
+ staticEnv?: Record<string, string> | undefined;
1461
+ forwardedEnv?: string[] | undefined;
1462
+ secretEnvNames?: string[] | undefined;
1463
+ toolAllowlist?: string[] | undefined;
1464
+ toolDenylist?: string[] | undefined;
1465
+ }>, z.ZodEffects<z.ZodObject<{
1466
+ url: z.ZodOptional<z.ZodString>;
1467
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1468
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1469
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
1470
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1471
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
1472
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1473
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1474
+ }, "strict", z.ZodTypeAny, {
1475
+ url?: string | undefined;
1476
+ toolAllowlist?: string[] | undefined;
1477
+ toolDenylist?: string[] | undefined;
1478
+ staticHeaders?: Record<string, string> | undefined;
1479
+ headersFromEnv?: Record<string, string> | undefined;
1480
+ bearerTokenEnvVar?: string | undefined;
1481
+ secretHeaderNames?: string[] | undefined;
1482
+ hasBearerToken?: boolean | undefined;
1483
+ }, {
1484
+ url?: string | undefined;
1485
+ toolAllowlist?: string[] | undefined;
1486
+ toolDenylist?: string[] | undefined;
1487
+ staticHeaders?: Record<string, string> | undefined;
1488
+ headersFromEnv?: Record<string, string> | undefined;
1489
+ bearerTokenEnvVar?: string | undefined;
1490
+ secretHeaderNames?: string[] | undefined;
1491
+ hasBearerToken?: boolean | undefined;
1492
+ }>, {
1493
+ url?: string | undefined;
1494
+ toolAllowlist?: string[] | undefined;
1495
+ toolDenylist?: string[] | undefined;
1496
+ staticHeaders?: Record<string, string> | undefined;
1497
+ headersFromEnv?: Record<string, string> | undefined;
1498
+ bearerTokenEnvVar?: string | undefined;
1499
+ secretHeaderNames?: string[] | undefined;
1500
+ hasBearerToken?: boolean | undefined;
1501
+ }, {
1502
+ url?: string | undefined;
1503
+ toolAllowlist?: string[] | undefined;
1504
+ toolDenylist?: string[] | undefined;
1505
+ staticHeaders?: Record<string, string> | undefined;
1506
+ headersFromEnv?: Record<string, string> | undefined;
1507
+ bearerTokenEnvVar?: string | undefined;
1508
+ secretHeaderNames?: string[] | undefined;
1509
+ hasBearerToken?: boolean | undefined;
1510
+ }>, z.ZodObject<{
1511
+ legacyConfigRetained: z.ZodLiteral<true>;
1512
+ }, "strict", z.ZodTypeAny, {
1513
+ legacyConfigRetained: true;
1514
+ }, {
1515
+ legacyConfigRetained: true;
1516
+ }>, z.ZodObject<{
1517
+ featureGroups: z.ZodObject<{
1518
+ mode: z.ZodLiteral<"provider_default">;
1519
+ excluded: z.ZodArray<z.ZodString, "many">;
1520
+ }, "strict", z.ZodTypeAny, {
1521
+ mode: "provider_default";
1522
+ excluded: string[];
1523
+ }, {
1524
+ mode: "provider_default";
1525
+ excluded: string[];
1526
+ }>;
1527
+ }, "strict", z.ZodTypeAny, {
1528
+ featureGroups: {
1529
+ mode: "provider_default";
1530
+ excluded: string[];
1531
+ };
1532
+ }, {
1533
+ featureGroups: {
1534
+ mode: "provider_default";
1535
+ excluded: string[];
1536
+ };
1537
+ }>]>;
1538
+ enabled: z.ZodBoolean;
1539
+ }, "strict", z.ZodTypeAny, {
1540
+ accessMode: "provider_default" | "read_only" | "read_write";
1541
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1542
+ safeConfig: {
1543
+ command: string;
1544
+ args?: string[] | undefined;
1545
+ cwd?: string | undefined;
1546
+ staticEnv?: Record<string, string> | undefined;
1547
+ forwardedEnv?: string[] | undefined;
1548
+ secretEnvNames?: string[] | undefined;
1549
+ toolAllowlist?: string[] | undefined;
1550
+ toolDenylist?: string[] | undefined;
1551
+ } | {
1552
+ url?: string | undefined;
1553
+ toolAllowlist?: string[] | undefined;
1554
+ toolDenylist?: string[] | undefined;
1555
+ staticHeaders?: Record<string, string> | undefined;
1556
+ headersFromEnv?: Record<string, string> | undefined;
1557
+ bearerTokenEnvVar?: string | undefined;
1558
+ secretHeaderNames?: string[] | undefined;
1559
+ hasBearerToken?: boolean | undefined;
1560
+ } | {
1561
+ legacyConfigRetained: true;
1562
+ } | {
1563
+ featureGroups: {
1564
+ mode: "provider_default";
1565
+ excluded: string[];
1566
+ };
1567
+ };
1568
+ enabled: boolean;
1569
+ provider: "supabase" | "linear" | "notion" | "custom";
1570
+ secrets?: {
1571
+ env?: Record<string, string> | undefined;
1572
+ headers?: Record<string, string> | undefined;
1573
+ bearerToken?: string | undefined;
1574
+ } | undefined;
1575
+ }, {
1576
+ accessMode: "provider_default" | "read_only" | "read_write";
1577
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1578
+ safeConfig: {
1579
+ command: string;
1580
+ args?: string[] | undefined;
1581
+ cwd?: string | undefined;
1582
+ staticEnv?: Record<string, string> | undefined;
1583
+ forwardedEnv?: string[] | undefined;
1584
+ secretEnvNames?: string[] | undefined;
1585
+ toolAllowlist?: string[] | undefined;
1586
+ toolDenylist?: string[] | undefined;
1587
+ } | {
1588
+ url?: string | undefined;
1589
+ toolAllowlist?: string[] | undefined;
1590
+ toolDenylist?: string[] | undefined;
1591
+ staticHeaders?: Record<string, string> | undefined;
1592
+ headersFromEnv?: Record<string, string> | undefined;
1593
+ bearerTokenEnvVar?: string | undefined;
1594
+ secretHeaderNames?: string[] | undefined;
1595
+ hasBearerToken?: boolean | undefined;
1596
+ } | {
1597
+ legacyConfigRetained: true;
1598
+ } | {
1599
+ featureGroups: {
1600
+ mode: "provider_default";
1601
+ excluded: string[];
1602
+ };
1603
+ };
1604
+ enabled: boolean;
1605
+ provider: "supabase" | "linear" | "notion" | "custom";
1606
+ secrets?: {
1607
+ env?: Record<string, string> | undefined;
1608
+ headers?: Record<string, string> | undefined;
1609
+ bearerToken?: string | undefined;
1610
+ } | undefined;
1611
+ }>, {
1612
+ accessMode: "provider_default" | "read_only" | "read_write";
1613
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1614
+ safeConfig: {
1615
+ command: string;
1616
+ args?: string[] | undefined;
1617
+ cwd?: string | undefined;
1618
+ staticEnv?: Record<string, string> | undefined;
1619
+ forwardedEnv?: string[] | undefined;
1620
+ secretEnvNames?: string[] | undefined;
1621
+ toolAllowlist?: string[] | undefined;
1622
+ toolDenylist?: string[] | undefined;
1623
+ } | {
1624
+ url?: string | undefined;
1625
+ toolAllowlist?: string[] | undefined;
1626
+ toolDenylist?: string[] | undefined;
1627
+ staticHeaders?: Record<string, string> | undefined;
1628
+ headersFromEnv?: Record<string, string> | undefined;
1629
+ bearerTokenEnvVar?: string | undefined;
1630
+ secretHeaderNames?: string[] | undefined;
1631
+ hasBearerToken?: boolean | undefined;
1632
+ } | {
1633
+ legacyConfigRetained: true;
1634
+ } | {
1635
+ featureGroups: {
1636
+ mode: "provider_default";
1637
+ excluded: string[];
1638
+ };
1639
+ };
1640
+ enabled: boolean;
1641
+ provider: "supabase" | "linear" | "notion" | "custom";
1642
+ secrets?: {
1643
+ env?: Record<string, string> | undefined;
1644
+ headers?: Record<string, string> | undefined;
1645
+ bearerToken?: string | undefined;
1646
+ } | undefined;
1647
+ }, {
1648
+ accessMode: "provider_default" | "read_only" | "read_write";
1649
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1650
+ safeConfig: {
1651
+ command: string;
1652
+ args?: string[] | undefined;
1653
+ cwd?: string | undefined;
1654
+ staticEnv?: Record<string, string> | undefined;
1655
+ forwardedEnv?: string[] | undefined;
1656
+ secretEnvNames?: string[] | undefined;
1657
+ toolAllowlist?: string[] | undefined;
1658
+ toolDenylist?: string[] | undefined;
1659
+ } | {
1660
+ url?: string | undefined;
1661
+ toolAllowlist?: string[] | undefined;
1662
+ toolDenylist?: string[] | undefined;
1663
+ staticHeaders?: Record<string, string> | undefined;
1664
+ headersFromEnv?: Record<string, string> | undefined;
1665
+ bearerTokenEnvVar?: string | undefined;
1666
+ secretHeaderNames?: string[] | undefined;
1667
+ hasBearerToken?: boolean | undefined;
1668
+ } | {
1669
+ legacyConfigRetained: true;
1670
+ } | {
1671
+ featureGroups: {
1672
+ mode: "provider_default";
1673
+ excluded: string[];
1674
+ };
1675
+ };
1676
+ enabled: boolean;
1677
+ provider: "supabase" | "linear" | "notion" | "custom";
1678
+ secrets?: {
1679
+ env?: Record<string, string> | undefined;
1680
+ headers?: Record<string, string> | undefined;
1681
+ bearerToken?: string | undefined;
1682
+ } | undefined;
1683
+ }>, {
1684
+ accessMode: "provider_default" | "read_only" | "read_write";
1685
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1686
+ safeConfig: {
1687
+ command: string;
1688
+ args?: string[] | undefined;
1689
+ cwd?: string | undefined;
1690
+ staticEnv?: Record<string, string> | undefined;
1691
+ forwardedEnv?: string[] | undefined;
1692
+ secretEnvNames?: string[] | undefined;
1693
+ toolAllowlist?: string[] | undefined;
1694
+ toolDenylist?: string[] | undefined;
1695
+ } | {
1696
+ url?: string | undefined;
1697
+ toolAllowlist?: string[] | undefined;
1698
+ toolDenylist?: string[] | undefined;
1699
+ staticHeaders?: Record<string, string> | undefined;
1700
+ headersFromEnv?: Record<string, string> | undefined;
1701
+ bearerTokenEnvVar?: string | undefined;
1702
+ secretHeaderNames?: string[] | undefined;
1703
+ hasBearerToken?: boolean | undefined;
1704
+ } | {
1705
+ legacyConfigRetained: true;
1706
+ } | {
1707
+ featureGroups: {
1708
+ mode: "provider_default";
1709
+ excluded: string[];
1710
+ };
1711
+ };
1712
+ enabled: boolean;
1713
+ provider: "supabase" | "linear" | "notion" | "custom";
1714
+ secrets?: {
1715
+ env?: Record<string, string> | undefined;
1716
+ headers?: Record<string, string> | undefined;
1717
+ bearerToken?: string | undefined;
1718
+ } | undefined;
1719
+ }, {
1720
+ accessMode: "provider_default" | "read_only" | "read_write";
1721
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1722
+ safeConfig: {
1723
+ command: string;
1724
+ args?: string[] | undefined;
1725
+ cwd?: string | undefined;
1726
+ staticEnv?: Record<string, string> | undefined;
1727
+ forwardedEnv?: string[] | undefined;
1728
+ secretEnvNames?: string[] | undefined;
1729
+ toolAllowlist?: string[] | undefined;
1730
+ toolDenylist?: string[] | undefined;
1731
+ } | {
1732
+ url?: string | undefined;
1733
+ toolAllowlist?: string[] | undefined;
1734
+ toolDenylist?: string[] | undefined;
1735
+ staticHeaders?: Record<string, string> | undefined;
1736
+ headersFromEnv?: Record<string, string> | undefined;
1737
+ bearerTokenEnvVar?: string | undefined;
1738
+ secretHeaderNames?: string[] | undefined;
1739
+ hasBearerToken?: boolean | undefined;
1740
+ } | {
1741
+ legacyConfigRetained: true;
1742
+ } | {
1743
+ featureGroups: {
1744
+ mode: "provider_default";
1745
+ excluded: string[];
1746
+ };
1747
+ };
1748
+ enabled: boolean;
1749
+ provider: "supabase" | "linear" | "notion" | "custom";
1750
+ secrets?: {
1751
+ env?: Record<string, string> | undefined;
1752
+ headers?: Record<string, string> | undefined;
1753
+ bearerToken?: string | undefined;
1754
+ } | undefined;
1755
+ }>;
1756
+ export declare const mcpConnectionSummarySchema: z.ZodObject<{
1757
+ id: z.ZodString;
1758
+ orgId: z.ZodString;
1759
+ name: z.ZodString;
1760
+ displayName: z.ZodString;
1761
+ provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
1762
+ transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
1763
+ externalScope: z.ZodNullable<z.ZodString>;
1764
+ accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
1765
+ status: z.ZodEnum<["draft", "authorizing", "selecting_scope", "active", "needs_reauth", "disabled", "revoked", "error"]>;
1766
+ safeConfig: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1767
+ command: z.ZodString;
1768
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1769
+ cwd: z.ZodOptional<z.ZodString>;
1770
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1771
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1772
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1773
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1774
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1775
+ }, "strict", z.ZodTypeAny, {
1776
+ command: string;
1777
+ args?: string[] | undefined;
1778
+ cwd?: string | undefined;
1779
+ staticEnv?: Record<string, string> | undefined;
1780
+ forwardedEnv?: string[] | undefined;
1781
+ secretEnvNames?: string[] | undefined;
1782
+ toolAllowlist?: string[] | undefined;
1783
+ toolDenylist?: string[] | undefined;
1784
+ }, {
1785
+ command: string;
1786
+ args?: string[] | undefined;
1787
+ cwd?: string | undefined;
1788
+ staticEnv?: Record<string, string> | undefined;
1789
+ forwardedEnv?: string[] | undefined;
1790
+ secretEnvNames?: string[] | undefined;
1791
+ toolAllowlist?: string[] | undefined;
1792
+ toolDenylist?: string[] | undefined;
1793
+ }>, {
1794
+ command: string;
1795
+ args?: string[] | undefined;
1796
+ cwd?: string | undefined;
1797
+ staticEnv?: Record<string, string> | undefined;
1798
+ forwardedEnv?: string[] | undefined;
1799
+ secretEnvNames?: string[] | undefined;
1800
+ toolAllowlist?: string[] | undefined;
1801
+ toolDenylist?: string[] | undefined;
1802
+ }, {
1803
+ command: string;
1804
+ args?: string[] | undefined;
1805
+ cwd?: string | undefined;
1806
+ staticEnv?: Record<string, string> | undefined;
1807
+ forwardedEnv?: string[] | undefined;
1808
+ secretEnvNames?: string[] | undefined;
1809
+ toolAllowlist?: string[] | undefined;
1810
+ toolDenylist?: string[] | undefined;
1811
+ }>, z.ZodEffects<z.ZodObject<{
1812
+ url: z.ZodOptional<z.ZodString>;
1813
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1814
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1815
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
1816
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1817
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
1818
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1819
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1820
+ }, "strict", z.ZodTypeAny, {
1821
+ url?: string | undefined;
1822
+ toolAllowlist?: string[] | undefined;
1823
+ toolDenylist?: string[] | undefined;
1824
+ staticHeaders?: Record<string, string> | undefined;
1825
+ headersFromEnv?: Record<string, string> | undefined;
1826
+ bearerTokenEnvVar?: string | undefined;
1827
+ secretHeaderNames?: string[] | undefined;
1828
+ hasBearerToken?: boolean | undefined;
1829
+ }, {
1830
+ url?: string | undefined;
1831
+ toolAllowlist?: string[] | undefined;
1832
+ toolDenylist?: string[] | undefined;
1833
+ staticHeaders?: Record<string, string> | undefined;
1834
+ headersFromEnv?: Record<string, string> | undefined;
1835
+ bearerTokenEnvVar?: string | undefined;
1836
+ secretHeaderNames?: string[] | undefined;
1837
+ hasBearerToken?: boolean | undefined;
1838
+ }>, {
1839
+ url?: string | undefined;
1840
+ toolAllowlist?: string[] | undefined;
1841
+ toolDenylist?: string[] | undefined;
1842
+ staticHeaders?: Record<string, string> | undefined;
1843
+ headersFromEnv?: Record<string, string> | undefined;
1844
+ bearerTokenEnvVar?: string | undefined;
1845
+ secretHeaderNames?: string[] | undefined;
1846
+ hasBearerToken?: boolean | undefined;
1847
+ }, {
1848
+ url?: string | undefined;
1849
+ toolAllowlist?: string[] | undefined;
1850
+ toolDenylist?: string[] | undefined;
1851
+ staticHeaders?: Record<string, string> | undefined;
1852
+ headersFromEnv?: Record<string, string> | undefined;
1853
+ bearerTokenEnvVar?: string | undefined;
1854
+ secretHeaderNames?: string[] | undefined;
1855
+ hasBearerToken?: boolean | undefined;
1856
+ }>, z.ZodObject<{
1857
+ legacyConfigRetained: z.ZodLiteral<true>;
1858
+ }, "strict", z.ZodTypeAny, {
1859
+ legacyConfigRetained: true;
1860
+ }, {
1861
+ legacyConfigRetained: true;
1862
+ }>, z.ZodObject<{
1863
+ featureGroups: z.ZodObject<{
1864
+ mode: z.ZodLiteral<"provider_default">;
1865
+ excluded: z.ZodArray<z.ZodString, "many">;
1866
+ }, "strict", z.ZodTypeAny, {
1867
+ mode: "provider_default";
1868
+ excluded: string[];
1869
+ }, {
1870
+ mode: "provider_default";
1871
+ excluded: string[];
1872
+ }>;
1873
+ }, "strict", z.ZodTypeAny, {
1874
+ featureGroups: {
1875
+ mode: "provider_default";
1876
+ excluded: string[];
1877
+ };
1878
+ }, {
1879
+ featureGroups: {
1880
+ mode: "provider_default";
1881
+ excluded: string[];
1882
+ };
1883
+ }>]>;
1884
+ startupTimeoutMs: z.ZodNumber;
1885
+ toolTimeoutMs: z.ZodNumber;
1886
+ enabled: z.ZodBoolean;
1887
+ required: z.ZodBoolean;
1888
+ hasCredentials: z.ZodBoolean;
1889
+ lastDiscoveredAt: z.ZodNullable<z.ZodString>;
1890
+ activatedAt: z.ZodNullable<z.ZodString>;
1891
+ disabledAt: z.ZodNullable<z.ZodString>;
1892
+ revokedAt: z.ZodNullable<z.ZodString>;
1893
+ createdAt: z.ZodString;
1894
+ updatedAt: z.ZodString;
1895
+ }, "strict", z.ZodTypeAny, {
1896
+ status: "active" | "disabled" | "error" | "revoked" | "draft" | "authorizing" | "selecting_scope" | "needs_reauth";
1897
+ id: string;
1898
+ orgId: string;
1899
+ displayName: string;
1900
+ createdAt: string;
1901
+ updatedAt: string;
1902
+ revokedAt: string | null;
1903
+ name: string;
1904
+ accessMode: "provider_default" | "read_only" | "read_write";
1905
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1906
+ safeConfig: {
1907
+ command: string;
1908
+ args?: string[] | undefined;
1909
+ cwd?: string | undefined;
1910
+ staticEnv?: Record<string, string> | undefined;
1911
+ forwardedEnv?: string[] | undefined;
1912
+ secretEnvNames?: string[] | undefined;
1913
+ toolAllowlist?: string[] | undefined;
1914
+ toolDenylist?: string[] | undefined;
1915
+ } | {
1916
+ url?: string | undefined;
1917
+ toolAllowlist?: string[] | undefined;
1918
+ toolDenylist?: string[] | undefined;
1919
+ staticHeaders?: Record<string, string> | undefined;
1920
+ headersFromEnv?: Record<string, string> | undefined;
1921
+ bearerTokenEnvVar?: string | undefined;
1922
+ secretHeaderNames?: string[] | undefined;
1923
+ hasBearerToken?: boolean | undefined;
1924
+ } | {
1925
+ legacyConfigRetained: true;
1926
+ } | {
1927
+ featureGroups: {
1928
+ mode: "provider_default";
1929
+ excluded: string[];
1930
+ };
1931
+ };
1932
+ enabled: boolean;
1933
+ provider: "supabase" | "linear" | "notion" | "custom";
1934
+ externalScope: string | null;
1935
+ startupTimeoutMs: number;
1936
+ toolTimeoutMs: number;
1937
+ required: boolean;
1938
+ hasCredentials: boolean;
1939
+ lastDiscoveredAt: string | null;
1940
+ activatedAt: string | null;
1941
+ disabledAt: string | null;
1942
+ }, {
1943
+ status: "active" | "disabled" | "error" | "revoked" | "draft" | "authorizing" | "selecting_scope" | "needs_reauth";
1944
+ id: string;
1945
+ orgId: string;
1946
+ displayName: string;
1947
+ createdAt: string;
1948
+ updatedAt: string;
1949
+ revokedAt: string | null;
1950
+ name: string;
1951
+ accessMode: "provider_default" | "read_only" | "read_write";
1952
+ transport: "stdio" | "streamable_http" | "legacy_manual";
1953
+ safeConfig: {
1954
+ command: string;
1955
+ args?: string[] | undefined;
1956
+ cwd?: string | undefined;
1957
+ staticEnv?: Record<string, string> | undefined;
1958
+ forwardedEnv?: string[] | undefined;
1959
+ secretEnvNames?: string[] | undefined;
1960
+ toolAllowlist?: string[] | undefined;
1961
+ toolDenylist?: string[] | undefined;
1962
+ } | {
1963
+ url?: string | undefined;
1964
+ toolAllowlist?: string[] | undefined;
1965
+ toolDenylist?: string[] | undefined;
1966
+ staticHeaders?: Record<string, string> | undefined;
1967
+ headersFromEnv?: Record<string, string> | undefined;
1968
+ bearerTokenEnvVar?: string | undefined;
1969
+ secretHeaderNames?: string[] | undefined;
1970
+ hasBearerToken?: boolean | undefined;
1971
+ } | {
1972
+ legacyConfigRetained: true;
1973
+ } | {
1974
+ featureGroups: {
1975
+ mode: "provider_default";
1976
+ excluded: string[];
1977
+ };
1978
+ };
1979
+ enabled: boolean;
1980
+ provider: "supabase" | "linear" | "notion" | "custom";
1981
+ externalScope: string | null;
1982
+ startupTimeoutMs: number;
1983
+ toolTimeoutMs: number;
1984
+ required: boolean;
1985
+ hasCredentials: boolean;
1986
+ lastDiscoveredAt: string | null;
1987
+ activatedAt: string | null;
1988
+ disabledAt: string | null;
1989
+ }>;
1990
+ export declare const mcpProviderCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
1991
+ id: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
1992
+ label: z.ZodString;
1993
+ curated: z.ZodBoolean;
1994
+ requiresOAuth: z.ZodBoolean;
1995
+ requiresScopeSelection: z.ZodBoolean;
1996
+ scopeLabel: z.ZodString;
1997
+ transports: z.ZodArray<z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>, "many">;
1998
+ accessModes: z.ZodArray<z.ZodEnum<["provider_default", "read_only", "read_write"]>, "many">;
1999
+ defaultAccessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
2000
+ }, "strict", z.ZodTypeAny, {
2001
+ id: "supabase" | "linear" | "notion" | "custom";
2002
+ label: string;
2003
+ curated: boolean;
2004
+ requiresOAuth: boolean;
2005
+ requiresScopeSelection: boolean;
2006
+ scopeLabel: string;
2007
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2008
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2009
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2010
+ }, {
2011
+ id: "supabase" | "linear" | "notion" | "custom";
2012
+ label: string;
2013
+ curated: boolean;
2014
+ requiresOAuth: boolean;
2015
+ requiresScopeSelection: boolean;
2016
+ scopeLabel: string;
2017
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2018
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2019
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2020
+ }>, {
2021
+ id: "supabase" | "linear" | "notion" | "custom";
2022
+ label: string;
2023
+ curated: boolean;
2024
+ requiresOAuth: boolean;
2025
+ requiresScopeSelection: boolean;
2026
+ scopeLabel: string;
2027
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2028
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2029
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2030
+ }, {
2031
+ id: "supabase" | "linear" | "notion" | "custom";
2032
+ label: string;
2033
+ curated: boolean;
2034
+ requiresOAuth: boolean;
2035
+ requiresScopeSelection: boolean;
2036
+ scopeLabel: string;
2037
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2038
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2039
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2040
+ }>;
2041
+ export declare const mcpProviderCatalogSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
2042
+ id: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
2043
+ label: z.ZodString;
2044
+ curated: z.ZodBoolean;
2045
+ requiresOAuth: z.ZodBoolean;
2046
+ requiresScopeSelection: z.ZodBoolean;
2047
+ scopeLabel: z.ZodString;
2048
+ transports: z.ZodArray<z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>, "many">;
2049
+ accessModes: z.ZodArray<z.ZodEnum<["provider_default", "read_only", "read_write"]>, "many">;
2050
+ defaultAccessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
2051
+ }, "strict", z.ZodTypeAny, {
2052
+ id: "supabase" | "linear" | "notion" | "custom";
2053
+ label: string;
2054
+ curated: boolean;
2055
+ requiresOAuth: boolean;
2056
+ requiresScopeSelection: boolean;
2057
+ scopeLabel: string;
2058
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2059
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2060
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2061
+ }, {
2062
+ id: "supabase" | "linear" | "notion" | "custom";
2063
+ label: string;
2064
+ curated: boolean;
2065
+ requiresOAuth: boolean;
2066
+ requiresScopeSelection: boolean;
2067
+ scopeLabel: string;
2068
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2069
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2070
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2071
+ }>, {
2072
+ id: "supabase" | "linear" | "notion" | "custom";
2073
+ label: string;
2074
+ curated: boolean;
2075
+ requiresOAuth: boolean;
2076
+ requiresScopeSelection: boolean;
2077
+ scopeLabel: string;
2078
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2079
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2080
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2081
+ }, {
2082
+ id: "supabase" | "linear" | "notion" | "custom";
2083
+ label: string;
2084
+ curated: boolean;
2085
+ requiresOAuth: boolean;
2086
+ requiresScopeSelection: boolean;
2087
+ scopeLabel: string;
2088
+ transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2089
+ accessModes: ("provider_default" | "read_only" | "read_write")[];
2090
+ defaultAccessMode: "provider_default" | "read_only" | "read_write";
2091
+ }>, "many">;
2092
+ export declare const mcpOAuthStartSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
2093
+ export declare const mcpOAuthStartResponseSchema: z.ZodObject<{
2094
+ connectionId: z.ZodString;
2095
+ authorizationUrl: z.ZodString;
2096
+ expiresAt: z.ZodString;
2097
+ }, "strict", z.ZodTypeAny, {
2098
+ connectionId: string;
2099
+ authorizationUrl: string;
2100
+ expiresAt: string;
2101
+ }, {
2102
+ connectionId: string;
2103
+ authorizationUrl: string;
2104
+ expiresAt: string;
2105
+ }>;
2106
+ export declare const mcpOAuthCallbackSchema: z.ZodEffects<z.ZodObject<{
2107
+ state: z.ZodString;
2108
+ code: z.ZodOptional<z.ZodString>;
2109
+ error: z.ZodOptional<z.ZodString>;
2110
+ errorDescription: z.ZodOptional<z.ZodString>;
2111
+ iss: z.ZodOptional<z.ZodString>;
2112
+ }, "strict", z.ZodTypeAny, {
2113
+ state: string;
2114
+ code?: string | undefined;
2115
+ error?: string | undefined;
2116
+ errorDescription?: string | undefined;
2117
+ iss?: string | undefined;
2118
+ }, {
2119
+ state: string;
2120
+ code?: string | undefined;
2121
+ error?: string | undefined;
2122
+ errorDescription?: string | undefined;
2123
+ iss?: string | undefined;
2124
+ }>, {
2125
+ state: string;
2126
+ code?: string | undefined;
2127
+ error?: string | undefined;
2128
+ errorDescription?: string | undefined;
2129
+ iss?: string | undefined;
2130
+ }, {
2131
+ state: string;
2132
+ code?: string | undefined;
2133
+ error?: string | undefined;
2134
+ errorDescription?: string | undefined;
2135
+ iss?: string | undefined;
2136
+ }>;
2137
+ export declare const mcpScopeSelectionSchema: z.ZodObject<{
2138
+ connectionId: z.ZodString;
2139
+ externalScope: z.ZodString;
2140
+ accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
2141
+ }, "strict", z.ZodTypeAny, {
2142
+ accessMode: "provider_default" | "read_only" | "read_write";
2143
+ externalScope: string;
2144
+ connectionId: string;
2145
+ }, {
2146
+ accessMode: "provider_default" | "read_only" | "read_write";
2147
+ externalScope: string;
2148
+ connectionId: string;
2149
+ }>;
2150
+ export declare const mcpExternalScopeOptionSchema: z.ZodObject<{
2151
+ id: z.ZodString;
2152
+ displayName: z.ZodString;
2153
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2154
+ }, "strict", z.ZodTypeAny, {
2155
+ id: string;
2156
+ displayName: string;
2157
+ metadata: Record<string, unknown>;
2158
+ }, {
2159
+ id: string;
2160
+ displayName: string;
2161
+ metadata?: Record<string, unknown> | undefined;
2162
+ }>;
2163
+ export declare const mcpOAuthGrantSummarySchema: z.ZodObject<{
2164
+ id: z.ZodString;
2165
+ connectionId: z.ZodString;
2166
+ providerSubject: z.ZodNullable<z.ZodString>;
2167
+ providerScopes: z.ZodArray<z.ZodString, "many">;
2168
+ externalScopeMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2169
+ status: z.ZodEnum<["active", "needs_reauth", "revoked", "error"]>;
2170
+ hasCredentials: z.ZodBoolean;
2171
+ expiresAt: z.ZodNullable<z.ZodString>;
2172
+ lastRefreshedAt: z.ZodNullable<z.ZodString>;
2173
+ revokedAt: z.ZodNullable<z.ZodString>;
2174
+ createdAt: z.ZodString;
2175
+ updatedAt: z.ZodString;
2176
+ }, "strict", z.ZodTypeAny, {
2177
+ status: "active" | "error" | "revoked" | "needs_reauth";
2178
+ id: string;
2179
+ createdAt: string;
2180
+ updatedAt: string;
2181
+ revokedAt: string | null;
2182
+ hasCredentials: boolean;
2183
+ connectionId: string;
2184
+ expiresAt: string | null;
2185
+ providerSubject: string | null;
2186
+ providerScopes: string[];
2187
+ externalScopeMetadata: Record<string, unknown>;
2188
+ lastRefreshedAt: string | null;
2189
+ }, {
2190
+ status: "active" | "error" | "revoked" | "needs_reauth";
2191
+ id: string;
2192
+ createdAt: string;
2193
+ updatedAt: string;
2194
+ revokedAt: string | null;
2195
+ hasCredentials: boolean;
2196
+ connectionId: string;
2197
+ expiresAt: string | null;
2198
+ providerSubject: string | null;
2199
+ providerScopes: string[];
2200
+ externalScopeMetadata: Record<string, unknown>;
2201
+ lastRefreshedAt: string | null;
2202
+ }>;
2203
+ export declare const mcpDiscoveredToolSchema: z.ZodObject<{
2204
+ id: z.ZodString;
2205
+ connectionId: z.ZodString;
2206
+ externalToolName: z.ZodString;
2207
+ rudderToolName: z.ZodString;
2208
+ description: z.ZodNullable<z.ZodString>;
2209
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2210
+ outputSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2211
+ enabled: z.ZodBoolean;
2212
+ removedAt: z.ZodNullable<z.ZodString>;
2213
+ }, "strict", z.ZodTypeAny, {
2214
+ id: string;
2215
+ description: string | null;
2216
+ externalToolName: string;
2217
+ rudderToolName: string;
2218
+ inputSchema: Record<string, unknown>;
2219
+ enabled: boolean;
2220
+ connectionId: string;
2221
+ outputSchema: Record<string, unknown> | null;
2222
+ removedAt: string | null;
2223
+ }, {
2224
+ id: string;
2225
+ description: string | null;
2226
+ externalToolName: string;
2227
+ rudderToolName: string;
2228
+ inputSchema: Record<string, unknown>;
2229
+ enabled: boolean;
2230
+ connectionId: string;
2231
+ outputSchema: Record<string, unknown> | null;
2232
+ removedAt: string | null;
2233
+ }>;
2234
+ export declare const mcpAgentBindingSchema: z.ZodObject<{
2235
+ id: z.ZodString;
2236
+ connectionId: z.ZodString;
2237
+ agentId: z.ZodString;
2238
+ status: z.ZodEnum<["active", "disabled", "revoked"]>;
2239
+ enabledToolIds: z.ZodArray<z.ZodString, "many">;
2240
+ }, "strict", z.ZodTypeAny, {
2241
+ status: "active" | "disabled" | "revoked";
2242
+ agentId: string;
2243
+ id: string;
2244
+ enabledToolIds: string[];
2245
+ connectionId: string;
2246
+ }, {
2247
+ status: "active" | "disabled" | "revoked";
2248
+ agentId: string;
2249
+ id: string;
2250
+ enabledToolIds: string[];
2251
+ connectionId: string;
2252
+ }>;
2253
+ export declare const mcpAgentConnectionSummarySchema: z.ZodObject<{
2254
+ connection: z.ZodObject<{
2255
+ id: z.ZodString;
2256
+ orgId: z.ZodString;
2257
+ name: z.ZodString;
2258
+ displayName: z.ZodString;
2259
+ provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
2260
+ transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
2261
+ externalScope: z.ZodNullable<z.ZodString>;
2262
+ accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
2263
+ status: z.ZodEnum<["draft", "authorizing", "selecting_scope", "active", "needs_reauth", "disabled", "revoked", "error"]>;
2264
+ safeConfig: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
2265
+ command: z.ZodString;
2266
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2267
+ cwd: z.ZodOptional<z.ZodString>;
2268
+ staticEnv: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
2269
+ forwardedEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2270
+ secretEnvNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2271
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2272
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2273
+ }, "strict", z.ZodTypeAny, {
2274
+ command: string;
2275
+ args?: string[] | undefined;
2276
+ cwd?: string | undefined;
2277
+ staticEnv?: Record<string, string> | undefined;
2278
+ forwardedEnv?: string[] | undefined;
2279
+ secretEnvNames?: string[] | undefined;
2280
+ toolAllowlist?: string[] | undefined;
2281
+ toolDenylist?: string[] | undefined;
2282
+ }, {
2283
+ command: string;
2284
+ args?: string[] | undefined;
2285
+ cwd?: string | undefined;
2286
+ staticEnv?: Record<string, string> | undefined;
2287
+ forwardedEnv?: string[] | undefined;
2288
+ secretEnvNames?: string[] | undefined;
2289
+ toolAllowlist?: string[] | undefined;
2290
+ toolDenylist?: string[] | undefined;
2291
+ }>, {
2292
+ command: string;
2293
+ args?: string[] | undefined;
2294
+ cwd?: string | undefined;
2295
+ staticEnv?: Record<string, string> | undefined;
2296
+ forwardedEnv?: string[] | undefined;
2297
+ secretEnvNames?: string[] | undefined;
2298
+ toolAllowlist?: string[] | undefined;
2299
+ toolDenylist?: string[] | undefined;
2300
+ }, {
2301
+ command: string;
2302
+ args?: string[] | undefined;
2303
+ cwd?: string | undefined;
2304
+ staticEnv?: Record<string, string> | undefined;
2305
+ forwardedEnv?: string[] | undefined;
2306
+ secretEnvNames?: string[] | undefined;
2307
+ toolAllowlist?: string[] | undefined;
2308
+ toolDenylist?: string[] | undefined;
2309
+ }>, z.ZodEffects<z.ZodObject<{
2310
+ url: z.ZodOptional<z.ZodString>;
2311
+ staticHeaders: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
2312
+ headersFromEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2313
+ bearerTokenEnvVar: z.ZodOptional<z.ZodString>;
2314
+ secretHeaderNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2315
+ hasBearerToken: z.ZodOptional<z.ZodBoolean>;
2316
+ toolAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2317
+ toolDenylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2318
+ }, "strict", z.ZodTypeAny, {
2319
+ url?: string | undefined;
2320
+ toolAllowlist?: string[] | undefined;
2321
+ toolDenylist?: string[] | undefined;
2322
+ staticHeaders?: Record<string, string> | undefined;
2323
+ headersFromEnv?: Record<string, string> | undefined;
2324
+ bearerTokenEnvVar?: string | undefined;
2325
+ secretHeaderNames?: string[] | undefined;
2326
+ hasBearerToken?: boolean | undefined;
2327
+ }, {
2328
+ url?: string | undefined;
2329
+ toolAllowlist?: string[] | undefined;
2330
+ toolDenylist?: string[] | undefined;
2331
+ staticHeaders?: Record<string, string> | undefined;
2332
+ headersFromEnv?: Record<string, string> | undefined;
2333
+ bearerTokenEnvVar?: string | undefined;
2334
+ secretHeaderNames?: string[] | undefined;
2335
+ hasBearerToken?: boolean | undefined;
2336
+ }>, {
2337
+ url?: string | undefined;
2338
+ toolAllowlist?: string[] | undefined;
2339
+ toolDenylist?: string[] | undefined;
2340
+ staticHeaders?: Record<string, string> | undefined;
2341
+ headersFromEnv?: Record<string, string> | undefined;
2342
+ bearerTokenEnvVar?: string | undefined;
2343
+ secretHeaderNames?: string[] | undefined;
2344
+ hasBearerToken?: boolean | undefined;
2345
+ }, {
2346
+ url?: string | undefined;
2347
+ toolAllowlist?: string[] | undefined;
2348
+ toolDenylist?: string[] | undefined;
2349
+ staticHeaders?: Record<string, string> | undefined;
2350
+ headersFromEnv?: Record<string, string> | undefined;
2351
+ bearerTokenEnvVar?: string | undefined;
2352
+ secretHeaderNames?: string[] | undefined;
2353
+ hasBearerToken?: boolean | undefined;
2354
+ }>, z.ZodObject<{
2355
+ legacyConfigRetained: z.ZodLiteral<true>;
2356
+ }, "strict", z.ZodTypeAny, {
2357
+ legacyConfigRetained: true;
2358
+ }, {
2359
+ legacyConfigRetained: true;
2360
+ }>, z.ZodObject<{
2361
+ featureGroups: z.ZodObject<{
2362
+ mode: z.ZodLiteral<"provider_default">;
2363
+ excluded: z.ZodArray<z.ZodString, "many">;
2364
+ }, "strict", z.ZodTypeAny, {
2365
+ mode: "provider_default";
2366
+ excluded: string[];
2367
+ }, {
2368
+ mode: "provider_default";
2369
+ excluded: string[];
2370
+ }>;
2371
+ }, "strict", z.ZodTypeAny, {
2372
+ featureGroups: {
2373
+ mode: "provider_default";
2374
+ excluded: string[];
2375
+ };
2376
+ }, {
2377
+ featureGroups: {
2378
+ mode: "provider_default";
2379
+ excluded: string[];
2380
+ };
2381
+ }>]>;
2382
+ startupTimeoutMs: z.ZodNumber;
2383
+ toolTimeoutMs: z.ZodNumber;
2384
+ enabled: z.ZodBoolean;
2385
+ required: z.ZodBoolean;
2386
+ hasCredentials: z.ZodBoolean;
2387
+ lastDiscoveredAt: z.ZodNullable<z.ZodString>;
2388
+ activatedAt: z.ZodNullable<z.ZodString>;
2389
+ disabledAt: z.ZodNullable<z.ZodString>;
2390
+ revokedAt: z.ZodNullable<z.ZodString>;
2391
+ createdAt: z.ZodString;
2392
+ updatedAt: z.ZodString;
2393
+ }, "strict", z.ZodTypeAny, {
2394
+ status: "active" | "disabled" | "error" | "revoked" | "draft" | "authorizing" | "selecting_scope" | "needs_reauth";
2395
+ id: string;
2396
+ orgId: string;
2397
+ displayName: string;
2398
+ createdAt: string;
2399
+ updatedAt: string;
2400
+ revokedAt: string | null;
2401
+ name: string;
2402
+ accessMode: "provider_default" | "read_only" | "read_write";
2403
+ transport: "stdio" | "streamable_http" | "legacy_manual";
2404
+ safeConfig: {
2405
+ command: string;
2406
+ args?: string[] | undefined;
2407
+ cwd?: string | undefined;
2408
+ staticEnv?: Record<string, string> | undefined;
2409
+ forwardedEnv?: string[] | undefined;
2410
+ secretEnvNames?: string[] | undefined;
2411
+ toolAllowlist?: string[] | undefined;
2412
+ toolDenylist?: string[] | undefined;
2413
+ } | {
2414
+ url?: string | undefined;
2415
+ toolAllowlist?: string[] | undefined;
2416
+ toolDenylist?: string[] | undefined;
2417
+ staticHeaders?: Record<string, string> | undefined;
2418
+ headersFromEnv?: Record<string, string> | undefined;
2419
+ bearerTokenEnvVar?: string | undefined;
2420
+ secretHeaderNames?: string[] | undefined;
2421
+ hasBearerToken?: boolean | undefined;
2422
+ } | {
2423
+ legacyConfigRetained: true;
2424
+ } | {
2425
+ featureGroups: {
2426
+ mode: "provider_default";
2427
+ excluded: string[];
2428
+ };
2429
+ };
2430
+ enabled: boolean;
2431
+ provider: "supabase" | "linear" | "notion" | "custom";
2432
+ externalScope: string | null;
2433
+ startupTimeoutMs: number;
2434
+ toolTimeoutMs: number;
2435
+ required: boolean;
2436
+ hasCredentials: boolean;
2437
+ lastDiscoveredAt: string | null;
2438
+ activatedAt: string | null;
2439
+ disabledAt: string | null;
2440
+ }, {
2441
+ status: "active" | "disabled" | "error" | "revoked" | "draft" | "authorizing" | "selecting_scope" | "needs_reauth";
2442
+ id: string;
2443
+ orgId: string;
2444
+ displayName: string;
2445
+ createdAt: string;
2446
+ updatedAt: string;
2447
+ revokedAt: string | null;
2448
+ name: string;
2449
+ accessMode: "provider_default" | "read_only" | "read_write";
2450
+ transport: "stdio" | "streamable_http" | "legacy_manual";
2451
+ safeConfig: {
2452
+ command: string;
2453
+ args?: string[] | undefined;
2454
+ cwd?: string | undefined;
2455
+ staticEnv?: Record<string, string> | undefined;
2456
+ forwardedEnv?: string[] | undefined;
2457
+ secretEnvNames?: string[] | undefined;
2458
+ toolAllowlist?: string[] | undefined;
2459
+ toolDenylist?: string[] | undefined;
2460
+ } | {
2461
+ url?: string | undefined;
2462
+ toolAllowlist?: string[] | undefined;
2463
+ toolDenylist?: string[] | undefined;
2464
+ staticHeaders?: Record<string, string> | undefined;
2465
+ headersFromEnv?: Record<string, string> | undefined;
2466
+ bearerTokenEnvVar?: string | undefined;
2467
+ secretHeaderNames?: string[] | undefined;
2468
+ hasBearerToken?: boolean | undefined;
2469
+ } | {
2470
+ legacyConfigRetained: true;
2471
+ } | {
2472
+ featureGroups: {
2473
+ mode: "provider_default";
2474
+ excluded: string[];
2475
+ };
2476
+ };
2477
+ enabled: boolean;
2478
+ provider: "supabase" | "linear" | "notion" | "custom";
2479
+ externalScope: string | null;
2480
+ startupTimeoutMs: number;
2481
+ toolTimeoutMs: number;
2482
+ required: boolean;
2483
+ hasCredentials: boolean;
2484
+ lastDiscoveredAt: string | null;
2485
+ activatedAt: string | null;
2486
+ disabledAt: string | null;
2487
+ }>;
2488
+ binding: z.ZodNullable<z.ZodObject<{
2489
+ id: z.ZodString;
2490
+ connectionId: z.ZodString;
2491
+ agentId: z.ZodString;
2492
+ status: z.ZodEnum<["active", "disabled", "revoked"]>;
2493
+ enabledToolIds: z.ZodArray<z.ZodString, "many">;
2494
+ }, "strict", z.ZodTypeAny, {
2495
+ status: "active" | "disabled" | "revoked";
2496
+ agentId: string;
2497
+ id: string;
2498
+ enabledToolIds: string[];
2499
+ connectionId: string;
2500
+ }, {
2501
+ status: "active" | "disabled" | "revoked";
2502
+ agentId: string;
2503
+ id: string;
2504
+ enabledToolIds: string[];
2505
+ connectionId: string;
2506
+ }>>;
2507
+ tools: z.ZodArray<z.ZodObject<{
2508
+ id: z.ZodString;
2509
+ connectionId: z.ZodString;
2510
+ externalToolName: z.ZodString;
2511
+ rudderToolName: z.ZodString;
2512
+ description: z.ZodNullable<z.ZodString>;
2513
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2514
+ outputSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2515
+ enabled: z.ZodBoolean;
2516
+ removedAt: z.ZodNullable<z.ZodString>;
2517
+ }, "strict", z.ZodTypeAny, {
2518
+ id: string;
2519
+ description: string | null;
2520
+ externalToolName: string;
2521
+ rudderToolName: string;
2522
+ inputSchema: Record<string, unknown>;
2523
+ enabled: boolean;
2524
+ connectionId: string;
2525
+ outputSchema: Record<string, unknown> | null;
2526
+ removedAt: string | null;
2527
+ }, {
2528
+ id: string;
2529
+ description: string | null;
2530
+ externalToolName: string;
2531
+ rudderToolName: string;
2532
+ inputSchema: Record<string, unknown>;
2533
+ enabled: boolean;
2534
+ connectionId: string;
2535
+ outputSchema: Record<string, unknown> | null;
2536
+ removedAt: string | null;
2537
+ }>, "many">;
2538
+ }, "strict", z.ZodTypeAny, {
2539
+ tools: {
2540
+ id: string;
2541
+ description: string | null;
2542
+ externalToolName: string;
2543
+ rudderToolName: string;
2544
+ inputSchema: Record<string, unknown>;
2545
+ enabled: boolean;
2546
+ connectionId: string;
2547
+ outputSchema: Record<string, unknown> | null;
2548
+ removedAt: string | null;
2549
+ }[];
2550
+ connection: {
2551
+ status: "active" | "disabled" | "error" | "revoked" | "draft" | "authorizing" | "selecting_scope" | "needs_reauth";
2552
+ id: string;
2553
+ orgId: string;
2554
+ displayName: string;
2555
+ createdAt: string;
2556
+ updatedAt: string;
2557
+ revokedAt: string | null;
2558
+ name: string;
2559
+ accessMode: "provider_default" | "read_only" | "read_write";
2560
+ transport: "stdio" | "streamable_http" | "legacy_manual";
2561
+ safeConfig: {
2562
+ command: string;
2563
+ args?: string[] | undefined;
2564
+ cwd?: string | undefined;
2565
+ staticEnv?: Record<string, string> | undefined;
2566
+ forwardedEnv?: string[] | undefined;
2567
+ secretEnvNames?: string[] | undefined;
2568
+ toolAllowlist?: string[] | undefined;
2569
+ toolDenylist?: string[] | undefined;
2570
+ } | {
2571
+ url?: string | undefined;
2572
+ toolAllowlist?: string[] | undefined;
2573
+ toolDenylist?: string[] | undefined;
2574
+ staticHeaders?: Record<string, string> | undefined;
2575
+ headersFromEnv?: Record<string, string> | undefined;
2576
+ bearerTokenEnvVar?: string | undefined;
2577
+ secretHeaderNames?: string[] | undefined;
2578
+ hasBearerToken?: boolean | undefined;
2579
+ } | {
2580
+ legacyConfigRetained: true;
2581
+ } | {
2582
+ featureGroups: {
2583
+ mode: "provider_default";
2584
+ excluded: string[];
2585
+ };
2586
+ };
2587
+ enabled: boolean;
2588
+ provider: "supabase" | "linear" | "notion" | "custom";
2589
+ externalScope: string | null;
2590
+ startupTimeoutMs: number;
2591
+ toolTimeoutMs: number;
2592
+ required: boolean;
2593
+ hasCredentials: boolean;
2594
+ lastDiscoveredAt: string | null;
2595
+ activatedAt: string | null;
2596
+ disabledAt: string | null;
2597
+ };
2598
+ binding: {
2599
+ status: "active" | "disabled" | "revoked";
2600
+ agentId: string;
2601
+ id: string;
2602
+ enabledToolIds: string[];
2603
+ connectionId: string;
2604
+ } | null;
2605
+ }, {
2606
+ tools: {
2607
+ id: string;
2608
+ description: string | null;
2609
+ externalToolName: string;
2610
+ rudderToolName: string;
2611
+ inputSchema: Record<string, unknown>;
2612
+ enabled: boolean;
2613
+ connectionId: string;
2614
+ outputSchema: Record<string, unknown> | null;
2615
+ removedAt: string | null;
2616
+ }[];
2617
+ connection: {
2618
+ status: "active" | "disabled" | "error" | "revoked" | "draft" | "authorizing" | "selecting_scope" | "needs_reauth";
2619
+ id: string;
2620
+ orgId: string;
2621
+ displayName: string;
2622
+ createdAt: string;
2623
+ updatedAt: string;
2624
+ revokedAt: string | null;
2625
+ name: string;
2626
+ accessMode: "provider_default" | "read_only" | "read_write";
2627
+ transport: "stdio" | "streamable_http" | "legacy_manual";
2628
+ safeConfig: {
2629
+ command: string;
2630
+ args?: string[] | undefined;
2631
+ cwd?: string | undefined;
2632
+ staticEnv?: Record<string, string> | undefined;
2633
+ forwardedEnv?: string[] | undefined;
2634
+ secretEnvNames?: string[] | undefined;
2635
+ toolAllowlist?: string[] | undefined;
2636
+ toolDenylist?: string[] | undefined;
2637
+ } | {
2638
+ url?: string | undefined;
2639
+ toolAllowlist?: string[] | undefined;
2640
+ toolDenylist?: string[] | undefined;
2641
+ staticHeaders?: Record<string, string> | undefined;
2642
+ headersFromEnv?: Record<string, string> | undefined;
2643
+ bearerTokenEnvVar?: string | undefined;
2644
+ secretHeaderNames?: string[] | undefined;
2645
+ hasBearerToken?: boolean | undefined;
2646
+ } | {
2647
+ legacyConfigRetained: true;
2648
+ } | {
2649
+ featureGroups: {
2650
+ mode: "provider_default";
2651
+ excluded: string[];
2652
+ };
2653
+ };
2654
+ enabled: boolean;
2655
+ provider: "supabase" | "linear" | "notion" | "custom";
2656
+ externalScope: string | null;
2657
+ startupTimeoutMs: number;
2658
+ toolTimeoutMs: number;
2659
+ required: boolean;
2660
+ hasCredentials: boolean;
2661
+ lastDiscoveredAt: string | null;
2662
+ activatedAt: string | null;
2663
+ disabledAt: string | null;
2664
+ };
2665
+ binding: {
2666
+ status: "active" | "disabled" | "revoked";
2667
+ agentId: string;
2668
+ id: string;
2669
+ enabledToolIds: string[];
2670
+ connectionId: string;
2671
+ } | null;
2672
+ }>;
2673
+ export declare const upsertMcpAgentBindingSchema: z.ZodObject<{
2674
+ status: z.ZodOptional<z.ZodEnum<["active", "disabled", "revoked"]>>;
2675
+ enabledToolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2676
+ }, "strict", z.ZodTypeAny, {
2677
+ status?: "active" | "disabled" | "revoked" | undefined;
2678
+ enabledToolIds?: string[] | undefined;
2679
+ }, {
2680
+ status?: "active" | "disabled" | "revoked" | undefined;
2681
+ enabledToolIds?: string[] | undefined;
2682
+ }>;
2683
+ export declare const updateMcpAgentBindingSchema: z.ZodEffects<z.ZodObject<{
2684
+ status: z.ZodOptional<z.ZodEnum<["active", "disabled", "revoked"]>>;
2685
+ enabledToolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2686
+ }, "strict", z.ZodTypeAny, {
2687
+ status?: "active" | "disabled" | "revoked" | undefined;
2688
+ enabledToolIds?: string[] | undefined;
2689
+ }, {
2690
+ status?: "active" | "disabled" | "revoked" | undefined;
2691
+ enabledToolIds?: string[] | undefined;
2692
+ }>, {
2693
+ status?: "active" | "disabled" | "revoked" | undefined;
2694
+ enabledToolIds?: string[] | undefined;
2695
+ }, {
2696
+ status?: "active" | "disabled" | "revoked" | undefined;
2697
+ enabledToolIds?: string[] | undefined;
2698
+ }>;
2699
+ export declare const managedExternalMcpBindingSchema: z.ZodObject<{
2700
+ bindingId: z.ZodString;
2701
+ serverName: z.ZodString;
2702
+ toolPolicy: z.ZodObject<{
2703
+ mode: z.ZodLiteral<"allowlist">;
2704
+ allowedToolNames: z.ZodArray<z.ZodString, "many">;
2705
+ }, "strict", z.ZodTypeAny, {
2706
+ mode: "allowlist";
2707
+ allowedToolNames: string[];
2708
+ }, {
2709
+ mode: "allowlist";
2710
+ allowedToolNames: string[];
2711
+ }>;
2712
+ required: z.ZodBoolean;
2713
+ startupTimeoutMs: z.ZodNumber;
2714
+ toolTimeoutMs: z.ZodNumber;
2715
+ }, "strict", z.ZodTypeAny, {
2716
+ startupTimeoutMs: number;
2717
+ toolTimeoutMs: number;
2718
+ required: boolean;
2719
+ bindingId: string;
2720
+ serverName: string;
2721
+ toolPolicy: {
2722
+ mode: "allowlist";
2723
+ allowedToolNames: string[];
2724
+ };
2725
+ }, {
2726
+ startupTimeoutMs: number;
2727
+ toolTimeoutMs: number;
2728
+ required: boolean;
2729
+ bindingId: string;
2730
+ serverName: string;
2731
+ toolPolicy: {
2732
+ mode: "allowlist";
2733
+ allowedToolNames: string[];
2734
+ };
2735
+ }>;
2736
+ export declare const managedExternalMcpBindingsSchema: z.ZodArray<z.ZodObject<{
2737
+ bindingId: z.ZodString;
2738
+ serverName: z.ZodString;
2739
+ toolPolicy: z.ZodObject<{
2740
+ mode: z.ZodLiteral<"allowlist">;
2741
+ allowedToolNames: z.ZodArray<z.ZodString, "many">;
2742
+ }, "strict", z.ZodTypeAny, {
2743
+ mode: "allowlist";
2744
+ allowedToolNames: string[];
2745
+ }, {
2746
+ mode: "allowlist";
2747
+ allowedToolNames: string[];
2748
+ }>;
2749
+ required: z.ZodBoolean;
2750
+ startupTimeoutMs: z.ZodNumber;
2751
+ toolTimeoutMs: z.ZodNumber;
2752
+ }, "strict", z.ZodTypeAny, {
2753
+ startupTimeoutMs: number;
2754
+ toolTimeoutMs: number;
2755
+ required: boolean;
2756
+ bindingId: string;
2757
+ serverName: string;
2758
+ toolPolicy: {
2759
+ mode: "allowlist";
2760
+ allowedToolNames: string[];
2761
+ };
2762
+ }, {
2763
+ startupTimeoutMs: number;
2764
+ toolTimeoutMs: number;
2765
+ required: boolean;
2766
+ bindingId: string;
2767
+ serverName: string;
2768
+ toolPolicy: {
2769
+ mode: "allowlist";
2770
+ allowedToolNames: string[];
2771
+ };
2772
+ }>, "many">;
2773
+ export type CreateMcpConnection = z.infer<typeof createMcpConnectionSchema>;
2774
+ export type UpdateMcpConnection = z.infer<typeof updateMcpConnectionSchema>;
2775
+ export type McpOAuthStart = z.infer<typeof mcpOAuthStartSchema>;
2776
+ export type McpOAuthCallback = z.infer<typeof mcpOAuthCallbackSchema>;
2777
+ export type McpScopeSelection = z.infer<typeof mcpScopeSelectionSchema>;
2778
+ export type UpsertMcpAgentBinding = z.infer<typeof upsertMcpAgentBindingSchema>;
2779
+ export type UpdateMcpAgentBinding = z.infer<typeof updateMcpAgentBindingSchema>;
2780
+ //# sourceMappingURL=mcp.d.ts.map