@dxos/mcp-client 0.10.0 → 0.11.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.
@@ -0,0 +1,172 @@
1
+ import * as Tool from "@effect/ai/Tool";
2
+ import * as Toolkit from "@effect/ai/Toolkit";
3
+ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
4
+ import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
5
+ import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
6
+ import * as Cause from "effect/Cause";
7
+ import * as Effect from "effect/Effect";
8
+ import * as Schema from "effect/Schema";
9
+ import { OpaqueToolkit } from "@dxos/ai";
10
+ import { invariant } from "@dxos/invariant";
11
+ //#region \0rolldown/runtime.js
12
+ var __defProp = Object.defineProperty;
13
+ var __exportAll = (all, no_symbols) => {
14
+ let target = {};
15
+ for (var name in all) __defProp(target, name, {
16
+ get: all[name],
17
+ enumerable: true
18
+ });
19
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
20
+ return target;
21
+ };
22
+ //#endregion
23
+ //#region src/McpToolkit.ts
24
+ var McpToolkit_exports = /* @__PURE__ */ __exportAll({
25
+ McpConnectionError: () => McpConnectionError,
26
+ is405: () => is405,
27
+ make: () => make
28
+ });
29
+ var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/mcp-client/src/McpToolkit.ts";
30
+ /**
31
+ * Typed failure raised when the MCP client cannot connect or list tools.
32
+ * Carries the underlying cause and the server URL for diagnostics.
33
+ */
34
+ var McpConnectionError = class extends Schema.TaggedError("McpConnectionError")("McpConnectionError", {
35
+ url: Schema.String,
36
+ protocol: Schema.Literal("sse", "http"),
37
+ message: Schema.String
38
+ }) {};
39
+ /**
40
+ * Creates an OpaqueToolkit that connects to an MCP server and exposes its tools to the assistant.
41
+ *
42
+ * @param options MCP server URL and transport protocol ('http' for Streamable HTTP, 'sse' for SSE).
43
+ * @returns An OpaqueToolkit containing all tools from the MCP server.
44
+ */
45
+ var CLIENT_INFO = {
46
+ name: "@dxos/mcp-client",
47
+ version: "0.8.3"
48
+ };
49
+ var make = (options) => Effect.gen(function* () {
50
+ const { client, protocol } = yield* connectWithFallback(options);
51
+ const { tools } = yield* Effect.tryPromise({
52
+ try: () => client.listTools(),
53
+ catch: (cause) => new McpConnectionError({
54
+ url: options.url,
55
+ protocol,
56
+ message: `Failed to list MCP tools: ${formatCause(cause)}`
57
+ })
58
+ });
59
+ if (tools.length === 0) return OpaqueToolkit.empty;
60
+ const effectTools = tools.map((mcpTool) => {
61
+ const parameters = {};
62
+ for (const [key, value] of Object.entries(mcpTool.inputSchema.properties ?? {})) if (mcpTool.inputSchema.required?.includes(key)) parameters[key] = Schema.Unknown.pipe(Schema.annotations({ jsonSchema: value }));
63
+ else parameters[key] = Schema.Unknown.pipe(Schema.annotations({ jsonSchema: value })).pipe(Schema.optional);
64
+ return Tool.make(sanitizeToolName(mcpTool.name), {
65
+ description: mcpTool.description ?? `MCP tool: ${mcpTool.name}`,
66
+ parameters,
67
+ success: Schema.String,
68
+ failure: Schema.Never
69
+ });
70
+ });
71
+ const toolkit = Toolkit.make(...effectTools);
72
+ const handlers = Object.fromEntries(tools.map((mcpTool) => {
73
+ return [sanitizeToolName(mcpTool.name), Effect.fn(function* (args) {
74
+ return formatToolResult(yield* Effect.promise(() => client.callTool({
75
+ name: mcpTool.name,
76
+ arguments: args
77
+ })));
78
+ })];
79
+ }));
80
+ const layer = toolkit.toLayer(handlers);
81
+ return OpaqueToolkit.make(toolkit, layer);
82
+ }).pipe(Effect.withSpan("McpToolkit.make"));
83
+ /**
84
+ * Returns true when the error (or its wrapped cause) contains a 405 status code.
85
+ * `Effect.tryPromise` wraps thrown errors in `UnknownException`, so we unwrap first.
86
+ */
87
+ var is405 = (error) => {
88
+ const cause = error != null && typeof error === "object" && "error" in error ? error.error : error;
89
+ return cause instanceof Error && cause.message.includes("405");
90
+ };
91
+ /**
92
+ * Connects to an MCP server, falling back to the alternate transport on 405 errors.
93
+ * Per the MCP spec, a 405 indicates the server uses the other transport protocol.
94
+ * Returns the connected Client (a fresh instance is created for the fallback attempt).
95
+ *
96
+ * Failures are surfaced as typed `McpConnectionError` so callers can recover (e.g. drop
97
+ * the misconfigured server) without breaking the surrounding effect.
98
+ */
99
+ var connectWithFallback = (options) => Effect.gen(function* () {
100
+ const fallbackProtocol = options.protocol === "sse" ? "http" : "sse";
101
+ const primary = yield* connectClient(options.url, options.protocol, options.apiKey).pipe(Effect.either);
102
+ if (primary._tag === "Right") return {
103
+ client: primary.right,
104
+ protocol: options.protocol
105
+ };
106
+ if (is405(primary.left)) {
107
+ const fallback = yield* connectClient(options.url, fallbackProtocol, options.apiKey).pipe(Effect.either);
108
+ if (fallback._tag === "Right") return {
109
+ client: fallback.right,
110
+ protocol: fallbackProtocol
111
+ };
112
+ return yield* Effect.fail(new McpConnectionError({
113
+ url: options.url,
114
+ protocol: fallbackProtocol,
115
+ message: `Failed to connect via ${fallbackProtocol} after 405 fallback: ${formatCause(fallback.left)}`
116
+ }));
117
+ }
118
+ return yield* Effect.fail(new McpConnectionError({
119
+ url: options.url,
120
+ protocol: options.protocol,
121
+ message: `Failed to connect via ${options.protocol}: ${formatCause(primary.left)}`
122
+ }));
123
+ });
124
+ var connectClient = (url, protocol, apiKey) => Effect.tryPromise(() => {
125
+ const client = new Client(CLIENT_INFO);
126
+ const transport = createTransport(url, protocol, apiKey);
127
+ return client.connect(transport).then(() => client);
128
+ });
129
+ /**
130
+ * Renders a thrown value to a short string for inclusion in error messages.
131
+ * `Effect.tryPromise` wraps thrown errors in `UnknownException`; unwrap when present.
132
+ */
133
+ var formatCause = (error) => {
134
+ const inner = error != null && typeof error === "object" && "error" in error ? error.error : error;
135
+ if (inner instanceof Error) return inner.message;
136
+ if (Cause.isCause(error)) return Cause.pretty(error);
137
+ return String(inner);
138
+ };
139
+ /**
140
+ * Creates a transport for the given MCP server URL and protocol.
141
+ */
142
+ var createTransport = (url, protocol, apiKey) => {
143
+ const urlObj = new URL(url);
144
+ const requestInit = apiKey ? { headers: { Authorization: `Bearer ${apiKey}` } } : void 0;
145
+ switch (protocol) {
146
+ case "sse": return new SSEClientTransport(urlObj, { requestInit });
147
+ case "http": return new StreamableHTTPClientTransport(urlObj, { requestInit });
148
+ default: return invariant(false, `Unsupported MCP transport protocol: ${protocol}`, {
149
+ "~LogMeta": "~LogMeta",
150
+ F: __dxlog_file,
151
+ L: 198,
152
+ S: void 0,
153
+ A: ["false", "`Unsupported MCP transport protocol: ${_exhaustive}`"]
154
+ });
155
+ }
156
+ };
157
+ /**
158
+ * Sanitizes MCP tool names for use as Effect tool names (replaces / with _).
159
+ */
160
+ var sanitizeToolName = (name) => name.replace(/\//g, "_");
161
+ /**
162
+ * Formats MCP callTool result content for the assistant.
163
+ */
164
+ var formatToolResult = (result) => {
165
+ if ("toolResult" in result && result.toolResult !== void 0) return JSON.stringify(result.toolResult);
166
+ if ("content" in result && Array.isArray(result.content)) return result.content.filter((part) => part.type === "text").map((part) => part.text).join("\n");
167
+ return String(result);
168
+ };
169
+ //#endregion
170
+ export { McpToolkit_exports as McpToolkit };
171
+
172
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/McpToolkit.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Tool from '@effect/ai/Tool';\nimport * as Toolkit from '@effect/ai/Toolkit';\nimport { Client } from '@modelcontextprotocol/sdk/client/index.js';\n// SSEClientTransport is marked @deprecated in the SDK in favor of StreamableHTTP, but the\n// SDK itself notes that clients should keep supporting both while servers migrate.\n// `connectWithFallback` below tries the configured protocol first, then the other on 405.\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nimport { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';\nimport { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';\nimport * as Cause from 'effect/Cause';\nimport * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { OpaqueToolkit } from '@dxos/ai';\nimport { invariant } from '@dxos/invariant';\n\n/**\n * Typed failure raised when the MCP client cannot connect or list tools.\n * Carries the underlying cause and the server URL for diagnostics.\n */\nexport class McpConnectionError extends Schema.TaggedError<McpConnectionError>('McpConnectionError')(\n 'McpConnectionError',\n {\n url: Schema.String,\n protocol: Schema.Literal('sse', 'http'),\n message: Schema.String,\n },\n) {}\n\n/**\n * Creates an OpaqueToolkit that connects to an MCP server and exposes its tools to the assistant.\n *\n * @param options MCP server URL and transport protocol ('http' for Streamable HTTP, 'sse' for SSE).\n * @returns An OpaqueToolkit containing all tools from the MCP server.\n */\nconst CLIENT_INFO = { name: '@dxos/mcp-client', version: '0.8.3' };\n\nexport interface McpToolkitOptions {\n url: string;\n protocol: 'sse' | 'http';\n apiKey?: string;\n}\n\nexport const make = (options: McpToolkitOptions): Effect.Effect<OpaqueToolkit.OpaqueToolkit, McpConnectionError> =>\n Effect.gen(function* () {\n const { client, protocol } = yield* connectWithFallback(options);\n\n const { tools } = yield* Effect.tryPromise({\n try: () => client.listTools(),\n catch: (cause) =>\n new McpConnectionError({\n url: options.url,\n protocol,\n message: `Failed to list MCP tools: ${formatCause(cause)}`,\n }),\n });\n if (tools.length === 0) {\n return OpaqueToolkit.empty;\n }\n\n const effectTools = tools.map((mcpTool) => {\n const parameters: any = {};\n for (const [key, value] of Object.entries(mcpTool.inputSchema.properties ?? {})) {\n if (mcpTool.inputSchema.required?.includes(key)) {\n parameters[key] = Schema.Unknown.pipe(Schema.annotations({ jsonSchema: value }));\n } else {\n parameters[key] = Schema.Unknown.pipe(Schema.annotations({ jsonSchema: value })).pipe(Schema.optional);\n }\n }\n\n return Tool.make(sanitizeToolName(mcpTool.name), {\n description: mcpTool.description ?? `MCP tool: ${mcpTool.name}`,\n parameters,\n success: Schema.String,\n failure: Schema.Never,\n });\n });\n\n const toolkit = Toolkit.make(...effectTools);\n\n const handlers = Object.fromEntries(\n tools.map((mcpTool) => {\n const toolName = sanitizeToolName(mcpTool.name);\n return [\n toolName,\n Effect.fn(function* (args: unknown) {\n const result = yield* Effect.promise(() =>\n client.callTool({\n name: mcpTool.name,\n arguments: args as any,\n }),\n );\n return formatToolResult(result);\n }),\n ];\n }),\n ) as any;\n\n const layer = toolkit.toLayer(handlers);\n\n return OpaqueToolkit.make(toolkit, layer);\n }).pipe(Effect.withSpan('McpToolkit.make'));\n\n/**\n * Returns true when the error (or its wrapped cause) contains a 405 status code.\n * `Effect.tryPromise` wraps thrown errors in `UnknownException`, so we unwrap first.\n */\nexport const is405 = (error: unknown): boolean => {\n const cause = error != null && typeof error === 'object' && 'error' in error ? (error as any).error : error;\n return cause instanceof Error && cause.message.includes('405');\n};\n\n/**\n * Connects to an MCP server, falling back to the alternate transport on 405 errors.\n * Per the MCP spec, a 405 indicates the server uses the other transport protocol.\n * Returns the connected Client (a fresh instance is created for the fallback attempt).\n *\n * Failures are surfaced as typed `McpConnectionError` so callers can recover (e.g. drop\n * the misconfigured server) without breaking the surrounding effect.\n */\nconst connectWithFallback = (\n options: McpToolkitOptions,\n): Effect.Effect<{ client: Client; protocol: McpToolkitOptions['protocol'] }, McpConnectionError> =>\n Effect.gen(function* () {\n const fallbackProtocol = options.protocol === 'sse' ? 'http' : 'sse';\n const primary = yield* connectClient(options.url, options.protocol, options.apiKey).pipe(Effect.either);\n if (primary._tag === 'Right') {\n return { client: primary.right, protocol: options.protocol };\n }\n if (is405(primary.left)) {\n const fallback = yield* connectClient(options.url, fallbackProtocol, options.apiKey).pipe(Effect.either);\n if (fallback._tag === 'Right') {\n return { client: fallback.right, protocol: fallbackProtocol };\n }\n return yield* Effect.fail(\n new McpConnectionError({\n url: options.url,\n protocol: fallbackProtocol,\n message: `Failed to connect via ${fallbackProtocol} after 405 fallback: ${formatCause(fallback.left)}`,\n }),\n );\n }\n return yield* Effect.fail(\n new McpConnectionError({\n url: options.url,\n protocol: options.protocol,\n message: `Failed to connect via ${options.protocol}: ${formatCause(primary.left)}`,\n }),\n );\n });\n\nconst connectClient = (url: string, protocol: McpToolkitOptions['protocol'], apiKey?: string) =>\n Effect.tryPromise(() => {\n const client = new Client(CLIENT_INFO);\n const transport = createTransport(url, protocol, apiKey);\n return client.connect(transport).then(() => client);\n });\n\n/**\n * Renders a thrown value to a short string for inclusion in error messages.\n * `Effect.tryPromise` wraps thrown errors in `UnknownException`; unwrap when present.\n */\nconst formatCause = (error: unknown): string => {\n const inner = error != null && typeof error === 'object' && 'error' in error ? (error as any).error : error;\n if (inner instanceof Error) {\n return inner.message;\n }\n if (Cause.isCause(error)) {\n return Cause.pretty(error);\n }\n\n return String(inner);\n};\n\n/**\n * Creates a transport for the given MCP server URL and protocol.\n */\nconst createTransport = (\n url: string,\n protocol: McpToolkitOptions['protocol'],\n apiKey?: string,\n): SSEClientTransport | StreamableHTTPClientTransport => {\n const urlObj = new URL(url);\n const requestInit: RequestInit | undefined = apiKey ? { headers: { Authorization: `Bearer ${apiKey}` } } : undefined;\n switch (protocol) {\n case 'sse':\n return new SSEClientTransport(urlObj, { requestInit });\n case 'http':\n return new StreamableHTTPClientTransport(urlObj, { requestInit });\n default: {\n const _exhaustive: never = protocol;\n return invariant(false, `Unsupported MCP transport protocol: ${_exhaustive}`) as never;\n }\n }\n};\n\n/**\n * Sanitizes MCP tool names for use as Effect tool names (replaces / with _).\n */\nconst sanitizeToolName = (name: string): string => name.replace(/\\//g, '_');\n\n/**\n * Formats MCP callTool result content for the assistant.\n */\nconst formatToolResult = (result: Awaited<ReturnType<Client['callTool']>>): string => {\n if ('toolResult' in result && result.toolResult !== undefined) {\n return JSON.stringify(result.toolResult);\n }\n if ('content' in result && Array.isArray(result.content)) {\n return result.content\n .filter((part): part is { type: 'text'; text: string } => part.type === 'text')\n .map((part) => part.text)\n .join('\\n');\n }\n\n return String(result);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0B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