@executor-js/plugin-mcp 1.4.29 → 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-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,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
2
2
  import { Schema } from "effect";
3
- import { InternalError } from "@executor-js/sdk/core";
3
+ import { InternalError } from "@executor-js/sdk/shared";
4
4
  import { McpConnectionError, McpToolDiscoveryError } from "../sdk/errors";
5
5
  export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.HttpApiEndpoint<"probeEndpoint", "POST", "/scopes/:scopeId/mcp/probe", HttpApiEndpoint.StringTree<Schema.Struct<{
6
6
  scopeId: Schema.brand<Schema.String, "ScopeId">;
@@ -25,66 +25,106 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.
25
25
  }>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addSource", "POST", "/scopes/:scopeId/mcp/sources", HttpApiEndpoint.StringTree<Schema.Struct<{
26
26
  scopeId: Schema.brand<Schema.String, "ScopeId">;
27
27
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Union<readonly [Schema.Struct<{
28
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
29
28
  readonly transport: Schema.Literal<"remote">;
30
29
  readonly name: Schema.String;
31
30
  readonly endpoint: Schema.String;
32
31
  readonly remoteTransport: Schema.optional<Schema.Literals<readonly ["streamable-http", "sse", "auto"]>>;
33
32
  readonly namespace: Schema.optional<Schema.String>;
34
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
35
- readonly secretId: Schema.String;
36
- readonly prefix: Schema.optional<Schema.String>;
37
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
38
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
39
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
40
- readonly secretId: Schema.String;
41
- readonly prefix: Schema.optional<Schema.String>;
42
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
43
- readonly kind: Schema.Literal<"binding">;
44
- readonly slot: Schema.String;
45
- readonly prefix: Schema.optional<Schema.String>;
46
- }>]>]>>>;
47
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
48
- readonly secretId: Schema.String;
49
- readonly prefix: Schema.optional<Schema.String>;
50
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
51
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
52
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
53
- readonly secretId: Schema.String;
54
- readonly prefix: Schema.optional<Schema.String>;
55
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
56
- readonly kind: Schema.Literal<"binding">;
57
- readonly slot: Schema.String;
33
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
34
+ readonly kind: Schema.Literal<"secret">;
58
35
  readonly prefix: Schema.optional<Schema.String>;
59
- }>]>]>>>;
60
- readonly auth: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
61
- readonly kind: Schema.Literal<"none">;
62
- }>, Schema.Struct<{
63
- readonly kind: Schema.Literal<"header">;
64
- readonly headerName: Schema.String;
65
- readonly secretSlot: Schema.String;
36
+ }>]>>>;
37
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
38
+ readonly kind: Schema.Literal<"secret">;
66
39
  readonly prefix: Schema.optional<Schema.String>;
