@executor-js/plugin-mcp 1.4.29 → 1.4.31

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 (46) hide show
  1. package/dist/{AddMcpSource-TLAL463B.js → AddMcpSource-3HUBFR3K.js} +68 -141
  2. package/dist/AddMcpSource-3HUBFR3K.js.map +1 -0
  3. package/dist/{EditMcpSource-FAWEECNU.js → EditMcpSource-UVGSSC2R.js} +106 -83
  4. package/dist/EditMcpSource-UVGSSC2R.js.map +1 -0
  5. package/dist/McpSourceSummary-UWVCAJOU.js +171 -0
  6. package/dist/McpSourceSummary-UWVCAJOU.js.map +1 -0
  7. package/dist/api/group.d.ts +92 -180
  8. package/dist/api/index.d.ts +97 -382
  9. package/dist/{chunk-4ORPFRLI.js → chunk-2A4H3UVR.js} +21 -80
  10. package/dist/chunk-2A4H3UVR.js.map +1 -0
  11. package/dist/{chunk-M6REVU6O.js → chunk-3TGDWTNE.js} +14 -40
  12. package/dist/chunk-3TGDWTNE.js.map +1 -0
  13. package/dist/{chunk-2DOCEPYN.js → chunk-H5PLTEMB.js} +632 -713
  14. package/dist/chunk-H5PLTEMB.js.map +1 -0
  15. package/dist/chunk-PZ5AY32C.js +10 -0
  16. package/dist/chunk-PZ5AY32C.js.map +1 -0
  17. package/dist/{chunk-SKSXXFOA.js → chunk-TW44CBXJ.js} +12 -1
  18. package/dist/chunk-TW44CBXJ.js.map +1 -0
  19. package/dist/client.js +5 -4
  20. package/dist/client.js.map +1 -1
  21. package/dist/core.js +4 -6
  22. package/dist/index.js +4 -2
  23. package/dist/promise.d.ts +1 -1
  24. package/dist/react/atoms.d.ts +198 -236
  25. package/dist/react/client.d.ts +91 -179
  26. package/dist/sdk/binding-store.d.ts +3 -163
  27. package/dist/sdk/index.d.ts +2 -2
  28. package/dist/sdk/plugin.d.ts +172 -225
  29. package/dist/sdk/presets.d.ts +1 -0
  30. package/dist/sdk/testing-fixtures.test.d.ts +1 -0
  31. package/dist/sdk/types.d.ts +58 -83
  32. package/dist/{stdio-connector-AA5S6UUJ.js → stdio-connector-MDW6PW36.js} +3 -1
  33. package/dist/{stdio-connector-AA5S6UUJ.js.map → stdio-connector-MDW6PW36.js.map} +1 -1
  34. package/dist/testing/index.d.ts +1 -1
  35. package/dist/testing/server.d.ts +70 -4
  36. package/dist/testing.js +14085 -30
  37. package/dist/testing.js.map +1 -1
  38. package/package.json +3 -4
  39. package/dist/AddMcpSource-TLAL463B.js.map +0 -1
  40. package/dist/EditMcpSource-FAWEECNU.js.map +0 -1
  41. package/dist/McpSourceSummary-257JNETP.js +0 -85
  42. package/dist/McpSourceSummary-257JNETP.js.map +0 -1
  43. package/dist/chunk-2DOCEPYN.js.map +0 -1
  44. package/dist/chunk-4ORPFRLI.js.map +0 -1
  45. package/dist/chunk-M6REVU6O.js.map +0 -1
  46. package/dist/chunk-SKSXXFOA.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import type { ScopeId } from "@executor-js/sdk/core";
1
+ import type { ScopeId } from "@executor-js/sdk/shared";
2
2
  import * as Atom from "effect/unstable/reactivity/Atom";
3
3
  import * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
4
4
  export declare const mcpSourceAtom: (scopeId: ScopeId, namespace: string) => Atom.Atom<AsyncResult.AsyncResult<{
@@ -18,8 +18,8 @@ export declare const mcpSourceAtom: (scopeId: ScopeId, namespace: string) => Ato
18
18
  } | {
19
19
  readonly kind: "oauth2";
20
20
  readonly connectionSlot: string;
21
- readonly clientIdSlot?: string | undefined;
22
21
  readonly clientSecretSlot?: string | undefined;
22
+ readonly clientIdSlot?: string | undefined;
23
23
  };
