@executor-js/plugin-mcp 1.5.1 → 1.5.2

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 (38) hide show
  1. package/package.json +17 -17
  2. package/dist/api/group.d.ts +0 -127
  3. package/dist/api/handlers.d.ts +0 -7
  4. package/dist/api/handlers.test.d.ts +0 -1
  5. package/dist/api/index.d.ts +0 -162
  6. package/dist/promise.d.ts +0 -2
  7. package/dist/react/AddMcpSource.d.ts +0 -8
  8. package/dist/react/EditMcpSource.d.ts +0 -4
  9. package/dist/react/McpAccountsPanel.d.ts +0 -6
  10. package/dist/react/McpRemoteSourceFields.d.ts +0 -20
  11. package/dist/react/McpSignInButton.d.ts +0 -5
  12. package/dist/react/atoms.d.ts +0 -175
  13. package/dist/react/auth-method-config.d.ts +0 -8
  14. package/dist/react/auth-method-config.test.d.ts +0 -1
  15. package/dist/react/client.d.ts +0 -123
  16. package/dist/react/index.d.ts +0 -4
  17. package/dist/react/plugin-client.d.ts +0 -9
  18. package/dist/react/source-plugin.d.ts +0 -14
  19. package/dist/sdk/connection.d.ts +0 -19
  20. package/dist/sdk/describe-auth-methods.test.d.ts +0 -1
  21. package/dist/sdk/discover.d.ts +0 -9
  22. package/dist/sdk/elicitation.test.d.ts +0 -1
  23. package/dist/sdk/errors.d.ts +0 -25
  24. package/dist/sdk/index.d.ts +0 -4
  25. package/dist/sdk/invoke.d.ts +0 -15
  26. package/dist/sdk/manifest.d.ts +0 -27
  27. package/dist/sdk/owner-isolation.test.d.ts +0 -1
  28. package/dist/sdk/plugin.d.ts +0 -151
  29. package/dist/sdk/plugin.test.d.ts +0 -1
  30. package/dist/sdk/presets.d.ts +0 -23
  31. package/dist/sdk/probe-shape-real-servers.live.test.d.ts +0 -1
  32. package/dist/sdk/probe-shape.d.ts +0 -53
  33. package/dist/sdk/probe-shape.test.d.ts +0 -1
  34. package/dist/sdk/stdio-connector.d.ts +0 -8
  35. package/dist/sdk/testing-fixtures.test.d.ts +0 -1
  36. package/dist/sdk/types.d.ts +0 -110
  37. package/dist/testing/index.d.ts +0 -1
  38. package/dist/testing/server.d.ts +0 -76
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@executor-js/plugin-mcp",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "homepage": "https://github.com/RhysSullivan/executor/tree/main/packages/plugins/mcp",
5
5
  "bugs": {
6
6
  "url": "https://github.com/RhysSullivan/executor/issues"
@@ -53,28 +53,28 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@cfworker/json-schema": "^4.1.1",
56
- "@effect/platform-node": "4.0.0-beta.59",
57
- "@executor-js/config": "1.5.1",
58
- "@executor-js/sdk": "1.5.1",
56
+ "@effect/platform-node": "catalog:",
57
+ "@executor-js/config": "1.5.2",
58
+ "@executor-js/sdk": "1.5.2",
59
59
  "@modelcontextprotocol/sdk": "^1.29.0",
60
60
  "zod": "^4.3.6"
61
61
  },
62
62
  "devDependencies": {
63
- "@effect/atom-react": "4.0.0-beta.59",
64
- "@effect/vitest": "4.0.0-beta.59",
65
- "@types/node": "^24.3.1",
66
- "@types/react": "^19.1.0",
67
- "bun-types": "^1.2.22",
68
- "effect": "4.0.0-beta.59",
69
- "react": "^19.1.0",
70
- "tsup": "^8.5.0",
71
- "vitest": "^4.1.5"
63
+ "@effect/atom-react": "catalog:",
64
+ "@effect/vitest": "catalog:",
65
+ "@types/node": "catalog:",
66
+ "@types/react": "catalog:",
67
+ "bun-types": "catalog:",
68
+ "effect": "catalog:",
69
+ "react": "catalog:",
70
+ "tsup": "catalog:",
71
+ "vitest": "catalog:"
72
72
  },