67
- }>, Schema.Struct<{
40
+ }>]>>>;
41
+ readonly oauth2: Schema.optional<Schema.Struct<{
68
42
  readonly kind: Schema.Literal<"oauth2">;
43
+ readonly securitySchemeName: Schema.String;
44
+ readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
45
+ readonly tokenUrl: Schema.String;
46
+ readonly authorizationUrl: Schema.withDecodingDefault<Schema.optional<Schema.NullOr<Schema.String>>>;
47
+ readonly issuerUrl: Schema.optional<Schema.NullOr<Schema.String>>;
48
+ readonly clientIdSlot: Schema.String;
49
+ readonly clientSecretSlot: Schema.NullOr<Schema.String>;
69
50
  readonly connectionSlot: Schema.String;
70
- readonly clientIdSlot: Schema.optional<Schema.String>;
71
- readonly clientSecretSlot: Schema.optional<Schema.String>;
72
- }>]>, Schema.Struct<{
73
- readonly kind: Schema.Literal<"header">;
74
- readonly headerName: Schema.String;
75
- readonly secretId: Schema.String;
76
- readonly prefix: Schema.optional<Schema.String>;
77
- readonly targetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
78
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
79
- }>, Schema.Struct<{
80
- readonly kind: Schema.Literal<"oauth2">;
81
- readonly connectionId: Schema.String;
82
- readonly clientIdSecretId: Schema.optional<Schema.String>;
83
- readonly clientSecretSecretId: Schema.optional<Schema.NullOr<Schema.String>>;
84
- }>]>>;
85
- readonly credentialTargetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
51
+ readonly scopes: Schema.$Array<Schema.String>;
52
+ }>>;
53
+ readonly credentials: Schema.optional<Schema.Struct<{
54
+ readonly scope: Schema.brand<Schema.String, "ScopeId">;
55
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
56
+ readonly kind: Schema.Literal<"text">;
57
+ readonly text: Schema.String;
58
+ readonly prefix: Schema.optional<Schema.String>;
59
+ }>, Schema.Struct<{
60
+ readonly kind: Schema.Literal<"secret">;
61
+ readonly secretId: Schema.String;
62
+ readonly secretScope: Schema.optional<Schema.String>;
63
+ readonly prefix: Schema.optional<Schema.String>;
64
+ }>, Schema.Struct<{
65
+ readonly kind: Schema.Literal<"connection">;
66
+ readonly connectionId: Schema.String;
67
+ }>]>>>;
68
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
69
+ readonly kind: Schema.Literal<"text">;
70
+ readonly text: Schema.String;
71
+ readonly prefix: Schema.optional<Schema.String>;
72
+ }>, Schema.Struct<{
73
+ readonly kind: Schema.Literal<"secret">;
74
+ readonly secretId: Schema.String;
75
+ readonly secretScope: Schema.optional<Schema.String>;
76
+ readonly prefix: Schema.optional<Schema.String>;
77
+ }>, Schema.Struct<{
78
+ readonly kind: Schema.Literal<"connection">;
79
+ readonly connectionId: Schema.String;
80
+ }>]>>>;
81
+ readonly auth: Schema.optional<Schema.Union<readonly [Schema.Struct<{
82
+ readonly kind: Schema.Literal<"none">;
83
+ }>, Schema.Struct<{
84
+ readonly oauth2: Schema.optional<Schema.Struct<{
85
+ readonly clientId: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
86
+ readonly kind: Schema.Literal<"text">;
87
+ readonly text: Schema.String;
88
+ readonly prefix: Schema.optional<Schema.String>;
89
+ }>, Schema.Struct<{
90
+ readonly kind: Schema.Literal<"secret">;
91
+ readonly secretId: Schema.String;
92
+ readonly secretScope: Schema.optional<Schema.String>;
93
+ readonly prefix: Schema.optional<Schema.String>;
94
+ }>, Schema.Struct<{
95
+ readonly kind: Schema.Literal<"connection">;
96
+ readonly connectionId: Schema.String;
97
+ }>]>>;
98
+ readonly clientSecret: Schema.optional<Schema.NullOr<Schema.Union<readonly [Schema.String, Schema.Struct<{
99
+ readonly kind: Schema.Literal<"text">;
100
+ readonly text: Schema.String;
101
+ readonly prefix: Schema.optional<Schema.String>;
102
+ }>, Schema.Struct<{
103
+ readonly kind: Schema.Literal<"secret">;
104
+ readonly secretId: Schema.String;
105
+ readonly secretScope: Schema.optional<Schema.String>;
106
+ readonly prefix: Schema.optional<Schema.String>;
107
+ }>, Schema.Struct<{
108
+ readonly kind: Schema.Literal<"connection">;
109
+ readonly connectionId: Schema.String;
110
+ }>]>>>;
111
+ readonly connection: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
112
+ readonly kind: Schema.Literal<"text">;
113
+ readonly text: Schema.String;
114
+ readonly prefix: Schema.optional<Schema.String>;
115
+ }>, Schema.Struct<{
116
+ readonly kind: Schema.Literal<"secret">;
117
+ readonly secretId: Schema.String;
118
+ readonly secretScope: Schema.optional<Schema.String>;
119
+ readonly prefix: Schema.optional<Schema.String>;
120
+ }>, Schema.Struct<{
121
+ readonly kind: Schema.Literal<"connection">;
122
+ readonly connectionId: Schema.String;
123
+ }>]>>;
124
+ }>>;
125
+ }>]>>;
126
+ }>>;
86
127
  }>, Schema.Struct<{
87
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
88
128
  readonly transport: Schema.Literal<"stdio">;
89
129
  readonly name: Schema.String;
90
130
  readonly command: Schema.String;
@@ -148,132 +188,4 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.
148
188
  readonly env: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
149
189
  readonly cwd: Schema.optional<Schema.String>;
150
190
  }>]>;
