@executor-js/plugin-mcp 1.4.28 → 1.4.30

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-NQT7NAGE.js → chunk-H5PLTEMB.js} +673 -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-4ORPFRLI.js.map +0 -1
  44. package/dist/chunk-M6REVU6O.js.map +0 -1
  45. package/dist/chunk-NQT7NAGE.js.map +0 -1
  46. package/dist/chunk-SKSXXFOA.js.map +0 -1
@@ -21,66 +21,106 @@ export declare const McpClient: import("effect/unstable/reactivity/AtomHttpApi")
21
21
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"addSource", "POST", "/scopes/:scopeId/mcp/sources", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
22
22
  scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
23
23
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
24
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
25
24
  readonly transport: import("effect/Schema").Literal<"remote">;
26
25
  readonly name: import("effect/Schema").String;
27
26
  readonly endpoint: import("effect/Schema").String;
28
27
  readonly remoteTransport: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["streamable-http", "sse", "auto"]>>;
29
28
  readonly namespace: import("effect/Schema").optional<import("effect/Schema").String>;
30
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
31
- readonly secretId: import("effect/Schema").String;
32
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
33
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
34
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
35
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
36
- readonly secretId: import("effect/Schema").String;
37
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
38
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
39
- readonly kind: import("effect/Schema").Literal<"binding">;
40
- readonly slot: import("effect/Schema").String;
41
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
42
- }>]>]>>>;
43
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
44
- readonly secretId: import("effect/Schema").String;
45
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
46
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
47
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
48
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
49
- readonly secretId: import("effect/Schema").String;
50
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
51
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
52
- readonly kind: import("effect/Schema").Literal<"binding">;
53
- readonly slot: import("effect/Schema").String;
29
+ readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
30
+ readonly kind: import("effect/Schema").Literal<"secret">;
54
31
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
55
- }>]>]>>>;
56
- readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
57
- readonly kind: import("effect/Schema").Literal<"none">;
58
- }>, import("effect/Schema").Struct<{
59
- readonly kind: import("effect/Schema").Literal<"header">;
60
- readonly headerName: import("effect/Schema").String;
61
- readonly secretSlot: import("effect/Schema").String;
32
+ }>]>>>;
33
+ readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
34
+ readonly kind: import("effect/Schema").Literal<"secret">;
62
35
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
63
- }>, import("effect/Schema").Struct<{
36
+ }>]>>>;
37
+ readonly oauth2: import("effect/Schema").optional<import("effect/Schema").Struct<{
64
38
  readonly kind: import("effect/Schema").Literal<"oauth2">;
39
+ readonly securitySchemeName: import("effect/Schema").String;
40
+ readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
41
+ readonly tokenUrl: import("effect/Schema").String;
42
+ readonly authorizationUrl: import("effect/Schema").withDecodingDefault<import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>>;
43
+ readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
44
+ readonly clientIdSlot: import("effect/Schema").String;
45
+ readonly clientSecretSlot: import("effect/Schema").NullOr<import("effect/Schema").String>;
65
46
  readonly connectionSlot: import("effect/Schema").String;
66
- readonly clientIdSlot: import("effect/Schema").optional<import("effect/Schema").String>;
67
- readonly clientSecretSlot: import("effect/Schema").optional<import("effect/Schema").String>;
68
- }>]>, import("effect/Schema").Struct<{
69
- readonly kind: import("effect/Schema").Literal<"header">;
70
- readonly headerName: import("effect/Schema").String;
71
- readonly secretId: import("effect/Schema").String;
72
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
73
- readonly targetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
74
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
75
- }>, import("effect/Schema").Struct<{
76
- readonly kind: import("effect/Schema").Literal<"oauth2">;
77
- readonly connectionId: import("effect/Schema").String;
78
- readonly clientIdSecretId: import("effect/Schema").optional<import("effect/Schema").String>;
79
- readonly clientSecretSecretId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
80
- }>]>>;
81
- readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
47
+ readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
48
+ }>>;
49
+ readonly credentials: import("effect/Schema").optional<import("effect/Schema").Struct<{
50
+ readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
51
+ readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
52
+ readonly kind: import("effect/Schema").Literal<"text">;
53
+ readonly text: import("effect/Schema").String;
54
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
55
+ }>, import("effect/Schema").Struct<{
56
+ readonly kind: import("effect/Schema").Literal<"secret">;
57
+ readonly secretId: import("effect/Schema").String;
58
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").String>;
59
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
60
+ }>, import("effect/Schema").Struct<{
61
+ readonly kind: import("effect/Schema").Literal<"connection">;
62
+ readonly connectionId: import("effect/Schema").String;
63
+ }>]>>>;
64
+ readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
65
+ readonly kind: import("effect/Schema").Literal<"text">;
66
+ readonly text: import("effect/Schema").String;
67
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
68
+ }>, import("effect/Schema").Struct<{
69
+ readonly kind: import("effect/Schema").Literal<"secret">;
70
+ readonly secretId: import("effect/Schema").String;
71
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").String>;
72
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
73
+ }>, import("effect/Schema").Struct<{
74
+ readonly kind: import("effect/Schema").Literal<"connection">;
75
+ readonly connectionId: import("effect/Schema").String;
76
+ }>]>>>;
77
+ readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
78
+ readonly kind: import("effect/Schema").Literal<"none">;
79
+ }>, import("effect/Schema").Struct<{
80
+ readonly oauth2: import("effect/Schema").optional<import("effect/Schema").Struct<{
81
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
82
+ readonly kind: import("effect/Schema").Literal<"text">;
83
+ readonly text: import("effect/Schema").String;
84
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
85
+ }>, import("effect/Schema").Struct<{
86
+ readonly kind: import("effect/Schema").Literal<"secret">;
87
+ readonly secretId: import("effect/Schema").String;
88
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").String>;
89
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
90
+ }>, import("effect/Schema").Struct<{
91
+ readonly kind: import("effect/Schema").Literal<"connection">;
92
+ readonly connectionId: import("effect/Schema").String;
93
+ }>]>>;
94
+ readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
95
+ readonly kind: import("effect/Schema").Literal<"text">;
96
+ readonly text: import("effect/Schema").String;
97
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
98
+ }>, import("effect/Schema").Struct<{
99
+ readonly kind: import("effect/Schema").Literal<"secret">;
100
+ readonly secretId: import("effect/Schema").String;
101
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").String>;
102
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
103
+ }>, import("effect/Schema").Struct<{
104
+ readonly kind: import("effect/Schema").Literal<"connection">;
105
+ readonly connectionId: import("effect/Schema").String;
106
+ }>]>>>;
107
+ readonly connection: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
108
+ readonly kind: import("effect/Schema").Literal<"text">;
109
+ readonly text: import("effect/Schema").String;
110
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
111
+ }>, import("effect/Schema").Struct<{
112
+ readonly kind: import("effect/Schema").Literal<"secret">;
113
+ readonly secretId: import("effect/Schema").String;
114
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").String>;
115
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
116
+ }>, import("effect/Schema").Struct<{
117
+ readonly kind: import("effect/Schema").Literal<"connection">;
118
+ readonly connectionId: import("effect/Schema").String;
119
+ }>]>>;
120
+ }>>;
121
+ }>]>>;
122
+ }>>;
82
123
  }>, import("effect/Schema").Struct<{
83
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
84
124
  readonly transport: import("effect/Schema").Literal<"stdio">;
85
125
  readonly name: import("effect/Schema").String;
86
126
  readonly command: import("effect/Schema").String;
@@ -144,132 +184,4 @@ export declare const McpClient: import("effect/unstable/reactivity/AtomHttpApi")
144
184
  readonly env: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
145
185
  readonly cwd: import("effect/Schema").optional<import("effect/Schema").String>;
146
186
  }>]>;
