@executor-js/plugin-mcp 0.1.0 → 0.2.1
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.
- package/dist/AddMcpSource-VM3HY26S.js +762 -0
- package/dist/AddMcpSource-VM3HY26S.js.map +1 -0
- package/dist/EditMcpSource-WELWGRJG.js +259 -0
- package/dist/EditMcpSource-WELWGRJG.js.map +1 -0
- package/dist/McpSourceSummary-7TDQXLT5.js +85 -0
- package/dist/McpSourceSummary-7TDQXLT5.js.map +1 -0
- package/dist/api/group.d.ts +109 -17
- package/dist/api/index.d.ts +391 -0
- package/dist/chunk-2ETJ6LQH.js +239 -0
- package/dist/chunk-2ETJ6LQH.js.map +1 -0
- package/dist/chunk-OOOH3IO4.js +2194 -0
- package/dist/chunk-OOOH3IO4.js.map +1 -0
- package/dist/chunk-SKSXXFOA.js +104 -0
- package/dist/chunk-SKSXXFOA.js.map +1 -0
- package/dist/chunk-Z4CRPOLI.js +186 -0
- package/dist/chunk-Z4CRPOLI.js.map +1 -0
- package/dist/chunk-ZIRGIRGP.js +115 -0
- package/dist/chunk-ZIRGIRGP.js.map +1 -0
- package/dist/client.js +51 -0
- package/dist/client.js.map +1 -0
- package/dist/core.js +26 -2
- package/dist/index.js +2 -1
- package/dist/react/McpRemoteSourceFields.d.ts +18 -0
- package/dist/react/McpSourceSummary.d.ts +5 -0
- package/dist/react/atoms.d.ts +206 -6
- package/dist/react/client.d.ts +113 -16
- package/dist/react/index.d.ts +1 -1
- package/dist/react/plugin-client.d.ts +9 -2
- package/dist/sdk/binding-store.d.ts +106 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/invoke.d.ts +2 -0
- package/dist/sdk/plugin.d.ts +142 -114
- package/dist/sdk/probe-shape-real-servers.live.test.d.ts +1 -0
- package/dist/sdk/probe-shape.d.ts +17 -3
- package/dist/sdk/stored-source.d.ts +9 -6
- package/dist/sdk/types.d.ts +138 -13
- package/dist/{stdio-connector-KNHLETKM.js → stdio-connector-AA5S6UUJ.js} +1 -1
- package/dist/{stdio-connector-KNHLETKM.js.map → stdio-connector-AA5S6UUJ.js.map} +1 -1
- package/dist/testing/index.d.ts +1 -0
- package/dist/{sdk/test-utils.d.ts → testing/server.d.ts} +0 -6
- package/dist/testing.js +51 -0
- package/dist/testing.js.map +1 -0
- package/package.json +17 -4
- package/dist/chunk-C2GNZGFJ.js +0 -1622
- package/dist/chunk-C2GNZGFJ.js.map +0 -1
package/dist/api/group.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { InternalError } from "@executor-js/
|
|
3
|
+
import { InternalError } from "@executor-js/sdk/core";
|
|
4
4
|
import { McpConnectionError, McpToolDiscoveryError } from "../sdk/errors";
|
|
5
5
|
import { McpStoredSourceSchema } from "../sdk/stored-source";
|
|
6
|
+
import { McpSourceBindingRef } from "../sdk/types";
|
|
6
7
|
export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.HttpApiEndpoint<"probeEndpoint", "POST", "/scopes/:scopeId/mcp/probe", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
7
8
|
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
8
9
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
@@ -18,6 +19,7 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.
|
|
|
18
19
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
19
20
|
readonly connected: Schema.Boolean;
|
|
20
21
|
readonly requiresOAuth: Schema.Boolean;
|
|
22
|
+
readonly supportsDynamicRegistration: Schema.Boolean;
|
|
21
23
|
readonly name: Schema.String;
|
|
22
24
|
readonly namespace: Schema.String;
|
|
23
25
|
readonly toolCount: Schema.NullOr<Schema.Number>;
|
|
@@ -25,36 +27,66 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.
|
|
|
25
27
|
}>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addSource", "POST", "/scopes/:scopeId/mcp/sources", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
26
28
|
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
27
29
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Union<readonly [Schema.Struct<{
|
|
30
|
+
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
28
31
|
readonly transport: Schema.Literal<"remote">;
|
|
29
32
|
readonly name: Schema.String;
|
|
30
33
|
readonly endpoint: Schema.String;
|
|
31
34
|
readonly remoteTransport: Schema.optional<Schema.Literals<readonly ["streamable-http", "sse", "auto"]>>;
|
|
32
35
|
readonly namespace: Schema.optional<Schema.String>;
|
|
33
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.
|
|
36
|
+
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
34
37
|
readonly secretId: Schema.String;
|
|
35
38
|
readonly prefix: Schema.optional<Schema.String>;
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
40
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
41
|
+
}>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
38
42
|
readonly secretId: Schema.String;
|
|
39
43
|
readonly prefix: Schema.optional<Schema.String>;
|
|
40
|
-
}>]
|
|
41
|
-
|
|
44
|
+
}>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
45
|
+
readonly kind: Schema.Literal<"binding">;
|
|
46
|
+
readonly slot: Schema.String;
|
|
47
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
48
|
+
}>]>]>>>;
|
|
49
|
+
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
50
|
+
readonly secretId: Schema.String;
|
|
51
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
52
|
+
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
53
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
54
|
+
}>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
55
|
+
readonly secretId: Schema.String;
|
|
56
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
57
|
+
}>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
58
|
+
readonly kind: Schema.Literal<"binding">;
|
|
59
|
+
readonly slot: Schema.String;
|
|
60
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
61
|
+
}>]>]>>>;
|
|
62
|
+
readonly auth: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
42
63
|
readonly kind: Schema.Literal<"none">;
|
|
43
64
|
}>, Schema.Struct<{
|
|
65
|
+
readonly kind: Schema.Literal<"header">;
|
|
66
|
+
readonly headerName: Schema.String;
|
|
67
|
+
readonly secretSlot: Schema.String;
|
|
68
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
69
|
+
}>, Schema.Struct<{
|
|
70
|
+
readonly kind: Schema.Literal<"oauth2">;
|
|
71
|
+
readonly connectionSlot: Schema.String;
|
|
72
|
+
readonly clientIdSlot: Schema.optional<Schema.String>;
|
|
73
|
+
readonly clientSecretSlot: Schema.optional<Schema.String>;
|
|
74
|
+
}>]>, Schema.Struct<{
|
|
44
75
|
readonly kind: Schema.Literal<"header">;
|
|
45
76
|
readonly headerName: Schema.String;
|
|
46
77
|
readonly secretId: Schema.String;
|
|
47
78
|
readonly prefix: Schema.optional<Schema.String>;
|
|
79
|
+
readonly targetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
80
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
48
81
|
}>, Schema.Struct<{
|
|
49
82
|
readonly kind: Schema.Literal<"oauth2">;
|
|
50
|
-
/** Stable id of the SDK Connection minted by `completeOAuth`. The
|
|
51
|
-
* backing access/refresh secrets live on the connection row; the
|
|
52
|
-
* source only needs this pointer. */
|
|
53
83
|
readonly connectionId: Schema.String;
|
|
54
84
|
readonly clientIdSecretId: Schema.optional<Schema.String>;
|
|
55
85
|
readonly clientSecretSecretId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
56
86
|
}>]>>;
|
|
87
|
+
readonly credentialTargetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
57
88
|
}>, Schema.Struct<{
|
|
89
|
+
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
58
90
|
readonly transport: Schema.Literal<"stdio">;
|
|
59
91
|
readonly name: Schema.String;
|
|
60
92
|
readonly command: Schema.String;
|
|
@@ -84,32 +116,92 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.
|
|
|
84
116
|
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
85
117
|
namespace: Schema.String;
|
|
86
118
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
119
|
+
readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
|
|
87
120
|
readonly name: Schema.optional<Schema.String>;
|
|
88
121
|
readonly endpoint: Schema.optional<Schema.String>;
|
|
89
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.
|
|
122
|
+
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
90
123
|
readonly secretId: Schema.String;
|
|
91
124
|
readonly prefix: Schema.optional<Schema.String>;
|
|
92
|
-
|
|
93
|
-
|
|
125
|
+
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
126
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
127
|
+
}>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
94
128
|
readonly secretId: Schema.String;
|
|
95
129
|
readonly prefix: Schema.optional<Schema.String>;
|
|
96
|
-
}>]
|
|
97
|
-
|
|
130
|
+
}>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
131
|
+
readonly kind: Schema.Literal<"binding">;
|
|
132
|
+
readonly slot: Schema.String;
|
|
133
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
134
|
+
}>]>]>>>;
|
|
135
|
+
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
136
|
+
readonly secretId: Schema.String;
|
|
137
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
138
|
+
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
139
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
140
|
+
}>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
141
|
+
readonly secretId: Schema.String;
|
|
142
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
143
|
+
}>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
144
|
+
readonly kind: Schema.Literal<"binding">;
|
|
145
|
+
readonly slot: Schema.String;
|
|
146
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
147
|
+
}>]>]>>>;
|
|
148
|
+
readonly credentialTargetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
149
|
+
readonly auth: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
98
150
|
readonly kind: Schema.Literal<"none">;
|
|
99
151
|
}>, Schema.Struct<{
|
|
152
|
+
readonly kind: Schema.Literal<"header">;
|
|
153
|
+
readonly headerName: Schema.String;
|
|
154
|
+
readonly secretSlot: Schema.String;
|
|
155
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
156
|
+
}>, Schema.Struct<{
|
|
157
|
+
readonly kind: Schema.Literal<"oauth2">;
|
|
158
|
+
readonly connectionSlot: Schema.String;
|
|
159
|
+
readonly clientIdSlot: Schema.optional<Schema.String>;
|
|
160
|
+
readonly clientSecretSlot: Schema.optional<Schema.String>;
|
|
161
|
+
}>]>, Schema.Struct<{
|
|
100
162
|
readonly kind: Schema.Literal<"header">;
|
|
101
163
|
readonly headerName: Schema.String;
|
|
102
164
|
readonly secretId: Schema.String;
|
|
103
165
|
readonly prefix: Schema.optional<Schema.String>;
|
|
166
|
+
readonly targetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
167
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
104
168
|
}>, Schema.Struct<{
|
|
105
169
|
readonly kind: Schema.Literal<"oauth2">;
|
|
106
|
-
/** Stable id of the SDK Connection minted by `completeOAuth`. The
|
|
107
|
-
* backing access/refresh secrets live on the connection row; the
|
|
108
|
-
* source only needs this pointer. */
|
|
109
170
|
readonly connectionId: Schema.String;
|
|
110
171
|
readonly clientIdSecretId: Schema.optional<Schema.String>;
|
|
111
172
|
readonly clientSecretSecretId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
112
173
|
}>]>>;
|
|
113
174
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
114
175
|
readonly updated: Schema.Boolean;
|
|
176
|
+
}>>, 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<{
|
|
177
|
+
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
178
|
+
namespace: Schema.String;
|
|
179
|
+
sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
180
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<typeof McpSourceBindingRef>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/mcp/source-bindings", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
181
|
+
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
182
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
183
|
+
readonly sourceId: Schema.String;
|
|
184
|
+
readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
|
|
185
|
+
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
186
|
+
readonly slot: Schema.String;
|
|
187
|
+
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
188
|
+
readonly kind: Schema.Literal<"text">;
|
|
189
|
+
readonly text: Schema.String;
|
|
190
|
+
}>, Schema.Struct<{
|
|
191
|
+
readonly kind: Schema.Literal<"secret">;
|
|
192
|
+
readonly secretId: Schema.brand<Schema.String, "SecretId">;
|
|
193
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
194
|
+
}>, Schema.Struct<{
|
|
195
|
+
readonly kind: Schema.Literal<"connection">;
|
|
196
|
+
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
197
|
+
}>]>;
|
|
198
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<typeof McpSourceBindingRef>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/mcp/source-bindings/remove", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
199
|
+
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
200
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
201
|
+
readonly sourceId: Schema.String;
|
|
202
|
+
readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
|
|
203
|
+
readonly slot: Schema.String;
|
|
204
|
+
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
205
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
206
|
+
readonly removed: Schema.Boolean;
|
|
115
207
|
}>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never>, false>;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,2 +1,393 @@
|
|
|
1
|
+
import { type McpPluginOptions } from "../sdk/plugin";
|
|
2
|
+
import { McpExtensionService } from "./handlers";
|
|
1
3
|
export { McpGroup } from "./group";
|
|
2
4
|
export { McpHandlers, McpExtensionService } from "./handlers";
|
|
5
|
+
export declare const mcpHttpPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"mcp", {
|
|
6
|
+
probeEndpoint: (input: string | import("../sdk/plugin").McpProbeEndpointInput) => import("effect/Effect").Effect<{
|
|
7
|
+
connected: true;
|
|
8
|
+
requiresOAuth: false;
|
|
9
|
+
supportsDynamicRegistration: false;
|
|
10
|
+
name: string;
|
|
11
|
+
namespace: string;
|
|
12
|
+
toolCount: number;
|
|
13
|
+
serverName: string | null;
|
|
14
|
+
} | {
|
|
15
|
+
connected: false;
|
|
16
|
+
requiresOAuth: true;
|
|
17
|
+
supportsDynamicRegistration: boolean;
|
|
18
|
+
name: string;
|
|
19
|
+
namespace: string;
|
|
20
|
+
toolCount: null;
|
|
21
|
+
serverName: null;
|
|
22
|
+
}, import("@executor-js/storage-core").StorageFailure | import("../sdk/errors").McpConnectionError, never>;
|
|
23
|
+
addSource: (config: import("../promise").McpSourceConfig) => import("effect/Effect").Effect<{
|
|
24
|
+
toolCount: number;
|
|
25
|
+
namespace: string;
|
|
26
|
+
}, import("@executor-js/storage-core").StorageFailure | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError, never>;
|
|
27
|
+
removeSource: (namespace: string, scope: string) => import("effect/Effect").Effect<void, import("@executor-js/storage-core").StorageFailure, never>;
|
|
28
|
+
refreshSource: (namespace: string, scope: string) => import("effect/Effect").Effect<{
|
|
29
|
+
toolCount: number;
|
|
30
|
+
}, import("@executor-js/storage-core").StorageFailure | import("../sdk/errors").McpConnectionError | import("../sdk/errors").McpToolDiscoveryError, never>;
|
|
31
|
+
getSource: (namespace: string, scope: string) => import("effect/Effect").Effect<import("../sdk").McpStoredSource | null, import("@executor-js/storage-core").StorageFailure, never>;
|
|
32
|
+
updateSource: (namespace: string, scope: string, input: import("../promise").McpUpdateSourceInput) => import("effect/Effect").Effect<void, import("@executor-js/storage-core").StorageFailure | import("../sdk/errors").McpConnectionError, never>;
|
|
33
|
+
listSourceBindings: (sourceId: string, sourceScope: string) => import("effect/Effect").Effect<readonly import("../sdk").McpSourceBindingRef[], import("@executor-js/storage-core").StorageFailure, never>;
|
|
34
|
+
setSourceBinding: (input: import("../sdk").McpSourceBindingInput) => import("effect/Effect").Effect<import("../sdk").McpSourceBindingRef, import("@executor-js/storage-core").StorageFailure, never>;
|
|
35
|
+
removeSourceBinding: (sourceId: string, sourceScope: string, slot: string, scope: string) => import("effect/Effect").Effect<void, import("@executor-js/storage-core").StorageFailure, never>;
|
|
36
|
+
}, import("../sdk").McpBindingStore, McpPluginOptions, {
|
|
37
|
+
readonly mcp_source: {
|
|
38
|
+
readonly fields: {
|
|
39
|
+
readonly id: {
|
|
40
|
+
readonly type: "string";
|
|
41
|
+
readonly required: true;
|
|
42
|
+
};
|
|
43
|
+
readonly scope_id: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly required: true;
|
|
46
|
+
readonly index: true;
|
|
47
|
+
};
|
|
48
|
+
readonly name: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly required: true;
|
|
51
|
+
};
|
|
52
|
+
readonly config: {
|
|
53
|
+
readonly type: "json";
|
|
54
|
+
readonly required: true;
|
|
55
|
+
};
|
|
56
|
+
readonly auth_kind: {
|
|
57
|
+
readonly type: ["none", "header", "oauth2"];
|
|
58
|
+
readonly required: true;
|
|
59
|
+
readonly defaultValue: "none";
|
|
60
|
+
};
|
|
61
|
+
readonly auth_header_name: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly required: false;
|
|
64
|
+
};
|
|
65
|
+
readonly auth_header_slot: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly required: false;
|
|
68
|
+
};
|
|
69
|
+
readonly auth_header_prefix: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly required: false;
|
|
72
|
+
};
|
|
73
|
+
readonly auth_connection_slot: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly required: false;
|
|
76
|
+
};
|
|
77
|
+
readonly auth_client_id_slot: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
readonly required: false;
|
|
80
|
+
};
|
|
81
|
+
readonly auth_client_secret_slot: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly required: false;
|
|
84
|
+
};
|
|
85
|
+
readonly created_at: {
|
|
86
|
+
readonly type: "date";
|
|
87
|
+
readonly required: true;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly mcp_source_header: {
|
|
92
|
+
readonly fields: {
|
|
93
|
+
readonly id: {
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
readonly required: true;
|
|
96
|
+
};
|
|
97
|
+
readonly scope_id: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly required: true;
|
|
100
|
+
readonly index: true;
|
|
101
|
+
};
|
|
102
|
+
readonly source_id: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly required: true;
|
|
105
|
+
readonly index: true;
|
|
106
|
+
};
|
|
107
|
+
readonly name: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly required: true;
|
|
110
|
+
};
|
|
111
|
+
readonly kind: {
|
|
112
|
+
readonly type: ["text", "binding"];
|
|
113
|
+
readonly required: true;
|
|
114
|
+
};
|
|
115
|
+
readonly text_value: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly required: false;
|
|
118
|
+
};
|
|
119
|
+
readonly slot_key: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly required: false;
|
|
122
|
+
};
|
|
123
|
+
readonly prefix: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly required: false;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
readonly mcp_source_query_param: {
|
|
130
|
+
readonly fields: {
|
|
131
|
+
readonly id: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
readonly required: true;
|
|
134
|
+
};
|
|
135
|
+
readonly scope_id: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
readonly required: true;
|
|
138
|
+
readonly index: true;
|
|
139
|
+
};
|
|
140
|
+
readonly source_id: {
|
|
141
|
+
readonly type: "string";
|
|
142
|
+
readonly required: true;
|
|
143
|
+
readonly index: true;
|
|
144
|
+
};
|
|
145
|
+
readonly name: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly required: true;
|
|
148
|
+
};
|
|
149
|
+
readonly kind: {
|
|
150
|
+
readonly type: ["text", "binding"];
|
|
151
|
+
readonly required: true;
|
|
152
|
+
};
|
|
153
|
+
readonly text_value: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly required: false;
|
|
156
|
+
};
|
|
157
|
+
readonly slot_key: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly required: false;
|
|
160
|
+
};
|
|
161
|
+
readonly prefix: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly required: false;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly mcp_binding: {
|
|
168
|
+
readonly fields: {
|
|
169
|
+
readonly id: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly required: true;
|
|
172
|
+
};
|
|
173
|
+
readonly scope_id: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly required: true;
|
|
176
|
+
readonly index: true;
|
|
177
|
+
};
|
|
178
|
+
readonly source_id: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly required: true;
|
|
181
|
+
readonly index: true;
|
|
182
|
+
};
|
|
183
|
+
readonly binding: {
|
|
184
|
+
readonly type: "json";
|
|
185
|
+
readonly required: true;
|
|
186
|
+
};
|
|
187
|
+
readonly created_at: {
|
|
188
|
+
readonly type: "date";
|
|
189
|
+
readonly required: true;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
}, typeof McpExtensionService, import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"executor", "mcp">, never, import("effect/unstable/http/HttpRouter").Request<"Requires", McpExtensionService>>, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"mcp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"probeEndpoint", "POST", "/scopes/:scopeId/mcp/probe", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
194
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
195
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
196
|
+
readonly endpoint: import("effect/Schema").String;
|
|
197
|
+
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<{
|
|
198
|
+
readonly secretId: import("effect/Schema").String;
|
|
199
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
200
|
+
}>]>>>;
|
|
201
|
+
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<{
|
|
202
|
+
readonly secretId: import("effect/Schema").String;
|
|
203
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
204
|
+
}>]>>>;
|
|
205
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
206
|
+
readonly connected: import("effect/Schema").Boolean;
|
|
207
|
+
readonly requiresOAuth: import("effect/Schema").Boolean;
|
|
208
|
+
readonly supportsDynamicRegistration: import("effect/Schema").Boolean;
|
|
209
|
+
readonly name: import("effect/Schema").String;
|
|
210
|
+
readonly namespace: import("effect/Schema").String;
|
|
211
|
+
readonly toolCount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
|
|
212
|
+
readonly serverName: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
213
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").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<{
|
|
214
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
215
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
216
|
+
readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
217
|
+
readonly transport: import("effect/Schema").Literal<"remote">;
|
|
218
|
+
readonly name: import("effect/Schema").String;
|
|
219
|
+
readonly endpoint: import("effect/Schema").String;
|
|
220
|
+
readonly remoteTransport: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["streamable-http", "sse", "auto"]>>;
|
|
221
|
+
readonly namespace: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
222
|
+
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
223
|
+
readonly secretId: import("effect/Schema").String;
|
|
224
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
225
|
+
readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
226
|
+
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
227
|
+
}>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
228
|
+
readonly secretId: import("effect/Schema").String;
|
|
229
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
230
|
+
}>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
231
|
+
readonly kind: import("effect/Schema").Literal<"binding">;
|
|
232
|
+
readonly slot: import("effect/Schema").String;
|
|
233
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
234
|
+
}>]>]>>>;
|
|
235
|
+
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
236
|
+
readonly secretId: import("effect/Schema").String;
|
|
237
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
238
|
+
readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
239
|
+
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
240
|
+
}>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
241
|
+
readonly secretId: import("effect/Schema").String;
|
|
242
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
243
|
+
}>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
244
|
+
readonly kind: import("effect/Schema").Literal<"binding">;
|
|
245
|
+
readonly slot: import("effect/Schema").String;
|
|
246
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
247
|
+
}>]>]>>>;
|
|
248
|
+
readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
249
|
+
readonly kind: import("effect/Schema").Literal<"none">;
|
|
250
|
+
}>, import("effect/Schema").Struct<{
|
|
251
|
+
readonly kind: import("effect/Schema").Literal<"header">;
|
|
252
|
+
readonly headerName: import("effect/Schema").String;
|
|
253
|
+
readonly secretSlot: import("effect/Schema").String;
|
|
254
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
255
|
+
}>, import("effect/Schema").Struct<{
|
|
256
|
+
readonly kind: import("effect/Schema").Literal<"oauth2">;
|
|
257
|
+
readonly connectionSlot: import("effect/Schema").String;
|
|
258
|
+
readonly clientIdSlot: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
259
|
+
readonly clientSecretSlot: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
260
|
+
}>]>, import("effect/Schema").Struct<{
|
|
261
|
+
readonly kind: import("effect/Schema").Literal<"header">;
|
|
262
|
+
readonly headerName: import("effect/Schema").String;
|
|
263
|
+
readonly secretId: import("effect/Schema").String;
|
|
264
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
265
|
+
readonly targetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
266
|
+
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
267
|
+
}>, import("effect/Schema").Struct<{
|
|
268
|
+
readonly kind: import("effect/Schema").Literal<"oauth2">;
|
|
269
|
+
readonly connectionId: import("effect/Schema").String;
|
|
270
|
+
readonly clientIdSecretId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
271
|
+
readonly clientSecretSecretId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
272
|
+
}>]>>;
|
|
273
|
+
readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
274
|
+
}>, import("effect/Schema").Struct<{
|
|
275
|
+
readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
276
|
+
readonly transport: import("effect/Schema").Literal<"stdio">;
|
|
277
|
+
readonly name: import("effect/Schema").String;
|
|
278
|
+
readonly command: import("effect/Schema").String;
|
|
279
|
+
readonly args: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
280
|
+
readonly env: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
281
|
+
readonly cwd: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
282
|
+
readonly namespace: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
283
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
284
|
+
readonly toolCount: import("effect/Schema").Number;
|
|
285
|
+
readonly namespace: import("effect/Schema").String;
|
|
286
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeSource", "POST", "/scopes/:scopeId/mcp/sources/remove", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
287
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
288
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
289
|
+
readonly namespace: import("effect/Schema").String;
|
|
290
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
291
|
+
readonly removed: import("effect/Schema").Boolean;
|
|
292
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refreshSource", "POST", "/scopes/:scopeId/mcp/sources/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
293
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
294
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
295
|
+
readonly namespace: import("effect/Schema").String;
|
|
296
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
297
|
+
readonly toolCount: import("effect/Schema").Number;
|
|
298
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSource", "GET", "/scopes/:scopeId/mcp/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
299
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
300
|
+
namespace: import("effect/Schema").String;
|
|
301
|
+
}>>, 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").NullOr<typeof import("../sdk/stored-source").McpStoredSourceSchema>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").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<{
|
|
302
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
303
|
+
namespace: import("effect/Schema").String;
|
|
304
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
305
|
+
readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
306
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
307
|
+
readonly endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
308
|
+
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
309
|
+
readonly secretId: import("effect/Schema").String;
|
|
310
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
311
|
+
readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
312
|
+
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
313
|
+
}>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
314
|
+
readonly secretId: import("effect/Schema").String;
|
|
315
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
316
|
+
}>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
317
|
+
readonly kind: import("effect/Schema").Literal<"binding">;
|
|
318
|
+
readonly slot: import("effect/Schema").String;
|
|
319
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
320
|
+
}>]>]>>>;
|
|
321
|
+
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
322
|
+
readonly secretId: import("effect/Schema").String;
|
|
323
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
324
|
+
readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
325
|
+
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
326
|
+
}>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
327
|
+
readonly secretId: import("effect/Schema").String;
|
|
328
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
329
|
+
}>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
330
|
+
readonly kind: import("effect/Schema").Literal<"binding">;
|
|
331
|
+
readonly slot: import("effect/Schema").String;
|
|
332
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
333
|
+
}>]>]>>>;
|
|
334
|
+
readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
335
|
+
readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
336
|
+
readonly kind: import("effect/Schema").Literal<"none">;
|
|
337
|
+
}>, import("effect/Schema").Struct<{
|
|
338
|
+
readonly kind: import("effect/Schema").Literal<"header">;
|
|
339
|
+
readonly headerName: import("effect/Schema").String;
|
|
340
|
+
readonly secretSlot: import("effect/Schema").String;
|
|
341
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
342
|
+
}>, import("effect/Schema").Struct<{
|
|
343
|
+
readonly kind: import("effect/Schema").Literal<"oauth2">;
|
|
344
|
+
readonly connectionSlot: import("effect/Schema").String;
|
|
345
|
+
readonly clientIdSlot: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
346
|
+
readonly clientSecretSlot: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
347
|
+
}>]>, import("effect/Schema").Struct<{
|
|
348
|
+
readonly kind: import("effect/Schema").Literal<"header">;
|
|
349
|
+
readonly headerName: import("effect/Schema").String;
|
|
350
|
+
readonly secretId: import("effect/Schema").String;
|
|
351
|
+
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
352
|
+
readonly targetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
353
|
+
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
354
|
+
}>, import("effect/Schema").Struct<{
|
|
355
|
+
readonly kind: import("effect/Schema").Literal<"oauth2">;
|
|
356
|
+
readonly connectionId: import("effect/Schema").String;
|
|
357
|
+
readonly clientIdSecretId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
358
|
+
readonly clientSecretSecretId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
359
|
+
}>]>>;
|
|
360
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
361
|
+
readonly updated: import("effect/Schema").Boolean;
|
|
362
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").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<{
|
|
363
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
364
|
+
namespace: import("effect/Schema").String;
|
|
365
|
+
sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
366
|
+
}>>, 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<typeof import("../sdk").McpSourceBindingRef>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").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<{
|
|
367
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
368
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
369
|
+
readonly sourceId: import("effect/Schema").String;
|
|
370
|
+
readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
371
|
+
readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
372
|
+
readonly slot: import("effect/Schema").String;
|
|
373
|
+
readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
374
|
+
readonly kind: import("effect/Schema").Literal<"text">;
|
|
375
|
+
readonly text: import("effect/Schema").String;
|
|
376
|
+
}>, import("effect/Schema").Struct<{
|
|
377
|
+
readonly kind: import("effect/Schema").Literal<"secret">;
|
|
378
|
+
readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
|
|
379
|
+
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
380
|
+
}>, import("effect/Schema").Struct<{
|
|
381
|
+
readonly kind: import("effect/Schema").Literal<"connection">;
|
|
382
|
+
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
383
|
+
}>]>;
|
|
384
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("../sdk").McpSourceBindingRef>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").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<{
|
|
385
|
+
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
386
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
387
|
+
readonly sourceId: import("effect/Schema").String;
|
|
388
|
+
readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
389
|
+
readonly slot: import("effect/Schema").String;
|
|
390
|
+
readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
391
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
392
|
+
readonly removed: import("effect/Schema").Boolean;
|
|
393
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk/errors").McpConnectionError | typeof import("../sdk/errors").McpToolDiscoveryError>, never, never>, false>>;
|