24
24
  readonly headers?: {
25
25
  readonly [x: string]: string | {
@@ -28,7 +28,6 @@ export declare const mcpSourceAtom: (scopeId: ScopeId, namespace: string) => Ato
28
28
  readonly prefix?: string | undefined;
29
29
  };
30
30
  } | undefined;
31
- readonly remoteTransport?: "streamable-http" | "sse" | "auto" | undefined;
32
31
  readonly queryParams?: {
33
32
  readonly [x: string]: string | {
34
33
  readonly kind: "binding";
@@ -36,6 +35,7 @@ export declare const mcpSourceAtom: (scopeId: ScopeId, namespace: string) => Ato
36
35
  readonly prefix?: string | undefined;
37
36
  };
38
37
  } | undefined;
38
+ readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
39
39
  } | {
40
40
  readonly transport: "stdio";
41
41
  readonly command: string;
@@ -45,8 +45,9 @@ export declare const mcpSourceAtom: (scopeId: ScopeId, namespace: string) => Ato
45
45
  } | undefined;
46
46
  readonly cwd?: string | undefined;
47
47
  };
48
- } | null, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>>;
48
+ } | null, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>>;
49
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">;
50
51
  readonly value: {
51
52
  readonly text: string;
52
53
  readonly kind: "text";
@@ -59,12 +60,13 @@ export declare const mcpSourceBindingsAtom: (scopeId: ScopeId, namespace: string
59
60
  readonly kind: "connection";
60
61
  };
61
62
  readonly createdAt: Date;
63
+ readonly pluginId: string;
62
64
  readonly sourceId: string;
63
65
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
64
66
  readonly updatedAt: Date;
65
- readonly slot: string;
66
67
  readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
67
- }[], import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>>;
68
+ readonly slotKey: string;
69
+ }[], import("@executor-js/sdk").InternalError>>;
68
70
  export declare const probeMcpEndpoint: Atom.AtomResultFn<{
69
71
  readonly params: {
70
72
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
@@ -89,12 +91,12 @@ export declare const probeMcpEndpoint: Atom.AtomResultFn<{
89
91
  }, {
90
92
  readonly name: string;
91
93
  readonly namespace: string;
94
+ readonly supportsDynamicRegistration: boolean;
92
95
  readonly toolCount: number | null;
93
96
  readonly serverName: string | null;
94
97
  readonly connected: boolean;
95
98
  readonly requiresOAuth: boolean;
96
- readonly supportsDynamicRegistration: boolean;
97
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
99
+ }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
98
100
  export declare const addMcpSource: Atom.AtomResultFn<{
99
101
  readonly params: {
100
102
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
@@ -102,66 +104,111 @@ export declare const addMcpSource: Atom.AtomResultFn<{
102
104
  readonly payload: {
103
105
  readonly name: string;
104
106
  readonly endpoint: string;
105
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
106
107
  readonly transport: "remote";
107
108
  readonly namespace?: string | undefined;
109
+ readonly oauth2?: {
110
+ 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
+ } | undefined;
108
121
  readonly headers?: {
109
122
  readonly [x: string]: string | {
110
- readonly secretId: string;
123
+ readonly kind: "secret";
111
124
  readonly prefix?: string | undefined;
112
- } | {
113
- readonly kind: "binding";
114
- readonly slot: string;
115
- readonly prefix?: string | undefined;
116
- } | {
117
- readonly secretId: string;
118
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
119
- readonly prefix?: string | undefined;
120
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
121
125
  };
122
126
  } | undefined;
123
- readonly remoteTransport?: "streamable-http" | "sse" | "auto" | undefined;
124
127
  readonly queryParams?: {
125
128
  readonly [x: string]: string | {
126
- readonly secretId: string;
127
- readonly prefix?: string | undefined;
128
- } | {
129
- readonly kind: "binding";
130
- readonly slot: string;
131
- readonly prefix?: string | undefined;
132
- } | {
133
- readonly secretId: string;
134
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
129
+ readonly kind: "secret";
135
130
  readonly prefix?: string | undefined;
136
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
137
131
  };
138
132
  } | undefined;
139
- readonly auth?: {
140
- readonly kind: "none";
141
- } | {
142
- readonly kind: "header";
143
- readonly headerName: string;
144
- readonly secretSlot: string;
145
- readonly prefix?: string | undefined;
146
- } | {
147
- readonly kind: "oauth2";
148
- readonly connectionSlot: string;
149
- readonly clientIdSlot?: string | undefined;
150
- readonly clientSecretSlot?: string | undefined;
151
- } | {
152
- readonly secretId: string;
153
- readonly kind: "header";
154
- readonly headerName: string;
155
- readonly targetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
156
- readonly prefix?: string | undefined;
157
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
158
- } | {
159
- readonly connectionId: string;
160
- readonly kind: "oauth2";
161
- readonly clientSecretSecretId?: string | null | undefined;
162
- readonly clientIdSecretId?: string | undefined;
133
+ 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;
163
211
  } | undefined;
164
- readonly credentialTargetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
165
212
  };
166
213
  readonly responseMode?: "decoded-only" | undefined;
167
214
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
@@ -171,7 +218,6 @@ export declare const addMcpSource: Atom.AtomResultFn<{
171
218
  };
172
219
  readonly payload: {
173
220
  readonly name: string;
174
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
175
221
  readonly transport: "stdio";
176
222
  readonly command: string;
177
223
  readonly namespace?: string | undefined;
@@ -186,7 +232,7 @@ export declare const addMcpSource: Atom.AtomResultFn<{
186
232
  }, {
187
233
  readonly namespace: string;
188
234
  readonly toolCount: number;
189
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
235
+ }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
190
236
  export declare const addMcpSourceOptimistic: (arg: string & import("effect/Brand").Brand<"ScopeId">) => Atom.AtomResultFn<{
191
237
  readonly params: {
192
238
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
@@ -194,66 +240,111 @@ export declare const addMcpSourceOptimistic: (arg: string & import("effect/Brand
194
240
  readonly payload: {
195
241
  readonly name: string;
196
242
  readonly endpoint: string;
197
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
198
243
  readonly transport: "remote";
199
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;
200
257
  readonly headers?: {
201
258
  readonly [x: string]: string | {
202
- readonly secretId: string;
259
+ readonly kind: "secret";
203
260
  readonly prefix?: string | undefined;
204
- } | {
205
- readonly kind: "binding";
206
- readonly slot: string;
207
- readonly prefix?: string | undefined;
208
- } | {
209
- readonly secretId: string;
210
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
211
- readonly prefix?: string | undefined;
212
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
213
261
  };
214
262
  } | undefined;
215
- readonly remoteTransport?: "streamable-http" | "sse" | "auto" | undefined;
216
263
  readonly queryParams?: {
217
264
  readonly [x: string]: string | {
218
- readonly secretId: string;
265
+ readonly kind: "secret";
219
266
  readonly prefix?: string | undefined;
220
- } | {
221
- readonly kind: "binding";
222
- readonly slot: string;
223
- readonly prefix?: string | undefined;
224
- } | {
225
- readonly secretId: string;
226
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
227
- readonly prefix?: string | undefined;
228
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
229
267
  };
230
268
  } | undefined;
231
- readonly auth?: {
232
- readonly kind: "none";
233
- } | {
234
- readonly kind: "header";
235
- readonly headerName: string;
236
- readonly secretSlot: string;
237
- readonly prefix?: string | undefined;
238
- } | {
239
- readonly kind: "oauth2";
240
- readonly connectionSlot: string;
241
- readonly clientIdSlot?: string | undefined;
242
- readonly clientSecretSlot?: string | undefined;
243
- } | {
244
- readonly secretId: string;
245
- readonly kind: "header";
246
- readonly headerName: string;
247
- readonly targetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
248
- readonly prefix?: string | undefined;
249
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
250
- } | {
251
- readonly connectionId: string;
252
- readonly kind: "oauth2";
253
- readonly clientSecretSecretId?: string | null | undefined;
254
- readonly clientIdSecretId?: string | undefined;
269
+ readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
270
+ readonly credentials?: {
271
+ readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
272
+ 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
+ };
286
+ } | undefined;
287
+ 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
+ };
301
+ } | 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;
346
+ } | undefined;
255
347
  } | undefined;
256
- readonly credentialTargetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
257
348
  };
258
349
  readonly responseMode?: "decoded-only" | undefined;
259
350
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
@@ -263,7 +354,6 @@ export declare const addMcpSourceOptimistic: (arg: string & import("effect/Brand
263
354
  };
264
355
  readonly payload: {
265
356
  readonly name: string;
266
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
267
357
  readonly transport: "stdio";
268
358
  readonly command: string;
269
359
  readonly namespace?: string | undefined;
@@ -278,7 +368,7 @@ export declare const addMcpSourceOptimistic: (arg: string & import("effect/Brand
278
368
  }, {
279
369
  readonly namespace: string;
280
370
  readonly toolCount: number;
281
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
371
+ }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
282
372
  export declare const removeMcpSource: Atom.AtomResultFn<{
283
373
  readonly params: {
284
374
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
@@ -290,7 +380,7 @@ export declare const removeMcpSource: Atom.AtomResultFn<{
290
380
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
291
381
  }, {
292
382
  readonly removed: boolean;
293
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
383
+ }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
294
384
  export declare const refreshMcpSource: Atom.AtomResultFn<{
295
385
  readonly params: {
296
386
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
@@ -302,132 +392,4 @@ export declare const refreshMcpSource: Atom.AtomResultFn<{
302
392
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
303
393
  }, {
304
394
  readonly toolCount: number;
305
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
306
- export declare const updateMcpSource: Atom.AtomResultFn<{
307
- readonly params: {
308
- readonly namespace: string;
309
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
310
- };
311
- readonly payload: {
312
- readonly sourceScope: string & import("effect/Brand").Brand<"ScopeId">;
313
- readonly name?: string | undefined;
314
- readonly endpoint?: string | undefined;
315
- readonly headers?: {
316
- readonly [x: string]: string | {
317
- readonly secretId: string;
318
- readonly prefix?: string | undefined;
319
- } | {
320
- readonly kind: "binding";
321
- readonly slot: string;
322
- readonly prefix?: string | undefined;
323
- } | {
324
- readonly secretId: string;
325
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
326
- readonly prefix?: string | undefined;
327
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
328
- };
329
- } | undefined;
330
- readonly queryParams?: {
331
- readonly [x: string]: string | {
332
- readonly secretId: string;
333
- readonly prefix?: string | undefined;
334
- } | {
335
- readonly kind: "binding";
336
- readonly slot: string;
337
- readonly prefix?: string | undefined;
338
- } | {
339
- readonly secretId: string;
340
- readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
341
- readonly prefix?: string | undefined;
342
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
343
- };
344
- } | undefined;
345
- readonly auth?: {
346
- readonly kind: "none";
347
- } | {
348
- readonly kind: "header";
349
- readonly headerName: string;
350
- readonly secretSlot: string;
351
- readonly prefix?: string | undefined;
352
- } | {
353
- readonly kind: "oauth2";
354
- readonly connectionSlot: string;
355
- readonly clientIdSlot?: string | undefined;
356
- readonly clientSecretSlot?: string | undefined;
357
- } | {
358
- readonly secretId: string;
359
- readonly kind: "header";
360
- readonly headerName: string;
361
- readonly targetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
362
- readonly prefix?: string | undefined;
363
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
364
- } | {
365
- readonly connectionId: string;
366
- readonly kind: "oauth2";
367
- readonly clientSecretSecretId?: string | null | undefined;
368
- readonly clientIdSecretId?: string | undefined;
369
- } | undefined;
370
- readonly credentialTargetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
371
- };
372
- readonly responseMode?: "decoded-only" | undefined;
373
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
374
- }, {
375
- readonly updated: boolean;
376
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
377
- export declare const setMcpSourceBinding: Atom.AtomResultFn<{
378
- readonly params: {
379
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
380
- };
381
- readonly payload: {
382
- readonly value: {
383
- readonly text: string;
384
- readonly kind: "text";
385
- } | {
386
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
387
- readonly kind: "secret";
388
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
389
- } | {
390
- readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
391
- readonly kind: "connection";
392
- };
393
- readonly sourceId: string;
394
- readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
395
- readonly slot: string;
396
- readonly sourceScope: string & import("effect/Brand").Brand<"ScopeId">;
397
- };
398
- readonly responseMode?: "decoded-only" | undefined;
399
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
400
- }, {
401
- readonly value: {
402
- readonly text: string;
403
- readonly kind: "text";
404
- } | {
405
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
406
- readonly kind: "secret";
407
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
408
- } | {
409
- readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
410
- readonly kind: "connection";
411
- };
412
- readonly createdAt: Date;
413
- readonly sourceId: string;
414
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
415
- readonly updatedAt: Date;
416
- readonly slot: string;
417
- readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
418
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
419
- export declare const removeMcpSourceBinding: Atom.AtomResultFn<{
420
- readonly params: {
421
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
422
- };
423
- readonly payload: {
424
- readonly sourceId: string;
425
- readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
426
- readonly slot: string;
427
- readonly sourceScope: string & import("effect/Brand").Brand<"ScopeId">;
428
- };
429
- readonly responseMode?: "decoded-only" | undefined;
430
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
431
- }, {
432
- readonly removed: boolean;
433
- }, import("@executor-js/api").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;
395
+ }, import("@executor-js/sdk").InternalError | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError>;