147
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateSource", "PATCH", "/scopes/:scopeId/mcp/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
148
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
149
- namespace: import("effect/Schema").String;
150
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
151
- readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
152
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
153
- readonly endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
154
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
155
- readonly secretId: import("effect/Schema").String;
156
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
157
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
158
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
159
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
160
- readonly secretId: import("effect/Schema").String;
161
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
162
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
163
- readonly kind: import("effect/Schema").Literal<"binding">;
164
- readonly slot: import("effect/Schema").String;
165
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
166
- }>]>]>>>;
167
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
168
- readonly secretId: import("effect/Schema").String;
169
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
170
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
171
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
172
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
173
- readonly secretId: import("effect/Schema").String;
174
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
175
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
176
- readonly kind: import("effect/Schema").Literal<"binding">;
177
- readonly slot: import("effect/Schema").String;
178
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
179
- }>]>]>>>;
180
- readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
181
- readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
182
- readonly kind: import("effect/Schema").Literal<"none">;
183
- }>, import("effect/Schema").Struct<{
184
- readonly kind: import("effect/Schema").Literal<"header">;
185
- readonly headerName: import("effect/Schema").String;
186
- readonly secretSlot: import("effect/Schema").String;
187
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
188
- }>, import("effect/Schema").Struct<{
189
- readonly kind: import("effect/Schema").Literal<"oauth2">;
190
- readonly connectionSlot: import("effect/Schema").String;
191
- readonly clientIdSlot: import("effect/Schema").optional<import("effect/Schema").String>;
192
- readonly clientSecretSlot: import("effect/Schema").optional<import("effect/Schema").String>;
193
- }>]>, import("effect/Schema").Struct<{
194
- readonly kind: import("effect/Schema").Literal<"header">;
195
- readonly headerName: import("effect/Schema").String;
196
- readonly secretId: import("effect/Schema").String;
197
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
198
- readonly targetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
199
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
200
- }>, import("effect/Schema").Struct<{
201
- readonly kind: import("effect/Schema").Literal<"oauth2">;
202
- readonly connectionId: import("effect/Schema").String;
203
- readonly clientIdSecretId: import("effect/Schema").optional<import("effect/Schema").String>;
204
- readonly clientSecretSecretId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
205
- }>]>>;
206
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
207
- readonly updated: import("effect/Schema").Boolean;
208
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSourceBindings", "GET", "/scopes/:scopeId/mcp/sources/:namespace/base/:sourceScopeId/bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
209
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
210
- namespace: import("effect/Schema").String;
211
- sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
212
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
213
- readonly sourceId: import("effect/Schema").String;
214
- readonly sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
215
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
216
- readonly slot: import("effect/Schema").String;
217
- readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
218
- readonly kind: import("effect/Schema").Literal<"text">;
219
- readonly text: import("effect/Schema").String;
220
- }>, import("effect/Schema").Struct<{
221
- readonly kind: import("effect/Schema").Literal<"secret">;
222
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
223
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
224
- }>, import("effect/Schema").Struct<{
225
- readonly kind: import("effect/Schema").Literal<"connection">;
226
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
227
- }>]>;
228
- readonly createdAt: import("effect/Schema").Date;
229
- readonly updatedAt: import("effect/Schema").Date;
230
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/mcp/source-bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
231
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
232
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
233
- readonly sourceId: import("effect/Schema").String;
234
- readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
235
- readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
236
- readonly slot: import("effect/Schema").String;
237
- readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
238
- readonly kind: import("effect/Schema").Literal<"text">;
239
- readonly text: import("effect/Schema").String;
240
- }>, import("effect/Schema").Struct<{
241
- readonly kind: import("effect/Schema").Literal<"secret">;
242
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
243
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
244
- }>, import("effect/Schema").Struct<{
245
- readonly kind: import("effect/Schema").Literal<"connection">;
246
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
247
- }>]>;
248
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
249
- readonly sourceId: import("effect/Schema").String;
250
- readonly sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
251
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
252
- readonly slot: import("effect/Schema").String;
253
- readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
254
- readonly kind: import("effect/Schema").Literal<"text">;
255
- readonly text: import("effect/Schema").String;
256
- }>, import("effect/Schema").Struct<{
257
- readonly kind: import("effect/Schema").Literal<"secret">;
258
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
259
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
260
- }>, import("effect/Schema").Struct<{
261
- readonly kind: import("effect/Schema").Literal<"connection">;
262
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
263
- }>]>;
264
- readonly createdAt: import("effect/Schema").Date;
265
- readonly updatedAt: import("effect/Schema").Date;
266
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/mcp/source-bindings/remove", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
267
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
268
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
269
- readonly sourceId: import("effect/Schema").String;
270
- readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
271
- readonly slot: import("effect/Schema").String;
272
- readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
273
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
274
- readonly removed: import("effect/Schema").Boolean;
275
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never>, false>>;
187
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never>, false>>;
@@ -1,170 +1,10 @@
1
1
  import { Effect } from "effect";
