@executor-js/plugin-mcp 1.4.30 → 1.4.32

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.
@@ -1,6 +1,6 @@
1
1
  import { Effect, ScopedCache } from "effect";
2
2
  import { type Elicit } from "@executor-js/sdk/core";
3
- import { McpConnectionError, McpInvocationError } from "./errors";
3
+ import { McpAuthRequiredError, McpConnectionError, McpInvocationError } from "./errors";
4
4
  import type { McpConnection } from "./connection";
5
5
  import type { McpStoredSourceData } from "./types";
6
6
  export interface InvokeMcpToolInput {
@@ -14,9 +14,9 @@ export interface InvokeMcpToolInput {
14
14
  * connection cache key so per-user OAuth/secret resolution doesn't
15
15
  * collapse multiple users onto one shared connection. */
16
16
  readonly invokerScope: string;
17
- readonly resolveConnector: () => Effect.Effect<McpConnection, McpConnectionError>;
18
- readonly connectionCache: ScopedCache.ScopedCache<string, McpConnection, McpConnectionError>;
19
- readonly pendingConnectors: Map<string, Effect.Effect<McpConnection, McpConnectionError>>;
17
+ readonly resolveConnector: () => Effect.Effect<McpConnection, McpAuthRequiredError | McpConnectionError>;
18
+ readonly connectionCache: ScopedCache.ScopedCache<string, McpConnection, McpAuthRequiredError | McpConnectionError>;
19
+ readonly pendingConnectors: Map<string, Effect.Effect<McpConnection, McpAuthRequiredError | McpConnectionError>>;
20
20
  readonly elicit: Elicit;
21
21
  }
22
- export declare const invokeMcpTool: (input: InvokeMcpToolInput) => Effect.Effect<unknown, McpConnectionError | McpInvocationError>;
22
+ export declare const invokeMcpTool: (input: InvokeMcpToolInput) => Effect.Effect<unknown, McpAuthRequiredError | McpConnectionError | McpInvocationError>;
@@ -1,5 +1,3 @@
1
- import "./chunk-PZ5AY32C.js";
2
-
3
1
  // src/sdk/stdio-connector.ts
4
2
  import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
5
3
  var createStdioTransport = (config) => new StdioClientTransport({
@@ -11,4 +9,4 @@ var createStdioTransport = (config) => new StdioClientTransport({
11
9
  export {
12
10
  createStdioTransport
13
11
  };
14
- //# sourceMappingURL=stdio-connector-MDW6PW36.js.map
12
+ //# sourceMappingURL=stdio-connector-AA5S6UUJ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/sdk/stdio-connector.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// Stdio transport factory — loaded only on demand\n// ---------------------------------------------------------------------------\n//\n// Kept in its own module so `connection.ts` never imports it eagerly at\n// module load. `@modelcontextprotocol/sdk/client/stdio.js` pulls in\n// `node:child_process` at evaluation time; under `@cloudflare/vitest-pool-workers`\n// that crashes workerd at module instantiation with SIGSEGV (prod bundles\n// tree-shake it away when `dangerouslyAllowStdioMCP: false`, tests do not).\n//\n// Callers that actually need stdio transport reach it via a dynamic import\n// in `connection.ts`. Remote-only consumers (cloud/marketing) never execute\n// the import and therefore never touch `node:child_process`.\n// ---------------------------------------------------------------------------\n\nimport { StdioClientTransport } from \"@modelcontextprotocol/sdk/client/stdio.js\";\n\nexport type StdioTransportConfig = {\n readonly command: string;\n readonly args?: ReadonlyArray<string>;\n readonly env?: Record<string, string>;\n readonly cwd?: string;\n};\n\nexport const createStdioTransport = (config: StdioTransportConfig) =>\n new StdioClientTransport({\n command: config.command,\n args: config.args ? [...config.args] : undefined,\n env: config.env ? ({ ...process.env, ...config.env } as Record<string, string>) : undefined,\n cwd: config.cwd,\n });\n"],"mappings":";;;AAeA,SAAS,4BAA4B;AAS9B,IAAM,uBAAuB,CAAC,WACnC,IAAI,qBAAqB;AAAA,EACvB,SAAS,OAAO;AAAA,EAChB,MAAM,OAAO,OAAO,CAAC,GAAG,OAAO,IAAI,IAAI;AAAA,EACvC,KAAK,OAAO,MAAO,EAAE,GAAG,QAAQ,KAAK,GAAG,OAAO,IAAI,IAA+B;AAAA,EAClF,KAAK,OAAO;AACd,CAAC;","names":[]}
1
+ {"version":3,"sources":["../src/sdk/stdio-connector.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// Stdio transport factory — loaded only on demand\n// ---------------------------------------------------------------------------\n//\n// Kept in its own module so `connection.ts` never imports it eagerly at\n// module load. `@modelcontextprotocol/sdk/client/stdio.js` pulls in\n// `node:child_process` at evaluation time; under `@cloudflare/vitest-pool-workers`\n// that crashes workerd at module instantiation with SIGSEGV (prod bundles\n// tree-shake it away when `dangerouslyAllowStdioMCP: false`, tests do not).\n//\n// Callers that actually need stdio transport reach it via a dynamic import\n// in `connection.ts`. Remote-only consumers (cloud/marketing) never execute\n// the import and therefore never touch `node:child_process`.\n// ---------------------------------------------------------------------------\n\nimport { StdioClientTransport } from \"@modelcontextprotocol/sdk/client/stdio.js\";\n\nexport type StdioTransportConfig = {\n readonly command: string;\n readonly args?: ReadonlyArray<string>;\n readonly env?: Record<string, string>;\n readonly cwd?: string;\n};\n\nexport const createStdioTransport = (config: StdioTransportConfig) =>\n new StdioClientTransport({\n command: config.command,\n args: config.args ? [...config.args] : undefined,\n env: config.env ? ({ ...process.env, ...config.env } as Record<string, string>) : undefined,\n cwd: config.cwd,\n });\n"],"mappings":";AAeA,SAAS,4BAA4B;AAS9B,IAAM,uBAAuB,CAAC,WACnC,IAAI,qBAAqB;AAAA,EACvB,SAAS,OAAO;AAAA,EAChB,MAAM,OAAO,OAAO,CAAC,GAAG,OAAO,IAAI,IAAI;AAAA,EACvC,KAAK,OAAO,MAAO,EAAE,GAAG,QAAQ,KAAK,GAAG,OAAO,IAAI,IAA+B;AAAA,EAClF,KAAK,OAAO;AACd,CAAC;","names":[]}