@executor-js/plugin-mcp 1.4.32 → 1.5.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 (57) hide show
  1. package/dist/AddMcpSource-4LLERUW5.js +602 -0
  2. package/dist/AddMcpSource-4LLERUW5.js.map +1 -0
  3. package/dist/EditMcpSource-GKJRP75X.js +313 -0
  4. package/dist/EditMcpSource-GKJRP75X.js.map +1 -0
  5. package/dist/McpAccountsPanel-UX7MHEIG.js +132 -0
  6. package/dist/McpAccountsPanel-UX7MHEIG.js.map +1 -0
  7. package/dist/api/group.d.ts +79 -143
  8. package/dist/api/index.d.ts +99 -155
  9. package/dist/chunk-2TXHTMKM.js +1298 -0
  10. package/dist/chunk-2TXHTMKM.js.map +1 -0
  11. package/dist/chunk-6OEQZ72N.js +124 -0
  12. package/dist/chunk-6OEQZ72N.js.map +1 -0
  13. package/dist/chunk-7FJ3PUUL.js +21 -0
  14. package/dist/chunk-7FJ3PUUL.js.map +1 -0
  15. package/dist/chunk-N4EAF5CA.js +146 -0
  16. package/dist/chunk-N4EAF5CA.js.map +1 -0
  17. package/dist/client.js +9 -9
  18. package/dist/client.js.map +1 -1
  19. package/dist/core.js +36 -26
  20. package/dist/index.js +2 -2
  21. package/dist/promise.d.ts +1 -1
  22. package/dist/react/AddMcpSource.d.ts +1 -1
  23. package/dist/react/McpAccountsPanel.d.ts +6 -0
  24. package/dist/react/McpRemoteSourceFields.d.ts +4 -2
  25. package/dist/react/McpSignInButton.d.ts +2 -0
  26. package/dist/react/atoms.d.ts +93 -313
  27. package/dist/react/auth-method-config.d.ts +8 -0
  28. package/dist/react/client.d.ts +78 -142
  29. package/dist/react/index.d.ts +3 -3
  30. package/dist/react/source-plugin.d.ts +5 -5
  31. package/dist/sdk/connection.d.ts +4 -4
  32. package/dist/sdk/errors.d.ts +0 -19
  33. package/dist/sdk/index.d.ts +4 -3
  34. package/dist/sdk/invoke.d.ts +9 -16
  35. package/dist/sdk/plugin.d.ts +101 -236
  36. package/dist/sdk/types.d.ts +25 -130
  37. package/package.json +5 -4
  38. package/dist/AddMcpSource-PADMBVX2.js +0 -688
  39. package/dist/AddMcpSource-PADMBVX2.js.map +0 -1
  40. package/dist/EditMcpSource-L5GC2B4J.js +0 -281
  41. package/dist/EditMcpSource-L5GC2B4J.js.map +0 -1
  42. package/dist/McpSourceSummary-LE3WXFUE.js +0 -170
  43. package/dist/McpSourceSummary-LE3WXFUE.js.map +0 -1
  44. package/dist/chunk-6OYEXHU3.js +0 -156
  45. package/dist/chunk-6OYEXHU3.js.map +0 -1
  46. package/dist/chunk-FMTVLO5L.js +0 -179
  47. package/dist/chunk-FMTVLO5L.js.map +0 -1
  48. package/dist/chunk-LEGVPKYH.js +0 -2391
  49. package/dist/chunk-LEGVPKYH.js.map +0 -1
  50. package/dist/chunk-ZIRGIRGP.js +0 -115
  51. package/dist/chunk-ZIRGIRGP.js.map +0 -1
  52. package/dist/react/McpSourceSummary.d.ts +0 -5
  53. package/dist/sdk/binding-store.d.ts +0 -31
  54. package/dist/sdk/stored-source.d.ts +0 -42
  55. /package/dist/{sdk/connection-pool.test.d.ts → react/auth-method-config.test.d.ts} +0 -0
  56. /package/dist/sdk/{cross-user-isolation.test.d.ts → describe-auth-methods.test.d.ts} +0 -0
  57. /package/dist/sdk/{per-user-auth-isolation.test.d.ts → owner-isolation.test.d.ts} +0 -0