2
2
  import { type StorageDeps, type StorageFailure } from "@executor-js/sdk/core";
3
- import { McpToolBinding, McpStoredSourceData } from "./types";
4
- export declare const mcpSchema: {
5
- readonly mcp_source: {
6
- readonly fields: {
7
- readonly id: {
8
- readonly type: "string";
9
- readonly required: true;
10
- };
11
- readonly scope_id: {
12
- readonly type: "string";
13
- readonly required: true;
14
- readonly index: true;
15
- };
16
- readonly name: {
17
- readonly type: "string";
18
- readonly required: true;
19
- };
20
- readonly config: {
21
- readonly type: "json";
22
- readonly required: true;
23
- };
24
- readonly auth_kind: {
25
- readonly type: ["none", "header", "oauth2"];
26
- readonly required: true;
27
- readonly defaultValue: "none";
28
- };
29
- readonly auth_header_name: {
30
- readonly type: "string";
31
- readonly required: false;
32
- };
33
- readonly auth_header_slot: {
34
- readonly type: "string";
35
- readonly required: false;
36
- };
37
- readonly auth_header_prefix: {
38
- readonly type: "string";
39
- readonly required: false;
40
- };
41
- readonly auth_connection_slot: {
42
- readonly type: "string";
43
- readonly required: false;
44
- };
45
- readonly auth_client_id_slot: {
46
- readonly type: "string";
47
- readonly required: false;
48
- };
49
- readonly auth_client_secret_slot: {
50
- readonly type: "string";
51
- readonly required: false;
52
- };
53
- readonly created_at: {
54
- readonly type: "date";
55
- readonly required: true;
56
- };
57
- };
58
- };
59
- readonly mcp_source_header: {
60
- readonly fields: {
61
- readonly id: {
62
- readonly type: "string";
63
- readonly required: true;
64
- };
65
- readonly scope_id: {
66
- readonly type: "string";
67
- readonly required: true;
68
- readonly index: true;
69
- };
70
- readonly source_id: {
71
- readonly type: "string";
72
- readonly required: true;
73
- readonly index: true;
74
- };
75
- readonly name: {
76
- readonly type: "string";
77
- readonly required: true;
78
- };
79
- readonly kind: {
80
- readonly type: ["text", "binding"];
81
- readonly required: true;
82
- };
83
- readonly text_value: {
84
- readonly type: "string";
85
- readonly required: false;
86
- };
87
- readonly slot_key: {
88
- readonly type: "string";
89
- readonly required: false;
90
- };
91
- readonly prefix: {
92
- readonly type: "string";
93
- readonly required: false;
94
- };
95
- };
96
- };
97
- readonly mcp_source_query_param: {
98
- readonly fields: {
99
- readonly id: {
100
- readonly type: "string";
101
- readonly required: true;
102
- };
103
- readonly scope_id: {
104
- readonly type: "string";
105
- readonly required: true;
106
- readonly index: true;
107
- };
108
- readonly source_id: {
109
- readonly type: "string";
110
- readonly required: true;
111
- readonly index: true;
112
- };
113
- readonly name: {
114
- readonly type: "string";
115
- readonly required: true;
116
- };
117
- readonly kind: {
118
- readonly type: ["text", "binding"];
119
- readonly required: true;
120
- };
121
- readonly text_value: {
122
- readonly type: "string";
123
- readonly required: false;
124
- };
125
- readonly slot_key: {
126
- readonly type: "string";
127
- readonly required: false;
128
- };
129
- readonly prefix: {
130
- readonly type: "string";
131
- readonly required: false;
132
- };
133
- };
134
- };
135
- readonly mcp_binding: {
136
- readonly fields: {
137
- readonly id: {
138
- readonly type: "string";
139
- readonly required: true;
140
- };
141
- readonly scope_id: {
142
- readonly type: "string";
143
- readonly required: true;
144
- readonly index: true;
145
- };
146
- readonly source_id: {
147
- readonly type: "string";
148
- readonly required: true;
149
- readonly index: true;
150
- };
151
- readonly binding: {
152
- readonly type: "json";
153
- readonly required: true;
154
- };
155
- readonly created_at: {
156
- readonly type: "date";
157
- readonly required: true;
158
- };
159
- };
160
- };
161
- };
3
+ import { McpStoredSourceData, McpToolBinding } from "./types";
4
+ export declare const mcpSchema: {};
162
5
  export type McpSchema = typeof mcpSchema;
