@executor-js/plugin-mcp 1.4.28 → 1.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddMcpSource-TLAL463B.js → AddMcpSource-3HUBFR3K.js} +68 -141
- package/dist/AddMcpSource-3HUBFR3K.js.map +1 -0
- package/dist/{EditMcpSource-FAWEECNU.js → EditMcpSource-UVGSSC2R.js} +106 -83
- package/dist/EditMcpSource-UVGSSC2R.js.map +1 -0
- package/dist/McpSourceSummary-UWVCAJOU.js +171 -0
- package/dist/McpSourceSummary-UWVCAJOU.js.map +1 -0
- package/dist/api/group.d.ts +92 -180
- package/dist/api/index.d.ts +97 -382
- package/dist/{chunk-4ORPFRLI.js → chunk-2A4H3UVR.js} +21 -80
- package/dist/chunk-2A4H3UVR.js.map +1 -0
- package/dist/{chunk-M6REVU6O.js → chunk-3TGDWTNE.js} +14 -40
- package/dist/chunk-3TGDWTNE.js.map +1 -0
- package/dist/{chunk-NQT7NAGE.js → chunk-H5PLTEMB.js} +673 -713
- package/dist/chunk-H5PLTEMB.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/{chunk-SKSXXFOA.js → chunk-TW44CBXJ.js} +12 -1
- package/dist/chunk-TW44CBXJ.js.map +1 -0
- package/dist/client.js +5 -4
- package/dist/client.js.map +1 -1
- package/dist/core.js +4 -6
- package/dist/index.js +4 -2
- package/dist/promise.d.ts +1 -1
- package/dist/react/atoms.d.ts +198 -236
- package/dist/react/client.d.ts +91 -179
- package/dist/sdk/binding-store.d.ts +3 -163
- package/dist/sdk/index.d.ts +2 -2
- package/dist/sdk/plugin.d.ts +172 -225
- package/dist/sdk/presets.d.ts +1 -0
- package/dist/sdk/testing-fixtures.test.d.ts +1 -0
- package/dist/sdk/types.d.ts +58 -83
- package/dist/{stdio-connector-AA5S6UUJ.js → stdio-connector-MDW6PW36.js} +3 -1
- package/dist/{stdio-connector-AA5S6UUJ.js.map → stdio-connector-MDW6PW36.js.map} +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/server.d.ts +70 -4
- package/dist/testing.js +14085 -30
- package/dist/testing.js.map +1 -1
- package/package.json +3 -4
- package/dist/AddMcpSource-TLAL463B.js.map +0 -1
- package/dist/EditMcpSource-FAWEECNU.js.map +0 -1
- package/dist/McpSourceSummary-257JNETP.js +0 -85
- package/dist/McpSourceSummary-257JNETP.js.map +0 -1
- package/dist/chunk-4ORPFRLI.js.map +0 -1
- package/dist/chunk-M6REVU6O.js.map +0 -1
- package/dist/chunk-NQT7NAGE.js.map +0 -1
- package/dist/chunk-SKSXXFOA.js.map +0 -1
package/dist/testing/server.d.ts
CHANGED
|
@@ -1,10 +1,76 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
2
|
-
import * as http from "node:http";
|
|
1
|
+
import { Context, Effect, Layer, Scope } from "effect";
|
|
3
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
+
import { OAuthTestServer } from "@executor-js/sdk/testing";
|
|
4
4
|
export type McpTestServer = {
|
|
5
5
|
readonly url: string;
|
|
6
|
-
readonly
|
|
6
|
+
readonly endpoint: string;
|
|
7
7
|
/** Number of MCP sessions created (each connect = 1 session) */
|
|
8
8
|
readonly sessionCount: () => number;
|
|
9
|
+
readonly requests: Effect.Effect<readonly McpTestRequest[]>;
|
|
10
|
+
readonly clearRequests: Effect.Effect<void>;
|
|
9
11
|
};
|
|
10
|
-
export
|
|
12
|
+
export type McpTestRequest = {
|
|
13
|
+
readonly method: string;
|
|
14
|
+
readonly url: string;
|
|
15
|
+
readonly authorization: string | undefined;
|
|
16
|
+
readonly sessionId: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
export type McpTestServerOptions = {
|
|
19
|
+
readonly path?: string;
|
|
20
|
+
readonly auth?: {
|
|
21
|
+
readonly validateAuthorization: (authorization: string | undefined) => Effect.Effect<boolean>;
|
|
22
|
+
readonly authorizationServerUrls?: readonly string[];
|
|
23
|
+
readonly scopes?: readonly string[];
|
|
24
|
+
readonly wwwAuthenticate?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare const McpTestServerError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
28
|
+
readonly _tag: "McpTestServerError";
|
|
29
|
+
} & Readonly<A>;
|
|
30
|
+
export declare class McpTestServerError extends McpTestServerError_base<{
|
|
31
|
+
readonly cause: unknown;
|
|
32
|
+
}> {
|
|
33
|
+
}
|
|
34
|
+
export declare const serveMcpServer: (factory: () => McpServer, options?: McpTestServerOptions) => Effect.Effect<{
|
|
35
|
+
url: string;
|
|
36
|
+
endpoint: string;
|
|
37
|
+
sessionCount: () => number;
|
|
38
|
+
requests: Effect.Effect<readonly McpTestRequest[], never, never>;
|
|
39
|
+
clearRequests: Effect.Effect<void, never, never>;
|
|
40
|
+
}, McpTestServerError, Scope.Scope>;
|
|
41
|
+
export declare const serveMcpServerWithOAuth: (factory: () => McpServer, options?: Omit<McpTestServerOptions, "auth"> & {
|
|
42
|
+
readonly scopes?: readonly string[];
|
|
43
|
+
readonly wwwAuthenticate?: string;
|
|
44
|
+
}) => Effect.Effect<{
|
|
45
|
+
url: string;
|
|
46
|
+
endpoint: string;
|
|
47
|
+
sessionCount: () => number;
|
|
48
|
+
requests: Effect.Effect<readonly McpTestRequest[], never, never>;
|
|
49
|
+
clearRequests: Effect.Effect<void, never, never>;
|
|
50
|
+
}, McpTestServerError, Scope.Scope | OAuthTestServer>;
|
|
51
|
+
declare const McpTestServerLayer_base: Context.ServiceClass<McpTestServerLayer, "@executor-js/plugin-mcp/testing/McpTestServer", McpTestServer>;
|
|
52
|
+
export declare class McpTestServerLayer extends McpTestServerLayer_base {
|
|
53
|
+
static readonly layer: (factory: () => McpServer, options?: McpTestServerOptions) => Layer.Layer<McpTestServerLayer, McpTestServerError, Scope.Scope>;
|
|
54
|
+
static readonly layerWithOAuth: (factory: () => McpServer, options?: Omit<McpTestServerOptions, "auth"> & {
|
|
55
|
+
readonly scopes?: readonly string[];
|
|
56
|
+
readonly wwwAuthenticate?: string;
|
|
57
|
+
}) => Layer.Layer<McpTestServerLayer, McpTestServerError, Scope.Scope | OAuthTestServer>;
|
|
58
|
+
}
|
|
59
|
+
export declare const makeGreetingMcpServer: (options?: {
|
|
60
|
+
readonly name?: string;
|
|
61
|
+
readonly version?: string;
|
|
62
|
+
readonly toolName?: string;
|
|
63
|
+
readonly toolDescription?: string;
|
|
64
|
+
readonly text?: string;
|
|
65
|
+
}) => McpServer;
|
|
66
|
+
export declare const makeEchoMcpServer: (options?: {
|
|
67
|
+
readonly name?: string;
|
|
68
|
+
readonly version?: string;
|
|
69
|
+
readonly toolName?: string;
|
|
70
|
+
readonly toolDescription?: string;
|
|
71
|
+
readonly inputName?: "name" | "value" | "marker";
|
|
72
|
+
readonly text?: (value: string) => string;
|
|
73
|
+
}) => McpServer;
|
|
74
|
+
export declare const makeElicitationMcpServer: () => McpServer;
|
|
75
|
+
export declare const makeAnnotationsMcpServer: () => McpServer;
|
|
76
|
+
export {};
|