151
- }>>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateSource", "PATCH", "/scopes/:scopeId/mcp/sources/:namespace", HttpApiEndpoint.StringTree<Schema.Struct<{
152
- scopeId: Schema.brand<Schema.String, "ScopeId">;
153
- namespace: Schema.String;
154
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
155
- readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
156
- readonly name: Schema.optional<Schema.String>;
157
- readonly endpoint: Schema.optional<Schema.String>;
158
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
159
- readonly secretId: Schema.String;
160
- readonly prefix: Schema.optional<Schema.String>;
161
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
162
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
163
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
164
- readonly secretId: Schema.String;
165
- readonly prefix: Schema.optional<Schema.String>;
166
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
167
- readonly kind: Schema.Literal<"binding">;
168
- readonly slot: Schema.String;
169
- readonly prefix: Schema.optional<Schema.String>;
170
- }>]>]>>>;
171
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
172
- readonly secretId: Schema.String;
173
- readonly prefix: Schema.optional<Schema.String>;
174
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
175
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
176
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
177
- readonly secretId: Schema.String;
178
- readonly prefix: Schema.optional<Schema.String>;
179
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
180
- readonly kind: Schema.Literal<"binding">;
181
- readonly slot: Schema.String;
182
- readonly prefix: Schema.optional<Schema.String>;
183
- }>]>]>>>;
184
- readonly credentialTargetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
185
- readonly auth: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
186
- readonly kind: Schema.Literal<"none">;
187
- }>, Schema.Struct<{
188
- readonly kind: Schema.Literal<"header">;
189
- readonly headerName: Schema.String;
190
- readonly secretSlot: Schema.String;
191
- readonly prefix: Schema.optional<Schema.String>;
192
- }>, Schema.Struct<{
193
- readonly kind: Schema.Literal<"oauth2">;
194
- readonly connectionSlot: Schema.String;
195
- readonly clientIdSlot: Schema.optional<Schema.String>;
196
- readonly clientSecretSlot: Schema.optional<Schema.String>;
197
- }>]>, Schema.Struct<{
198
- readonly kind: Schema.Literal<"header">;
199
- readonly headerName: Schema.String;
200
- readonly secretId: Schema.String;
201
- readonly prefix: Schema.optional<Schema.String>;
202
- readonly targetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
203
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
204
- }>, Schema.Struct<{
205
- readonly kind: Schema.Literal<"oauth2">;
206
- readonly connectionId: Schema.String;
207
- readonly clientIdSecretId: Schema.optional<Schema.String>;
208
- readonly clientSecretSecretId: Schema.optional<Schema.NullOr<Schema.String>>;
209
- }>]>>;
210
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
211
- readonly updated: Schema.Boolean;
212
- }>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSourceBindings", "GET", "/scopes/:scopeId/mcp/sources/:namespace/base/:sourceScopeId/bindings", HttpApiEndpoint.StringTree<Schema.Struct<{
213
- scopeId: Schema.brand<Schema.String, "ScopeId">;
214
- namespace: Schema.String;
215
- sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
216
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
217
- readonly sourceId: Schema.String;
218
- readonly sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
219
- readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
220
- readonly slot: Schema.String;
221
- readonly value: Schema.Union<readonly [Schema.Struct<{
222
- readonly kind: Schema.Literal<"text">;
223
- readonly text: Schema.String;
224
- }>, Schema.Struct<{
225
- readonly kind: Schema.Literal<"secret">;
226
- readonly secretId: Schema.brand<Schema.String, "SecretId">;
227
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
228
- }>, Schema.Struct<{
229
- readonly kind: Schema.Literal<"connection">;
230
- readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
231
- }>]>;
232
- readonly createdAt: Schema.Date;
233
- readonly updatedAt: Schema.Date;
234
- }>>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/mcp/source-bindings", HttpApiEndpoint.StringTree<Schema.Struct<{
235
- scopeId: Schema.brand<Schema.String, "ScopeId">;
236
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
237
- readonly sourceId: Schema.String;
238
- readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
239
- readonly scope: Schema.brand<Schema.String, "ScopeId">;
240
- readonly slot: Schema.String;
241
- readonly value: Schema.Union<readonly [Schema.Struct<{
242
- readonly kind: Schema.Literal<"text">;
243
- readonly text: Schema.String;
244
- }>, Schema.Struct<{
245
- readonly kind: Schema.Literal<"secret">;
246
- readonly secretId: Schema.brand<Schema.String, "SecretId">;
247
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
248
- }>, Schema.Struct<{
249
- readonly kind: Schema.Literal<"connection">;
250
- readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
251
- }>]>;
252
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
253
- readonly sourceId: Schema.String;
254
- readonly sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
255
- readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
256
- readonly slot: Schema.String;
257
- readonly value: Schema.Union<readonly [Schema.Struct<{
258
- readonly kind: Schema.Literal<"text">;
259
- readonly text: Schema.String;
260
- }>, Schema.Struct<{
261
- readonly kind: Schema.Literal<"secret">;
262
- readonly secretId: Schema.brand<Schema.String, "SecretId">;
263
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
264
- }>, Schema.Struct<{
265
- readonly kind: Schema.Literal<"connection">;
266
- readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
267
- }>]>;
268
- readonly createdAt: Schema.Date;
269
- readonly updatedAt: Schema.Date;
270
- }>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/mcp/source-bindings/remove", HttpApiEndpoint.StringTree<Schema.Struct<{
271
- scopeId: Schema.brand<Schema.String, "ScopeId">;
272
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
273
- readonly sourceId: Schema.String;
274
- readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
275
- readonly slot: Schema.String;
276
- readonly scope: Schema.brand<Schema.String, "ScopeId">;
277
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
278
- readonly removed: Schema.Boolean;
279
- }>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never>, false>;
191
+ }>>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never>, false>;