@@ -1,395 +1,175 @@
1
- import type { ScopeId } from "@executor-js/sdk/shared";
2
- import * as Atom from "effect/unstable/reactivity/Atom";
3
- import * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
4
- export declare const mcpSourceAtom: (scopeId: ScopeId, namespace: string) => Atom.Atom<AsyncResult.AsyncResult<{
5
- readonly name: string;
6
- readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
7
- readonly namespace: string;
1
+ import type { IntegrationSlug } from "@executor-js/sdk/shared";
2
+ export declare const mcpServerAtom: (slug: IntegrationSlug) => import("effect/unstable/reactivity/Atom").Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
3
+ readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
4
+ readonly description: string;
5
+ readonly kind: string;
8
6
  readonly config: {
9
7
  readonly endpoint: string;
10
- readonly transport: "remote";
11
8
  readonly auth: {
12
9
  readonly kind: "none";
13
10
  } | {
14
11
  readonly kind: "header";
15
12
  readonly headerName: string;
16
- readonly secretSlot: string;
17
13
  readonly prefix?: string | undefined;
18
14
  } | {
19
15
  readonly kind: "oauth2";
20
- readonly connectionSlot: string;
21
- readonly clientSecretSlot?: string | undefined;
22
- readonly clientIdSlot?: string | undefined;
23
16
  };
17
+ readonly transport: "remote";
24
18
  readonly headers?: {
25
- readonly [x: string]: string | {
26
- readonly kind: "binding";
27
- readonly slot: string;
28
- readonly prefix?: string | undefined;
29
- };
19
+ readonly [x: string]: string;
30
20
  } | undefined;
21
+ readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
31
22
  readonly queryParams?: {
32
- readonly [x: string]: string | {
33
- readonly kind: "binding";
34
- readonly slot: string;
35
- readonly prefix?: string | undefined;
36
- };
23
+ readonly [x: string]: string;
37
24
  } | undefined;
38
- readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
39
25
  } | {
40
26
  readonly transport: "stdio";
41
27
  readonly command: string;
42
28
  readonly args?: readonly string[] | undefined;
29
+ readonly cwd?: string | undefined;
43
30
  readonly env?: {
44
31
  readonly [x: string]: string;
45
32
  } | undefined;
46
- readonly cwd?: string | undefined;
47
- };
48
- } | null, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>>;
49
- export declare const mcpSourceBindingsAtom: (scopeId: ScopeId, namespace: string, sourceScopeId: ScopeId) => Atom.Atom<AsyncResult.AsyncResult<readonly {
50
- readonly id: string & import("effect/Brand").Brand<"CredentialBindingId">;
51
- readonly value: {
52
- readonly text: string;
53
- readonly kind: "text";
54
- } | {
55
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
56
- readonly kind: "secret";
57
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
58
- } | {
59
- readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
60
- readonly kind: "connection";
61
- };
62
- readonly createdAt: Date;
63
- readonly pluginId: string;
64
- readonly sourceId: string;
65
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
66
- readonly updatedAt: Date;
67
- readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
68
- readonly slotKey: string;
69
- }[], import("@executor-js/sdk").InternalError>>;
70
- export declare const probeMcpEndpoint: Atom.AtomResultFn<{
71
- readonly params: {
72
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
73
33
  };
34
+ readonly canRemove: boolean;
35
+ readonly canRefresh: boolean;
36
+ } | null, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>>;
37
+ export declare const probeMcpEndpoint: import("effect/unstable/reactivity/Atom").AtomResultFn<{
74
38
  readonly payload: {
75
39
  readonly endpoint: string;
76
40
  readonly headers?: {
77
- readonly [x: string]: string | {
78
- readonly secretId: string;
79
- readonly prefix?: string | undefined;
80
- };
41
+ readonly [x: string]: string;
81
42
  } | undefined;
82
43
  readonly queryParams?: {
83
- readonly [x: string]: string | {
84
- readonly secretId: string;
85
- readonly prefix?: string | undefined;
86
- };
44
+ readonly [x: string]: string;
87
45
  } | undefined;
88
46
  };
89
47
  readonly responseMode?: "decoded-only" | undefined;
90
48
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
91
49
  }, {
92
50
  readonly name: string;
93
- readonly namespace: string;
94
- readonly supportsDynamicRegistration: boolean;
51
+ readonly slug: string;
52
+ readonly connected: boolean;
95
53
  readonly toolCount: number | null;
96
54
  readonly serverName: string | null;
97
- readonly connected: boolean;
55
+ readonly requiresAuthentication: boolean;
98
56
  readonly requiresOAuth: boolean;
99
- }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
100
- export declare const addMcpSource: Atom.AtomResultFn<{
101
- readonly params: {
102
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
103
- };
57
+ readonly supportsDynamicRegistration: boolean;
58
+ }, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
59
+ export declare const addMcpServer: import("effect/unstable/reactivity/Atom").AtomResultFn<{
104
60
  readonly payload: {
105
61
  readonly name: string;
106
62
  readonly endpoint: string;
107
- readonly transport: "remote";
108
- readonly namespace?: string | undefined;
109
- readonly oauth2?: {
63
+ readonly slug?: string | undefined;
64
+ readonly auth?: {
65
+ readonly kind: "none";
66
+ } | {
67
+ readonly kind: "header";
68
+ readonly headerName: string;
69
+ readonly prefix?: string | undefined;
70
+ } | {
110
71
  readonly kind: "oauth2";
111
- readonly scopes: readonly string[];
112
- readonly clientSecretSlot: string | null;
113
- readonly securitySchemeName: string;
114
- readonly flow: "authorizationCode" | "clientCredentials";
115
- readonly tokenUrl: string;
116
- readonly clientIdSlot: string;
117
- readonly connectionSlot: string;
118
- readonly issuerUrl?: string | null | undefined;
119
- readonly authorizationUrl?: string | null | undefined;
120
72
  } | undefined;
121
73
  readonly headers?: {
122
- readonly [x: string]: string | {
123
- readonly kind: "secret";
124
- readonly prefix?: string | undefined;
125
- };
126
- } | undefined;
127
- readonly queryParams?: {
128
- readonly [x: string]: string | {
129
- readonly kind: "secret";
130
- readonly prefix?: string | undefined;
131
- };
74
+ readonly [x: string]: string;
132
75
  } | undefined;
76
+ readonly transport?: "remote" | undefined;
133
77
  readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
134
- readonly credentials?: {
135
- readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
136
- readonly headers?: {
137
- readonly [x: string]: string | {
138
- readonly text: string;
139
- readonly kind: "text";
140
- readonly prefix?: string | undefined;
141
- } | {
142
- readonly secretId: string;
143
- readonly kind: "secret";
144
- readonly prefix?: string | undefined;
145
- readonly secretScope?: string | undefined;
146
- } | {
147
- readonly connectionId: string;
148
- readonly kind: "connection";
149
- };
150
- } | undefined;
151
- readonly queryParams?: {
152
- readonly [x: string]: string | {
153
- readonly text: string;
154
- readonly kind: "text";
155
- readonly prefix?: string | undefined;
156
- } | {
157
- readonly secretId: string;
158
- readonly kind: "secret";
159
- readonly prefix?: string | undefined;
160
- readonly secretScope?: string | undefined;
161
- } | {
162
- readonly connectionId: string;
163
- readonly kind: "connection";
164
- };
165
- } | undefined;
166
- readonly auth?: {
167
- readonly kind: "none";
168
- } | {
169
- readonly oauth2?: {
170
- readonly connection?: string | {
171
- readonly text: string;
172
- readonly kind: "text";
173
- readonly prefix?: string | undefined;
174
- } | {
175
- readonly secretId: string;
176
- readonly kind: "secret";
177
- readonly prefix?: string | undefined;
178
- readonly secretScope?: string | undefined;
179
- } | {
180
- readonly connectionId: string;
181
- readonly kind: "connection";
182
- } | undefined;
183
- readonly clientId?: string | {
184
- readonly text: string;
185
- readonly kind: "text";
186
- readonly prefix?: string | undefined;
187
- } | {
188
- readonly secretId: string;
189
- readonly kind: "secret";
190
- readonly prefix?: string | undefined;
191
- readonly secretScope?: string | undefined;
192
- } | {
193
- readonly connectionId: string;
194
- readonly kind: "connection";
195
- } | undefined;
196
- readonly clientSecret?: string | {
197
- readonly text: string;
198
- readonly kind: "text";
199
- readonly prefix?: string | undefined;
200
- } | {
201
- readonly secretId: string;
202
- readonly kind: "secret";
203
- readonly prefix?: string | undefined;
204
- readonly secretScope?: string | undefined;
205
- } | {
206
- readonly connectionId: string;
207
- readonly kind: "connection";
208
- } | null | undefined;
209
- } | undefined;
210
- } | undefined;
78
+ readonly queryParams?: {
79
+ readonly [x: string]: string;
211
80
  } | undefined;
212
81
  };
213
82
  readonly responseMode?: "decoded-only" | undefined;
214
83
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
215
84
  } | {
216
- readonly params: {
217
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
218
- };
219
85
  readonly payload: {
220
86
  readonly name: string;
221
87
  readonly transport: "stdio";
222
88
  readonly command: string;
223
- readonly namespace?: string | undefined;
89
+ readonly slug?: string | undefined;
224
90
  readonly args?: readonly string[] | undefined;
91
+ readonly cwd?: string | undefined;
225
92
  readonly env?: {
226
93
  readonly [x: string]: string;
227
94
  } | undefined;
228
- readonly cwd?: string | undefined;
229
95
  };
230
96
  readonly responseMode?: "decoded-only" | undefined;
231
97
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
232
98
  }, {
233
- readonly namespace: string;
234
- readonly toolCount: number;
235
- }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
236
- export declare const addMcpSourceOptimistic: (arg: string & import("effect/Brand").Brand<"ScopeId">) => Atom.AtomResultFn<{
99
+ readonly slug: string;
100
+ }, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
101
+ export declare const removeMcpServer: import("effect/unstable/reactivity/Atom").AtomResultFn<{
237
102
  readonly params: {
238
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
103
+ readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
104
+ };
105
+ readonly responseMode?: "decoded-only" | undefined;
106
+ readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
107
+ }, {
108
+ readonly removed: boolean;
109
+ }, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
110
+ export declare const configureMcpServer: import("effect/unstable/reactivity/Atom").AtomResultFn<{
111
+ readonly params: {
112
+ readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
239
113
  };
240
114
  readonly payload: {
241
- readonly name: string;
242
- readonly endpoint: string;
243
- readonly transport: "remote";
244
- readonly namespace?: string | undefined;
245
- readonly oauth2?: {
246
- readonly kind: "oauth2";
247
- readonly scopes: readonly string[];
248
- readonly clientSecretSlot: string | null;
249
- readonly securitySchemeName: string;
250
- readonly flow: "authorizationCode" | "clientCredentials";
251
- readonly tokenUrl: string;
252
- readonly clientIdSlot: string;
253
- readonly connectionSlot: string;
254
- readonly issuerUrl?: string | null | undefined;
255
- readonly authorizationUrl?: string | null | undefined;
256
- } | undefined;
257
- readonly headers?: {
258
- readonly [x: string]: string | {
259
- readonly kind: "secret";
260
- readonly prefix?: string | undefined;
261
- };
262
- } | undefined;
263
- readonly queryParams?: {
264
- readonly [x: string]: string | {
265
- readonly kind: "secret";
115
+ readonly config: {
116
+ readonly endpoint: string;
117
+ readonly auth: {
118
+ readonly kind: "none";
119
+ } | {
120
+ readonly kind: "header";
121
+ readonly headerName: string;
266
122
  readonly prefix?: string | undefined;
123
+ } | {
124
+ readonly kind: "oauth2";
267
125
  };
268
- } | undefined;
269
- readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
270
- readonly credentials?: {
271
- readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
126
+ readonly transport: "remote";
272
127
  readonly headers?: {
273
- readonly [x: string]: string | {
274
- readonly text: string;
275
- readonly kind: "text";
276
- readonly prefix?: string | undefined;
277
- } | {
278
- readonly secretId: string;
279
- readonly kind: "secret";
280
- readonly prefix?: string | undefined;
281
- readonly secretScope?: string | undefined;
282
- } | {
283
- readonly connectionId: string;
284
- readonly kind: "connection";
285
- };
128
+ readonly [x: string]: string;
286
129
  } | undefined;
130
+ readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
287
131
  readonly queryParams?: {
288
- readonly [x: string]: string | {
289
- readonly text: string;
290
- readonly kind: "text";
291
- readonly prefix?: string | undefined;
292
- } | {
293
- readonly secretId: string;
294
- readonly kind: "secret";
295
- readonly prefix?: string | undefined;
296
- readonly secretScope?: string | undefined;
297
- } | {
298
- readonly connectionId: string;
299
- readonly kind: "connection";
300
- };
132
+ readonly [x: string]: string;
301
133
  } | undefined;
302
- readonly auth?: {
303
- readonly kind: "none";
304
- } | {
305
- readonly oauth2?: {
306
- readonly connection?: string | {
307
- readonly text: string;
308
- readonly kind: "text";
309
- readonly prefix?: string | undefined;
310
- } | {
311
- readonly secretId: string;
312
- readonly kind: "secret";
313
- readonly prefix?: string | undefined;
314
- readonly secretScope?: string | undefined;
315
- } | {
316
- readonly connectionId: string;
317
- readonly kind: "connection";
318
- } | undefined;
319
- readonly clientId?: string | {
320
- readonly text: string;
321
- readonly kind: "text";
322
- readonly prefix?: string | undefined;
323
- } | {
324
- readonly secretId: string;
325
- readonly kind: "secret";
326
- readonly prefix?: string | undefined;
327
- readonly secretScope?: string | undefined;
328
- } | {
329
- readonly connectionId: string;
330
- readonly kind: "connection";
331
- } | undefined;
332
- readonly clientSecret?: string | {
333
- readonly text: string;
334
- readonly kind: "text";
335
- readonly prefix?: string | undefined;
336
- } | {
337
- readonly secretId: string;
338
- readonly kind: "secret";
339
- readonly prefix?: string | undefined;
340
- readonly secretScope?: string | undefined;
341
- } | {
342
- readonly connectionId: string;
343
- readonly kind: "connection";
344
- } | null | undefined;
345
- } | undefined;
134
+ } | {
135
+ readonly transport: "stdio";
136
+ readonly command: string;
137
+ readonly args?: readonly string[] | undefined;
138
+ readonly cwd?: string | undefined;
139
+ readonly env?: {
140
+ readonly [x: string]: string;
346
141
  } | undefined;
347
- } | undefined;
142
+ };
348
143
  };
349
144
  readonly responseMode?: "decoded-only" | undefined;
350
145
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
351
- } | {
352
- readonly params: {
353
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
354
- };
355
- readonly payload: {
356
- readonly name: string;
146
+ }, {
147
+ readonly config: {
148
+ readonly endpoint: string;
149
+ readonly auth: {
150
+ readonly kind: "none";
151
+ } | {
152
+ readonly kind: "header";
153
+ readonly headerName: string;
154
+ readonly prefix?: string | undefined;
155
+ } | {
156
+ readonly kind: "oauth2";
157
+ };
158
+ readonly transport: "remote";
159
+ readonly headers?: {
160
+ readonly [x: string]: string;
161
+ } | undefined;
162
+ readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
163
+ readonly queryParams?: {
164
+ readonly [x: string]: string;
165
+ } | undefined;
166
+ } | {
357
167
  readonly transport: "stdio";
358
168
  readonly command: string;
359
- readonly namespace?: string | undefined;
360
169
  readonly args?: readonly string[] | undefined;
170
+ readonly cwd?: string | undefined;
361
171
  readonly env?: {
362
172
  readonly [x: string]: string;
363
173
  } | undefined;
364
- readonly cwd?: string | undefined;
365
- };
366
- readonly responseMode?: "decoded-only" | undefined;
367
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
368
- }, {
369
- readonly namespace: string;
370
- readonly toolCount: number;
371
- }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
372
- export declare const removeMcpSource: Atom.AtomResultFn<{
373
- readonly params: {
374
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
375
- };
376
- readonly payload: {
377
- readonly namespace: string;
378
- };
379
- readonly responseMode?: "decoded-only" | undefined;
380
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
381
- }, {
382
- readonly removed: boolean;
383
- }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
384
- export declare const refreshMcpSource: Atom.AtomResultFn<{
385
- readonly params: {
386
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
387
- };
388
- readonly payload: {
389
- readonly namespace: string;
390
174
  };
391
- readonly responseMode?: "decoded-only" | undefined;
392
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
393
- }, {
394
- readonly toolCount: number;
395
- }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
175
+ }, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
@@ -0,0 +1,8 @@
1
+ import type { AuthTemplateEditorValue } from "@executor-js/react/components/auth-template-editor";
2
+ import type { McpAuthTemplate } from "../sdk/types";
3
+ /** Convert a generic editor value into MCP's single `McpAuthTemplate`. An
4
+ * apiKey method maps to a `header` template using its FIRST header placement
5
+ * (MCP carries a single header, not an array); a header placement's prefix is
6
+ * preserved. OAuth maps to `oauth2`; `none` to `none`. An apiKey value with no
7
+ * usable header placement falls back to `none`. */
8
+ export declare function mcpAuthTemplateFromEditorValue(value: AuthTemplateEditorValue): McpAuthTemplate;