163
6
  export interface McpStoredSource {
164
7
  readonly namespace: string;
165
- /** Executor scope id this source row lives in. Writes stamp this on
166
- * `scope_id`; reads return whichever scope's row the adapter's
167
- * fall-through walk surfaced first. */
168
8
  readonly scope: string;
169
9
  readonly name: string;
170
10
  readonly config: McpStoredSourceData;
@@ -188,4 +28,4 @@ export interface McpBindingStore {
188
28
  readonly putSource: (source: McpStoredSource) => Effect.Effect<void, StorageFailure>;
189
29
  readonly removeSource: (namespace: string, scope: string) => Effect.Effect<void, StorageFailure>;
190
30
  }
191
- export declare const makeMcpStore: ({ adapter: db }: StorageDeps<McpSchema>) => McpBindingStore;
31
+ export declare const makeMcpStore: ({ pluginStorage }: StorageDeps<McpSchema>) => McpBindingStore;
@@ -1,3 +1,3 @@
1
- export { mcpPlugin, type McpPluginExtension, type McpPluginOptions, type McpSourceConfig, type McpRemoteSourceConfig, type McpStdioSourceConfig, type McpProbeResult, type McpUpdateSourceInput, } from "./plugin";
1
+ export { mcpPlugin, type McpPluginExtension, type McpPluginOptions, type McpSourceConfig, type McpRemoteSourceConfig, type McpStdioSourceConfig, type McpProbeResult, type McpConfigureSourceInput, } from "./plugin";
2
2
  export { makeMcpStore, mcpSchema, type McpBindingStore, type McpSchema, type McpStoredSource, } from "./binding-store";
3
- export { ConfiguredMcpCredentialValue, MCP_HEADER_AUTH_SLOT, MCP_OAUTH_CLIENT_ID_SLOT, MCP_OAUTH_CLIENT_SECRET_SLOT, MCP_OAUTH_CONNECTION_SLOT, McpConnectionAuth, McpConnectionAuthInput, McpCredentialInput, McpSourceBindingInput, McpSourceBindingRef, mcpHeaderSlot, mcpQueryParamSlot, type McpSourceBindingValue, } from "./types";
3
+ export { ConfiguredMcpCredentialValue, MCP_HEADER_AUTH_SLOT, MCP_OAUTH_CLIENT_ID_SLOT, MCP_OAUTH_CLIENT_SECRET_SLOT, MCP_OAUTH_CONNECTION_SLOT, McpConnectionAuth, McpConnectionAuthInput, McpCredentialInput, mcpHeaderSlot, mcpQueryParamSlot, } from "./types";