@executor-js/plugin-mcp 0.0.1-beta.5 → 0.0.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/README.md +2 -2
- package/dist/api/group.d.ts +55 -21
- package/dist/api/handlers.test.d.ts +1 -0
- package/dist/{chunk-DR65PT4S.js → chunk-X3JTTDWJ.js} +347 -344
- package/dist/chunk-X3JTTDWJ.js.map +1 -0
- package/dist/core.js +50 -2
- package/dist/core.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/promise.d.ts +1 -1
- package/dist/react/McpSourceSummary.d.ts +1 -1
- package/dist/sdk/binding-store.d.ts +11 -8
- package/dist/sdk/config-file-store.d.ts +10 -0
- package/dist/sdk/index.d.ts +3 -2
- package/dist/sdk/invoke.d.ts +1 -1
- package/dist/sdk/oauth.d.ts +21 -17
- package/dist/sdk/plugin.d.ts +13 -2
- package/dist/sdk/stored-source.d.ts +115 -0
- package/package.json +30 -28
- package/dist/chunk-DR65PT4S.js.map +0 -1
package/README.md
CHANGED
|
@@ -48,10 +48,10 @@ const result = await executor.tools.invoke(
|
|
|
48
48
|
|
|
49
49
|
## Using with Effect
|
|
50
50
|
|
|
51
|
-
If you're building on `@executor/sdk
|
|
51
|
+
If you're building on `@executor/sdk` (the raw Effect entry), import this plugin from its `/core` subpath instead:
|
|
52
52
|
|
|
53
53
|
```ts
|
|
54
|
-
import { mcpPlugin } from "@executor/plugin-mcp
|
|
54
|
+
import { mcpPlugin } from "@executor/plugin-mcp";
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
## Status
|
package/dist/api/group.d.ts
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "@effect/platform";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { McpStoredSourceSchema } from "../sdk/stored-source";
|
|
2
4
|
export { HttpApiSchema };
|
|
5
|
+
declare const McpApiError_base: Schema.TaggedErrorClass<McpApiError, "McpApiError", {
|
|
6
|
+
readonly _tag: Schema.tag<"McpApiError">;
|
|
7
|
+
} & {
|
|
8
|
+
message: typeof Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export declare class McpApiError extends McpApiError_base {
|
|
11
|
+
}
|
|
12
|
+
declare const McpInternalError_base: Schema.TaggedErrorClass<McpInternalError, "McpInternalError", {
|
|
13
|
+
readonly _tag: Schema.tag<"McpInternalError">;
|
|
14
|
+
} & {
|
|
15
|
+
message: typeof Schema.String;
|
|
16
|
+
}>;
|
|
17
|
+
export declare class McpInternalError extends McpInternalError_base {
|
|
18
|
+
}
|
|
3
19
|
declare const McpGroup_base: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.HttpApiEndpoint<"probeEndpoint", "POST", {
|
|
4
20
|
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
5
21
|
}, never, {
|
|
@@ -11,9 +27,7 @@ declare const McpGroup_base: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.Ht
|
|
|
11
27
|
readonly requiresOAuth: boolean;
|
|
12
28
|
readonly toolCount: number | null;
|
|
13
29
|
readonly serverName: string | null;
|
|
14
|
-
}, {
|
|
15
|
-
readonly message: string;
|
|
16
|
-
}, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addSource", "POST", {
|
|
30
|
+
}, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addSource", "POST", {
|
|
17
31
|
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
18
32
|
}, never, {
|
|
19
33
|
readonly name: string;
|
|
@@ -55,25 +69,19 @@ declare const McpGroup_base: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.Ht
|
|
|
55
69
|
}, never, {
|
|
56
70
|
readonly namespace: string;
|
|
57
71
|
readonly toolCount: number;
|
|
58
|
-
}, {
|
|
59
|
-
readonly message: string;
|
|
60
|
-
}, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSource", "POST", {
|
|
72
|
+
}, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSource", "POST", {
|
|
61
73
|
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
62
74
|
}, never, {
|
|
63
75
|
readonly namespace: string;
|
|
64
76
|
}, never, {
|
|
65
77
|
readonly removed: boolean;
|
|
66
|
-
}, {
|
|
67
|
-
readonly message: string;
|
|
68
|
-
}, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refreshSource", "POST", {
|
|
78
|
+
}, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refreshSource", "POST", {
|
|
69
79
|
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
70
80
|
}, never, {
|
|
71
81
|
readonly namespace: string;
|
|
72
82
|
}, never, {
|
|
73
83
|
readonly toolCount: number;
|
|
74
|
-
}, {
|
|
75
|
-
readonly message: string;
|
|
76
|
-
}, never, never> | HttpApiEndpoint.HttpApiEndpoint<"startOAuth", "POST", {
|
|
84
|
+
}, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"startOAuth", "POST", {
|
|
77
85
|
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
78
86
|
}, never, {
|
|
79
87
|
readonly endpoint: string;
|
|
@@ -84,9 +92,7 @@ declare const McpGroup_base: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.Ht
|
|
|
84
92
|
}, never, {
|
|
85
93
|
readonly sessionId: string;
|
|
86
94
|
readonly authorizationUrl: string;
|
|
87
|
-
}, {
|
|
88
|
-
readonly message: string;
|
|
89
|
-
}, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeOAuth", "POST", {
|
|
95
|
+
}, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeOAuth", "POST", {
|
|
90
96
|
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
91
97
|
}, never, {
|
|
92
98
|
readonly error?: string | undefined;
|
|
@@ -98,15 +104,43 @@ declare const McpGroup_base: HttpApiGroup.HttpApiGroup<"mcp", HttpApiEndpoint.Ht
|
|
|
98
104
|
readonly refreshTokenSecretId: string | null;
|
|
99
105
|
readonly tokenType: string;
|
|
100
106
|
readonly expiresAt: number | null;
|
|
101
|
-
}, {
|
|
102
|
-
readonly message: string;
|
|
103
|
-
}, never, never> | HttpApiEndpoint.HttpApiEndpoint<"oauthCallback", "GET", never, {
|
|
107
|
+
}, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"oauthCallback", "GET", never, {
|
|
104
108
|
readonly error?: string | undefined;
|
|
105
109
|
readonly code?: string | undefined;
|
|
106
110
|
readonly state: string;
|
|
107
111
|
readonly error_description?: string | undefined;
|
|
108
|
-
}, never, never, string, {
|
|
109
|
-
readonly
|
|
110
|
-
|
|
112
|
+
}, never, never, string, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSource", "GET", {
|
|
113
|
+
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
114
|
+
readonly namespace: string;
|
|
115
|
+
}, never, never, never, McpStoredSourceSchema | null, McpApiError | McpInternalError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateSource", "PATCH", {
|
|
116
|
+
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
117
|
+
readonly namespace: string;
|
|
118
|
+
}, never, {
|
|
119
|
+
readonly name?: string | undefined;
|
|
120
|
+
readonly endpoint?: string | undefined;
|
|
121
|
+
readonly queryParams?: {
|
|
122
|
+
readonly [x: string]: string;
|
|
123
|
+
} | undefined;
|
|
124
|
+
readonly headers?: {
|
|
125
|
+
readonly [x: string]: string;
|
|
126
|
+
} | undefined;
|
|
127
|
+
readonly auth?: {
|
|
128
|
+
readonly kind: "none";
|
|
129
|
+
} | {
|
|
130
|
+
readonly secretId: string;
|
|
131
|
+
readonly kind: "header";
|
|
132
|
+
readonly headerName: string;
|
|
133
|
+
readonly prefix?: string | undefined;
|
|
134
|
+
} | {
|
|
135
|
+
readonly kind: "oauth2";
|
|
136
|
+
readonly scope: string | null;
|
|
137
|
+
readonly accessTokenSecretId: string;
|
|
138
|
+
readonly refreshTokenSecretId: string | null;
|
|
139
|
+
readonly tokenType?: string | undefined;
|
|
140
|
+
readonly expiresAt: number | null;
|
|
141
|
+
} | undefined;
|
|
142
|
+
}, never, {
|
|
143
|
+
readonly updated: boolean;
|
|
144
|
+
}, McpApiError | McpInternalError, never, never>, never, never, false>;
|
|
111
145
|
export declare class McpGroup extends McpGroup_base {
|
|
112
146
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|