73
73
  "peerDependencies": {
74
- "@effect/atom-react": "4.0.0-beta.59",
75
- "@tanstack/react-router": "^1.168.10",
76
- "effect": "4.0.0-beta.59",
77
- "react": "^19.1.0"
74
+ "@effect/atom-react": "catalog:",
75
+ "@tanstack/react-router": "catalog:",
76
+ "effect": "catalog:",
77
+ "react": "catalog:"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "react": {
@@ -1,127 +0,0 @@
1
- import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
2
- import { Schema } from "effect";
3
- import { InternalError, IntegrationAlreadyExistsError } from "@executor-js/sdk/shared";
4
- import { McpConnectionError, McpToolDiscoveryError } from "../sdk/errors";
5
- export declare const McpGroup: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.HttpApiEndpoint<"probeEndpoint", "POST", "/mcp/probe", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
6
- readonly endpoint: Schema.String;
7
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
8
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
9
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
10
- readonly connected: Schema.Boolean;
11
- readonly requiresAuthentication: Schema.Boolean;
12
- readonly requiresOAuth: Schema.Boolean;
13
- readonly supportsDynamicRegistration: Schema.Boolean;
14
- readonly name: Schema.String;
15
- readonly slug: Schema.String;
16
- readonly toolCount: Schema.NullOr<Schema.Number>;
17
- readonly serverName: Schema.NullOr<Schema.String>;
18
- }>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addServer", "POST", "/mcp/servers", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Union<readonly [Schema.Struct<{
19
- readonly transport: Schema.optional<Schema.Literal<"remote">>;
20
- readonly name: Schema.String;
21
- readonly endpoint: Schema.String;
22
- readonly remoteTransport: Schema.optional<Schema.Literals<readonly ["streamable-http", "sse", "auto"]>>;
23
- readonly slug: Schema.optional<Schema.String>;
24
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
25
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
26
- readonly auth: Schema.optional<Schema.Union<readonly [Schema.Struct<{
27
- readonly kind: Schema.Literal<"none">;
28
- }>, Schema.Struct<{
29
- readonly kind: Schema.Literal<"header">;
30
- readonly headerName: Schema.String;
31
- readonly prefix: Schema.optional<Schema.String>;
32
- }>, Schema.Struct<{
33
- readonly kind: Schema.Literal<"oauth2">;
34
- }>]>>;
35
- }>, Schema.Struct<{
36
- readonly transport: Schema.Literal<"stdio">;
37
- readonly name: Schema.String;
38
- readonly command: Schema.String;
39
- readonly args: Schema.optional<Schema.$Array<Schema.String>>;
40
- readonly env: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
41
- readonly cwd: Schema.optional<Schema.String>;
42
- readonly slug: Schema.optional<Schema.String>;
43
- }>]>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
44
- readonly slug: Schema.String;
45
- }>>, HttpApiEndpoint.Json<typeof IntegrationAlreadyExistsError | typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeServer", "DELETE", "/mcp/servers/:slug", HttpApiEndpoint.StringTree<Schema.Struct<{
46
- slug: Schema.brand<Schema.String, "IntegrationSlug">;
47
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
48
- readonly removed: Schema.Boolean;
49
- }>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getServer", "GET", "/mcp/servers/:slug", HttpApiEndpoint.StringTree<Schema.Struct<{
50
- slug: Schema.brand<Schema.String, "IntegrationSlug">;
51
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.NullOr<Schema.Struct<{
52
- readonly slug: Schema.brand<Schema.String, "IntegrationSlug">;
53
- readonly description: Schema.String;
54
- readonly kind: Schema.String;
55
- readonly canRemove: Schema.Boolean;
56
- readonly canRefresh: Schema.Boolean;
57
- readonly config: Schema.Union<readonly [Schema.Struct<{
58
- readonly transport: Schema.Literal<"remote">;
59
- readonly endpoint: Schema.String;
60
- readonly remoteTransport: Schema.withConstructorDefault<Schema.optionalKey<Schema.Literals<readonly ["streamable-http", "sse", "auto"]>>>;
61
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
62
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
63
- readonly auth: Schema.Union<readonly [Schema.Struct<{
64
- readonly kind: Schema.Literal<"none">;
65
- }>, Schema.Struct<{
66
- readonly kind: Schema.Literal<"header">;
67
- readonly headerName: Schema.String;
68
- readonly prefix: Schema.optional<Schema.String>;
69
- }>, Schema.Struct<{
70
- readonly kind: Schema.Literal<"oauth2">;
71
- }>]>;
72
- }>, Schema.Struct<{
73
- readonly transport: Schema.Literal<"stdio">;
74
- readonly command: Schema.String;
75
- readonly args: Schema.optional<Schema.$Array<Schema.String>>;
76
- readonly env: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
77
- readonly cwd: Schema.optional<Schema.String>;
78
- }>]>;
79
- }>>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"configureServer", "POST", "/mcp/servers/:slug/config", HttpApiEndpoint.StringTree<Schema.Struct<{
80
- slug: Schema.brand<Schema.String, "IntegrationSlug">;
81
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
82
- readonly config: Schema.Union<readonly [Schema.Struct<{
83
- readonly transport: Schema.Literal<"remote">;
84
- readonly endpoint: Schema.String;
85
- readonly remoteTransport: Schema.withConstructorDefault<Schema.optionalKey<Schema.Literals<readonly ["streamable-http", "sse", "auto"]>>>;
86
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
87
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
88
- readonly auth: Schema.Union<readonly [Schema.Struct<{
89
- readonly kind: Schema.Literal<"none">;
90
- }>, Schema.Struct<{
91
- readonly kind: Schema.Literal<"header">;
92
- readonly headerName: Schema.String;
93
- readonly prefix: Schema.optional<Schema.String>;
94
- }>, Schema.Struct<{
95
- readonly kind: Schema.Literal<"oauth2">;
96
- }>]>;
97
- }>, Schema.Struct<{
98
- readonly transport: Schema.Literal<"stdio">;
99
- readonly command: Schema.String;
100
- readonly args: Schema.optional<Schema.$Array<Schema.String>>;
101
- readonly env: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
102
- readonly cwd: Schema.optional<Schema.String>;
103
- }>]>;
104
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
105
- readonly config: Schema.Union<readonly [Schema.Struct<{
106
- readonly transport: Schema.Literal<"remote">;
107
- readonly endpoint: Schema.String;
108
- readonly remoteTransport: Schema.withConstructorDefault<Schema.optionalKey<Schema.Literals<readonly ["streamable-http", "sse", "auto"]>>>;
109
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
110
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
111
- readonly auth: Schema.Union<readonly [Schema.Struct<{
112
- readonly kind: Schema.Literal<"none">;
113
- }>, Schema.Struct<{
114
- readonly kind: Schema.Literal<"header">;
115
- readonly headerName: Schema.String;
116
- readonly prefix: Schema.optional<Schema.String>;
117
- }>, Schema.Struct<{
118
- readonly kind: Schema.Literal<"oauth2">;
119
- }>]>;
120
- }>, Schema.Struct<{
121
- readonly transport: Schema.Literal<"stdio">;
122
- readonly command: Schema.String;
123
- readonly args: Schema.optional<Schema.$Array<Schema.String>>;
124
- readonly env: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
125
- readonly cwd: Schema.optional<Schema.String>;
126
- }>]>;
127
- }>>, HttpApiEndpoint.Json<typeof InternalError | typeof McpConnectionError | typeof McpToolDiscoveryError>, never, never>, false>;
@@ -1,7 +0,0 @@
1
- import { Context } from "effect";
2
- import type { McpPluginExtension } from "../sdk/plugin";
3
- declare const McpExtensionService_base: Context.ServiceClass<McpExtensionService, "McpExtensionService", McpPluginExtension>;
4
- export declare class McpExtensionService extends McpExtensionService_base {
5
- }
6
- export declare const McpHandlers: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"executor", "mcp">, never, import("effect/unstable/http/HttpRouter").Request<"Requires", McpExtensionService>>;
7
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,162 +0,0 @@
1
- import { type McpPluginOptions } from "../sdk/plugin";
2
- import { McpExtensionService } from "./handlers";
3
- export { McpGroup } from "./group";
4
- export { McpHandlers, McpExtensionService } from "./handlers";
5
- export declare const mcpHttpPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"mcp", {
6
- probeEndpoint: (input: string | import("../promise").McpProbeEndpointInput) => import("effect/Effect").Effect<{
7
- connected: true;
8
- requiresAuthentication: false;
9
- requiresOAuth: false;
10
- supportsDynamicRegistration: false;
11
- name: string;
12
- slug: string;
13
- toolCount: number;
14
- serverName: string | null;
15
- } | {
16
- connected: false;
17
- requiresAuthentication: true;
18
- requiresOAuth: true;
19
- supportsDynamicRegistration: boolean;
20
- name: string;
21
- slug: string;
22
- toolCount: null;
23
- serverName: null;
24
- } | {
25
- connected: false;
26
- requiresAuthentication: true;
27
- requiresOAuth: false;
28
- supportsDynamicRegistration: false;
29
- name: string;
30
- slug: string;
31
- toolCount: null;
32
- serverName: null;
33
- }, import("../sdk").McpConnectionError, never>;
34
- addServer: (input: import("../promise").McpServerInput) => import("effect/Effect").Effect<{
35
- slug: string;
36
- }, import("@executor-js/sdk/core").StorageFailure | import("@executor-js/sdk/core").IntegrationAlreadyExistsError, never>;
37
- removeServer: (slug: string) => import("effect/Effect").Effect<void, import("@executor-js/sdk/core").StorageFailure, never>;
38
- getServer: (slug: string) => import("effect/Effect").Effect<import("@executor-js/sdk/core").IntegrationRecord | null, import("@executor-js/sdk/core").StorageFailure, never>;
39
- configureServer: (slug: string, config: import("../sdk").McpIntegrationConfig) => import("effect/Effect").Effect<void, import("@executor-js/sdk/core").StorageFailure, never>;
40
- }, {}, McpPluginOptions, 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", "/mcp/probe", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
41
- readonly endpoint: import("effect/Schema").String;
42
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
43
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
44
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
45
- readonly connected: import("effect/Schema").Boolean;
46
- readonly requiresAuthentication: import("effect/Schema").Boolean;
47
- readonly requiresOAuth: import("effect/Schema").Boolean;
48
- readonly supportsDynamicRegistration: import("effect/Schema").Boolean;
49
- readonly name: import("effect/Schema").String;
50
- readonly slug: import("effect/Schema").String;
51
- readonly toolCount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
52
- readonly serverName: import("effect/Schema").NullOr<import("effect/Schema").String>;
53
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk").McpConnectionError | typeof import("../sdk").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"addServer", "POST", "/mcp/servers", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
54
- readonly transport: import("effect/Schema").optional<import("effect/Schema").Literal<"remote">>;
55
- readonly name: import("effect/Schema").String;
56
- readonly endpoint: import("effect/Schema").String;
57
- readonly remoteTransport: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["streamable-http", "sse", "auto"]>>;
58
- readonly slug: import("effect/Schema").optional<import("effect/Schema").String>;
59
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
60
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
61
- readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
62
- readonly kind: import("effect/Schema").Literal<"none">;
63
- }>, import("effect/Schema").Struct<{
64
- readonly kind: import("effect/Schema").Literal<"header">;
65
- readonly headerName: import("effect/Schema").String;
66
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
67
- }>, import("effect/Schema").Struct<{
68
- readonly kind: import("effect/Schema").Literal<"oauth2">;
69
- }>]>>;
70
- }>, import("effect/Schema").Struct<{
71
- readonly transport: import("effect/Schema").Literal<"stdio">;
72
- readonly name: import("effect/Schema").String;
73
- readonly command: import("effect/Schema").String;
74
- readonly args: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
75
- readonly env: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
76
- readonly cwd: import("effect/Schema").optional<import("effect/Schema").String>;
77
- readonly slug: import("effect/Schema").optional<import("effect/Schema").String>;
78
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
79
- readonly slug: import("effect/Schema").String;
80
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk/core").IntegrationAlreadyExistsError | typeof import("@executor-js/api").InternalError | typeof import("../sdk").McpConnectionError | typeof import("../sdk").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeServer", "DELETE", "/mcp/servers/:slug", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
81
- slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
82
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
83
- readonly removed: import("effect/Schema").Boolean;
84
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk").McpConnectionError | typeof import("../sdk").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getServer", "GET", "/mcp/servers/:slug", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
85
- slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
86
- }>>, 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<import("effect/Schema").Struct<{
87
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
88
- readonly description: import("effect/Schema").String;
89
- readonly kind: import("effect/Schema").String;
90
- readonly canRemove: import("effect/Schema").Boolean;
91
- readonly canRefresh: import("effect/Schema").Boolean;
92
- readonly config: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
93
- readonly transport: import("effect/Schema").Literal<"remote">;
94
- readonly endpoint: import("effect/Schema").String;
95
- readonly remoteTransport: import("effect/Schema").withConstructorDefault<import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["streamable-http", "sse", "auto"]>>>;
96
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
97
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
98
- readonly auth: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
99
- readonly kind: import("effect/Schema").Literal<"none">;
100
- }>, import("effect/Schema").Struct<{
101
- readonly kind: import("effect/Schema").Literal<"header">;
102
- readonly headerName: import("effect/Schema").String;
103
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
104
- }>, import("effect/Schema").Struct<{
105
- readonly kind: import("effect/Schema").Literal<"oauth2">;
106
- }>]>;
107
- }>, import("effect/Schema").Struct<{
108
- readonly transport: import("effect/Schema").Literal<"stdio">;
109
- readonly command: import("effect/Schema").String;
110
- readonly args: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
111
- readonly env: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
112
- readonly cwd: import("effect/Schema").optional<import("effect/Schema").String>;
113
- }>]>;
114
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk").McpConnectionError | typeof import("../sdk").McpToolDiscoveryError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"configureServer", "POST", "/mcp/servers/:slug/config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
115
- slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
116
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
117
- readonly config: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
118
- readonly transport: import("effect/Schema").Literal<"remote">;
119
- readonly endpoint: import("effect/Schema").String;
120
- readonly remoteTransport: import("effect/Schema").withConstructorDefault<import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["streamable-http", "sse", "auto"]>>>;
121
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
122
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
123
- readonly auth: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
124
- readonly kind: import("effect/Schema").Literal<"none">;
125
- }>, import("effect/Schema").Struct<{
126
- readonly kind: import("effect/Schema").Literal<"header">;
127
- readonly headerName: import("effect/Schema").String;
128
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
129
- }>, import("effect/Schema").Struct<{
130
- readonly kind: import("effect/Schema").Literal<"oauth2">;
131
- }>]>;
132
- }>, import("effect/Schema").Struct<{
133
- readonly transport: import("effect/Schema").Literal<"stdio">;
134
- readonly command: import("effect/Schema").String;
135
- readonly args: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
136
- readonly env: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
137
- readonly cwd: import("effect/Schema").optional<import("effect/Schema").String>;
138
- }>]>;
139
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
140
- readonly config: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
141
- readonly transport: import("effect/Schema").Literal<"remote">;
142
- readonly endpoint: import("effect/Schema").String;
143
- readonly remoteTransport: import("effect/Schema").withConstructorDefault<import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["streamable-http", "sse", "auto"]>>>;
144
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
145
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
146
- readonly auth: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
147
- readonly kind: import("effect/Schema").Literal<"none">;
148
- }>, import("effect/Schema").Struct<{
149
- readonly kind: import("effect/Schema").Literal<"header">;
150
- readonly headerName: import("effect/Schema").String;
151
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
152
- }>, import("effect/Schema").Struct<{
153
- readonly kind: import("effect/Schema").Literal<"oauth2">;
154
- }>]>;
155
- }>, import("effect/Schema").Struct<{
156
- readonly transport: import("effect/Schema").Literal<"stdio">;
157
- readonly command: import("effect/Schema").String;
158
- readonly args: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
159
- readonly env: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
160
- readonly cwd: import("effect/Schema").optional<import("effect/Schema").String>;
161
- }>]>;
162
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof import("../sdk").McpConnectionError | typeof import("../sdk").McpToolDiscoveryError>, never, never>, false>>;
package/dist/promise.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { mcpPlugin } from "./sdk/plugin";
2
- export type { McpPluginOptions, McpPluginExtension, McpServerInput, McpRemoteServerInput, McpStdioServerInput, McpProbeResult, McpProbeEndpointInput, } from "./sdk/plugin";
@@ -1,8 +0,0 @@
1
- export default function AddMcpSource(props: {
2
- onComplete: (slug?: string) => void;
3
- onCancel: () => void;
4
- initialUrl?: string;
5
- initialPreset?: string;
6
- /** Whether the stdio transport is enabled on the server. */
7
- allowStdio?: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export default function EditMcpSource({ sourceId, onSave, }: {
2
- readonly sourceId: string;
3
- readonly onSave: () => void;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { IntegrationAccountHandoff } from "@executor-js/sdk/client";
2
- export default function McpAccountsPanel(props: {
3
- readonly sourceId: string;
4
- readonly integrationName: string;
5
- readonly accountHandoff?: IntegrationAccountHandoff | null;
6
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +0,0 @@
1
- import { type IntegrationIdentity } from "@executor-js/react/plugins/integration-identity";
2
- export type McpRemoteSourcePreview = {
3
- readonly name: string;
4
- readonly serverName: string | null;
5
- readonly connected: boolean;
6
- readonly requiresAuthentication: boolean;
7
- readonly requiresOAuth: boolean;
8
- readonly toolCount: number | null;
9
- };
10
- export declare function McpRemoteSourceFields(props: {
11
- readonly url: string;
12
- readonly onUrlChange: (url: string) => void;
13
- readonly identity: IntegrationIdentity;
14
- readonly preview: McpRemoteSourcePreview | null;
15
- readonly probing?: boolean;
16
- readonly error?: string | null;
17
- readonly onRetry?: () => void;
18
- readonly namespaceReadOnly?: boolean;
19
- readonly urlDisabled?: boolean;
20
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { type Owner } from "@executor-js/sdk/shared";
2
- export default function McpSignInButton(props: {
3
- sourceId: string;
4
- owner?: Owner;
5
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,175 +0,0 @@
1
- import type { IntegrationSlug } from "@executor-js/sdk/shared";
2
- export declare const mcpServerAtom: (slug: IntegrationSlug) => import("effect/unstable/reactivity/Atom").Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
3
- readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
4
- readonly description: string;
5
- readonly kind: string;
6
- readonly config: {
7
- readonly endpoint: string;
8
- readonly auth: {
9
- readonly kind: "none";
10
- } | {
11
- readonly kind: "header";
12
- readonly headerName: string;
13
- readonly prefix?: string | undefined;
14
- } | {
15
- readonly kind: "oauth2";
16
- };
17
- readonly transport: "remote";
18
- readonly headers?: {
19
- readonly [x: string]: string;
20
- } | undefined;
21
- readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
22
- readonly queryParams?: {
23
- readonly [x: string]: string;
24
- } | undefined;
25
- } | {
26
- readonly transport: "stdio";
27
- readonly command: string;
28
- readonly args?: readonly string[] | undefined;
29
- readonly cwd?: string | undefined;
30
- readonly env?: {
31
- readonly [x: string]: string;
32
- } | undefined;
33
- };
34
- readonly canRemove: boolean;
35
- readonly canRefresh: boolean;
36
- } | null, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>>;
37
- export declare const probeMcpEndpoint: import("effect/unstable/reactivity/Atom").AtomResultFn<{
38
- readonly payload: {
39
- readonly endpoint: string;
40
- readonly headers?: {
41
- readonly [x: string]: string;
42
- } | undefined;
43
- readonly queryParams?: {
44
- readonly [x: string]: string;
45
- } | undefined;
46
- };
47
- readonly responseMode?: "decoded-only" | undefined;
48
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
49
- }, {
50
- readonly name: string;
51
- readonly slug: string;
52
- readonly connected: boolean;
53
- readonly toolCount: number | null;
54
- readonly serverName: string | null;
55
- readonly requiresAuthentication: boolean;
56
- readonly requiresOAuth: boolean;
57
- readonly supportsDynamicRegistration: boolean;
58
- }, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
59
- export declare const addMcpServer: import("effect/unstable/reactivity/Atom").AtomResultFn<{
60
- readonly payload: {
61
- readonly name: string;
62
- readonly endpoint: string;
63
- readonly slug?: string | undefined;
64
- readonly auth?: {
65
- readonly kind: "none";
66
- } | {
67
- readonly kind: "header";
68
- readonly headerName: string;
69
- readonly prefix?: string | undefined;
70
- } | {
71
- readonly kind: "oauth2";
72
- } | undefined;
73
- readonly headers?: {
74
- readonly [x: string]: string;
75
- } | undefined;
76
- readonly transport?: "remote" | undefined;
77
- readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
78
- readonly queryParams?: {
79
- readonly [x: string]: string;
80
- } | undefined;
81
- };
82
- readonly responseMode?: "decoded-only" | undefined;
83
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
84
- } | {
85
- readonly payload: {
86
- readonly name: string;
87
- readonly transport: "stdio";
88
- readonly command: string;
89
- readonly slug?: string | undefined;
90
- readonly args?: readonly string[] | undefined;
91
- readonly cwd?: string | undefined;
92
- readonly env?: {
93
- readonly [x: string]: string;
94
- } | undefined;
95
- };
96
- readonly responseMode?: "decoded-only" | undefined;
97
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
98
- }, {
99
- readonly slug: string;
100
- }, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
101
- export declare const removeMcpServer: import("effect/unstable/reactivity/Atom").AtomResultFn<{
102
- readonly params: {
103
- readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
104
- };
105
- readonly responseMode?: "decoded-only" | undefined;
106
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
107
- }, {
108
- readonly removed: boolean;
109
- }, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
110
- export declare const configureMcpServer: import("effect/unstable/reactivity/Atom").AtomResultFn<{
111
- readonly params: {
112
- readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
113
- };
114
- readonly payload: {
115
- readonly config: {
116
- readonly endpoint: string;
117
- readonly auth: {
118
- readonly kind: "none";
119
- } | {
120
- readonly kind: "header";
121
- readonly headerName: string;
122
- readonly prefix?: string | undefined;
123
- } | {
124
- readonly kind: "oauth2";
125
- };
126
- readonly transport: "remote";
127
- readonly headers?: {
128
- readonly [x: string]: string;
129
- } | undefined;
130
- readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
131
- readonly queryParams?: {
132
- readonly [x: string]: string;
133
- } | undefined;
134
- } | {
135
- readonly transport: "stdio";
136
- readonly command: string;
137
- readonly args?: readonly string[] | undefined;
138
- readonly cwd?: string | undefined;
139
- readonly env?: {
140
- readonly [x: string]: string;
141
- } | undefined;
142
- };
143
- };
144
- readonly responseMode?: "decoded-only" | undefined;
145
- readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
146
- }, {
147
- readonly config: {
148
- readonly endpoint: string;
149
- readonly auth: {
150
- readonly kind: "none";
151
- } | {
152
- readonly kind: "header";
153
- readonly headerName: string;
154
- readonly prefix?: string | undefined;
155
- } | {
156
- readonly kind: "oauth2";
157
- };
158
- readonly transport: "remote";
159
- readonly headers?: {
160
- readonly [x: string]: string;
161
- } | undefined;
162
- readonly remoteTransport?: "auto" | "streamable-http" | "sse" | undefined;
163
- readonly queryParams?: {
164
- readonly [x: string]: string;
165
- } | undefined;
166
- } | {
167
- readonly transport: "stdio";
168
- readonly command: string;
169
- readonly args?: readonly string[] | undefined;
170
- readonly cwd?: string | undefined;
171
- readonly env?: {
172
- readonly [x: string]: string;
173
- } | undefined;
174
- };
175
- }, import("@executor-js/sdk").InternalError | import("../sdk").McpConnectionError | import("../sdk").McpToolDiscoveryError>;
@@ -1,8 +0,0 @@
1
- import type { AuthTemplateEditorValue } from "@executor-js/react/components/auth-template-editor";
2
- import type { McpAuthTemplate } from "../sdk/types";
3
- /** Convert a generic editor value into MCP's single `McpAuthTemplate`. An
4
- * apiKey method maps to a `header` template using its FIRST header placement
5
- * (MCP carries a single header, not an array); a header placement's prefix is
6
- * preserved. OAuth maps to `oauth2`; `none` to `none`. An apiKey value with no
7
- * usable header placement falls back to `none`. */
8
- export declare function mcpAuthTemplateFromEditorValue(value: AuthTemplateEditorValue): McpAuthTemplate;
@@ -1 +0,0 @@
1
- export {};