agents 0.19.0 → 0.20.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 +24 -19
- package/dist/{agent-tool-types-BNUGGBzQ.d.ts → agent-tool-types-BC-WFlsz.d.ts} +1026 -400
- package/dist/agent-tool-types.d.ts +1 -1
- package/dist/{agent-tools-BFbzVLFc.d.ts → agent-tools-DeHe9Xov.d.ts} +2 -2
- package/dist/agent-tools.d.ts +1 -1
- package/dist/browser/ai.js +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat-sdk/index.d.ts +1 -1
- package/dist/client-invoker-BNSZxAkv.d.ts +20 -0
- package/dist/client-invoker-VNZ7X0nn.js +57 -0
- package/dist/client-invoker-VNZ7X0nn.js.map +1 -0
- package/dist/{client-CcjiFpTf.js → client-zqKcsyFa.js} +434 -168
- package/dist/client-zqKcsyFa.js.map +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/cloudflare-BduZwmYK.js +204 -0
- package/dist/cloudflare-BduZwmYK.js.map +1 -0
- package/dist/{connector-CdldGF3h.js → connector-KEJnl6e5.js} +2 -2
- package/dist/connector-KEJnl6e5.js.map +1 -0
- package/dist/{do-oauth-client-provider-D4ZwyBDu.d.ts → do-oauth-client-provider-VTZj2VtM.d.ts} +23 -11
- package/dist/experimental/webmcp.js +1 -1
- package/dist/handler-stateless-CIkKPETH.js +318 -0
- package/dist/handler-stateless-CIkKPETH.js.map +1 -0
- package/dist/handler-stateless-C_bo-Ytq.d.ts +107 -0
- package/dist/index.d.ts +14 -12
- package/dist/index.js +30 -20
- package/dist/index.js.map +1 -1
- package/dist/mcp/client.d.ts +22 -18
- package/dist/mcp/client.js +1 -1
- package/dist/mcp/do-oauth-client-provider.d.ts +1 -1
- package/dist/mcp/do-oauth-client-provider.js +25 -12
- package/dist/mcp/do-oauth-client-provider.js.map +1 -1
- package/dist/mcp/index.d.ts +48 -34
- package/dist/mcp/index.js +95 -156
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/server.d.ts +17 -0
- package/dist/mcp/server.js +2 -0
- package/dist/mcp/x402.d.ts +21 -9
- package/dist/mcp/x402.js +8 -7
- package/dist/mcp/x402.js.map +1 -1
- package/dist/observability/ai/index.d.ts +9 -1
- package/dist/observability/ai/index.js +188 -63
- package/dist/observability/ai/index.js.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/serializable.d.ts +1 -1
- package/dist/sub-routing.d.ts +6 -6
- package/dist/workflows.d.ts +1 -1
- package/docs/human-in-the-loop.md +63 -82
- package/docs/mcp-client.md +31 -7
- package/docs/mcp-servers.md +125 -88
- package/docs/observability.md +2 -1
- package/docs/securing-mcp-servers.md +9 -6
- package/package.json +28 -7
- package/dist/client-CcjiFpTf.js.map +0 -1
- package/dist/cloudflare-BldFV0Pa.js +0 -117
- package/dist/cloudflare-BldFV0Pa.js.map +0 -1
- package/dist/connector-CdldGF3h.js.map +0 -1
|
@@ -5,7 +5,19 @@ import {
|
|
|
5
5
|
r as ObservabilityEvent,
|
|
6
6
|
s as MCPObservabilityEvent
|
|
7
7
|
} from "./index-BRnybD6X.js";
|
|
8
|
-
import { t as AgentMcpOAuthProvider } from "./do-oauth-client-provider-
|
|
8
|
+
import { t as AgentMcpOAuthProvider } from "./do-oauth-client-provider-VTZj2VtM.js";
|
|
9
|
+
import {
|
|
10
|
+
a as McpAuthContext,
|
|
11
|
+
c as CORSOptions,
|
|
12
|
+
d as ServeOptions,
|
|
13
|
+
f as TransportType,
|
|
14
|
+
l as MaybePromise,
|
|
15
|
+
n as StatelessMcpHandler,
|
|
16
|
+
s as BaseTransportType,
|
|
17
|
+
t as CreateStatelessMcpHandlerOptions,
|
|
18
|
+
u as McpClientOptions
|
|
19
|
+
} from "./handler-stateless-C_bo-Ytq.js";
|
|
20
|
+
import { n as LegacyCallToolResultSchema } from "./client-invoker-BNSZxAkv.js";
|
|
9
21
|
import {
|
|
10
22
|
_ as WorkflowEventPayload,
|
|
11
23
|
d as WorkflowCallback,
|
|
@@ -29,51 +41,58 @@ import {
|
|
|
29
41
|
WSMessage as WSMessage$1
|
|
30
42
|
} from "partyserver";
|
|
31
43
|
import { z } from "zod";
|
|
32
|
-
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
33
|
-
import {
|
|
34
|
-
SSEClientTransport,
|
|
35
|
-
SSEClientTransportOptions
|
|
36
|
-
} from "@modelcontextprotocol/sdk/client/sse.js";
|
|
37
|
-
import {
|
|
38
|
-
StreamableHTTPClientTransport,
|
|
39
|
-
StreamableHTTPClientTransportOptions
|
|
40
|
-
} from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
41
44
|
import {
|
|
45
|
+
CacheableRequestOptions,
|
|
42
46
|
CallToolRequest,
|
|
43
|
-
|
|
47
|
+
CallToolRequestOptions,
|
|
48
|
+
Client,
|
|
44
49
|
ClientCapabilities,
|
|
45
|
-
|
|
50
|
+
DiscoverResult,
|
|
46
51
|
ElicitRequest,
|
|
47
52
|
ElicitRequest as ElicitRequest$1,
|
|
48
|
-
|
|
53
|
+
ElicitRequest as ElicitRequest$2,
|
|
49
54
|
ElicitResult,
|
|
50
|
-
ElicitResult as ElicitResult$
|
|
55
|
+
ElicitResult as ElicitResult$2,
|
|
56
|
+
ElicitResult as ElicitResult$3,
|
|
51
57
|
GetPromptRequest,
|
|
52
|
-
InitializeRequestParams,
|
|
53
58
|
JSONRPCMessage,
|
|
54
59
|
MessageExtraInfo,
|
|
55
60
|
Prompt,
|
|
56
61
|
ReadResourceRequest,
|
|
57
|
-
|
|
62
|
+
RequestOptions,
|
|
58
63
|
Resource,
|
|
59
|
-
|
|
64
|
+
ResourceTemplateType,
|
|
65
|
+
SSEClientTransport,
|
|
66
|
+
SSEClientTransportOptions,
|
|
60
67
|
ServerCapabilities,
|
|
61
|
-
|
|
68
|
+
StreamableHTTPClientTransport,
|
|
69
|
+
StreamableHTTPClientTransportOptions,
|
|
70
|
+
StreamableHTTPReconnectionOptions,
|
|
71
|
+
Tool,
|
|
72
|
+
Transport,
|
|
73
|
+
TransportSendOptions
|
|
74
|
+
} from "@modelcontextprotocol/client";
|
|
75
|
+
import {
|
|
76
|
+
ElicitRequestSchema,
|
|
77
|
+
ElicitResult as ElicitResult$1,
|
|
78
|
+
InitializeRequestParams,
|
|
79
|
+
JSONRPCMessage as JSONRPCMessage$1,
|
|
80
|
+
MessageExtraInfo as MessageExtraInfo$1,
|
|
81
|
+
RequestId
|
|
62
82
|
} from "@modelcontextprotocol/sdk/types.js";
|
|
63
|
-
import {
|
|
83
|
+
import { McpServerFactory } from "@modelcontextprotocol/server";
|
|
84
|
+
import { McpServer as McpServer$1 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
85
|
+
import { Server as Server$2 } from "@modelcontextprotocol/sdk/server/index.js";
|
|
64
86
|
import {
|
|
65
87
|
EventStore as EventStore$1,
|
|
66
88
|
StreamId as StreamId$1,
|
|
67
|
-
WebStandardStreamableHTTPServerTransport,
|
|
89
|
+
WebStandardStreamableHTTPServerTransport as WebStandardStreamableHTTPServerTransport$1,
|
|
68
90
|
WebStandardStreamableHTTPServerTransportOptions
|
|
69
91
|
} from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
70
|
-
import { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
71
92
|
import {
|
|
72
|
-
Transport,
|
|
73
|
-
TransportSendOptions
|
|
93
|
+
Transport as Transport$1,
|
|
94
|
+
TransportSendOptions as TransportSendOptions$1
|
|
74
95
|
} from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
75
|
-
import { Server as Server$1 } from "@modelcontextprotocol/sdk/server/index.js";
|
|
76
|
-
import { Client as Client$1 } from "@modelcontextprotocol/sdk/client";
|
|
77
96
|
import {
|
|
78
97
|
EventId,
|
|
79
98
|
EventStore,
|
|
@@ -81,6 +100,33 @@ import {
|
|
|
81
100
|
} from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
82
101
|
import { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js";
|
|
83
102
|
|
|
103
|
+
//#region src/observability/tracing/tracer.d.ts
|
|
104
|
+
type InvocationScopeOptions = {
|
|
105
|
+
/**
|
|
106
|
+
* Open a scope even inside a live one, for work deliberately detached from
|
|
107
|
+
* the handler that started it — `ctx.waitUntil` bodies, queue drains — which
|
|
108
|
+
* runs on past that handler and must not be cut off with it.
|
|
109
|
+
*/
|
|
110
|
+
readonly detached?: boolean;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Runs `body` as one traced invocation.
|
|
114
|
+
*
|
|
115
|
+
* Work that escapes its native invocation cannot be traced from the context it
|
|
116
|
+
* started in: the still-open span is force-closed against the invocation that
|
|
117
|
+
* owned that context, which reports a negative duration or `span_not_ended`.
|
|
118
|
+
* Spans opened with {@link SpanLifetime.boundToInvocation} inside this scope
|
|
119
|
+
* are therefore closed before `body` settles — but not one moment earlier, so
|
|
120
|
+
* everything that completes during the invocation (the normal case: a chat
|
|
121
|
+
* turn is awaited by the handler that received it) still records its finish
|
|
122
|
+
* attributes. A span truncated this way is marked
|
|
123
|
+
* `cloudflare.agents.span.truncated` rather than passing as complete.
|
|
124
|
+
*/
|
|
125
|
+
declare function withInvocationScope<T>(
|
|
126
|
+
body: () => T,
|
|
127
|
+
options?: InvocationScopeOptions
|
|
128
|
+
): T;
|
|
129
|
+
//#endregion
|
|
84
130
|
//#region src/sub-routing.d.ts
|
|
85
131
|
/**
|
|
86
132
|
* URL segment marking a parent↔child boundary.
|
|
@@ -209,35 +255,15 @@ declare class Emitter<T> implements Disposable {
|
|
|
209
255
|
dispose(): void;
|
|
210
256
|
}
|
|
211
257
|
//#endregion
|
|
212
|
-
//#region src/mcp/types.d.ts
|
|
213
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
214
|
-
type HttpTransportType = "sse" | "streamable-http";
|
|
215
|
-
type BaseTransportType = HttpTransportType | "rpc";
|
|
216
|
-
type TransportType = BaseTransportType | "auto";
|
|
217
|
-
interface CORSOptions {
|
|
218
|
-
origin?: string;
|
|
219
|
-
methods?: string;
|
|
220
|
-
headers?: string;
|
|
221
|
-
maxAge?: number;
|
|
222
|
-
exposeHeaders?: string;
|
|
223
|
-
}
|
|
224
|
-
interface ServeOptions {
|
|
225
|
-
binding?: string;
|
|
226
|
-
corsOptions?: CORSOptions;
|
|
227
|
-
transport?: TransportType;
|
|
228
|
-
jurisdiction?: DurableObjectJurisdiction;
|
|
229
|
-
}
|
|
230
|
-
type McpClientOptions = ConstructorParameters<typeof Client$1>[1];
|
|
231
|
-
//#endregion
|
|
232
258
|
//#region src/mcp/client-transports.d.ts
|
|
233
259
|
/**
|
|
234
|
-
* @deprecated Use SSEClientTransport from @modelcontextprotocol/
|
|
260
|
+
* @deprecated Use SSEClientTransport from @modelcontextprotocol/client instead. This alias will be removed in the next major version.
|
|
235
261
|
*/
|
|
236
262
|
declare class SSEEdgeClientTransport extends SSEClientTransport {
|
|
237
263
|
constructor(url: URL, options: SSEClientTransportOptions);
|
|
238
264
|
}
|
|
239
265
|
/**
|
|
240
|
-
* @deprecated Use StreamableHTTPClientTransport from @modelcontextprotocol/
|
|
266
|
+
* @deprecated Use StreamableHTTPClientTransport from @modelcontextprotocol/client instead. This alias will be removed in the next major version.
|
|
241
267
|
*/
|
|
242
268
|
declare class StreamableHTTPEdgeClientTransport extends StreamableHTTPClientTransport {
|
|
243
269
|
constructor(url: URL, options: StreamableHTTPClientTransportOptions);
|
|
@@ -275,26 +301,13 @@ interface WorkerTransportOptions extends WebStandardStreamableHTTPServerTranspor
|
|
|
275
301
|
*/
|
|
276
302
|
storage?: MCPStorageApi;
|
|
277
303
|
}
|
|
278
|
-
declare class WorkerTransport extends WebStandardStreamableHTTPServerTransport {
|
|
304
|
+
declare class WorkerTransport extends WebStandardStreamableHTTPServerTransport$1 {
|
|
279
305
|
private readonly _corsOptions?;
|
|
280
306
|
private readonly _storage?;
|
|
281
307
|
private _stateRestored;
|
|
282
308
|
private _capturedInitializeParams?;
|
|
283
309
|
private _userOnSessionInitialized?;
|
|
284
310
|
private _bridgeInstalled;
|
|
285
|
-
/**
|
|
286
|
-
* Tracks keepalive interval cleanups so we can fire them eagerly when the
|
|
287
|
-
* SDK closes the underlying SSE stream via `closeSSEStream(requestId)` or
|
|
288
|
-
* `closeStandaloneSSEStream()`. Keyed by the JSON-RPC request id that
|
|
289
|
-
* triggered the stream, or the sentinel for the standalone GET stream.
|
|
290
|
-
*/
|
|
291
|
-
private readonly _keepaliveCleanups;
|
|
292
|
-
/**
|
|
293
|
-
* Most recent JSON-RPC request id seen on an incoming POST. Used to key
|
|
294
|
-
* keepalive cleanups when the response is an SSE stream tied to that
|
|
295
|
-
* request (so `closeSSEStream(id)` can find and clear the interval).
|
|
296
|
-
*/
|
|
297
|
-
private _pendingRequestId?;
|
|
298
311
|
/**
|
|
299
312
|
* Request ids whose SSE stream was deliberately torn down via
|
|
300
313
|
* `closeSSEStream`. The SDK's `send()` throws "No connection established"
|
|
@@ -315,8 +328,7 @@ declare class WorkerTransport extends WebStandardStreamableHTTPServerTransport {
|
|
|
315
328
|
/**
|
|
316
329
|
* Top-level request entry point. Handles CORS preflight, restores any
|
|
317
330
|
* persisted state on first invocation, then delegates to the SDK transport
|
|
318
|
-
* and finally appends CORS headers
|
|
319
|
-
* back.
|
|
331
|
+
* and finally appends CORS headers to whatever response comes back.
|
|
320
332
|
*/
|
|
321
333
|
handleRequest(
|
|
322
334
|
request: Request,
|
|
@@ -332,7 +344,6 @@ declare class WorkerTransport extends WebStandardStreamableHTTPServerTransport {
|
|
|
332
344
|
*/
|
|
333
345
|
private normalizeAllowHeader;
|
|
334
346
|
closeSSEStream(requestId: RequestId): void;
|
|
335
|
-
closeStandaloneSSEStream(): void;
|
|
336
347
|
close(): Promise<void>;
|
|
337
348
|
/**
|
|
338
349
|
* Swallow two classes of message that would otherwise surface as
|
|
@@ -353,35 +364,10 @@ declare class WorkerTransport extends WebStandardStreamableHTTPServerTransport {
|
|
|
353
364
|
* unhandled-rejection tracker can fire before the caller's own `await`
|
|
354
365
|
* observes it.
|
|
355
366
|
*/
|
|
356
|
-
send(
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
* is cleared when the wrapped stream closes — which happens both when the
|
|
361
|
-
* SDK ends the underlying stream naturally and when `closeSSEStream` is
|
|
362
|
-
* called.
|
|
363
|
-
*
|
|
364
|
-
* Keepalive policy:
|
|
365
|
-
* - POST response streams (`key` is a request id): always keepalive.
|
|
366
|
-
* In-progress tool calls have no recovery path — if the stream drops
|
|
367
|
-
* mid-execution the result is lost — so we keep it under the
|
|
368
|
-
* Cloudflare edge ~5min idle watchdog.
|
|
369
|
-
* - Standalone GET stream (`key === "_standalone"`): keepalive only
|
|
370
|
-
* when no `eventStore` is configured. When resumability is enabled,
|
|
371
|
-
* clients reconnect with `Last-Event-ID` after an idle drop, so we
|
|
372
|
-
* skip the keepalive and let the DO hibernate.
|
|
373
|
-
*
|
|
374
|
-
* Uses the shared `sse-keepalive` constants so both this wrapper and
|
|
375
|
-
* `McpAgent.serve()` write identical frames at the same cadence.
|
|
376
|
-
* See cloudflare/agents#1583.
|
|
377
|
-
*/
|
|
378
|
-
private withKeepalive;
|
|
379
|
-
/**
|
|
380
|
-
* Does the SDK transport have an `eventStore`? Reaches into the SDK's
|
|
381
|
-
* private field because the option isn't surfaced on the public API —
|
|
382
|
-
* we only need a yes/no for keepalive policy.
|
|
383
|
-
*/
|
|
384
|
-
private eventStoreConfigured;
|
|
367
|
+
send(
|
|
368
|
+
message: JSONRPCMessage$1,
|
|
369
|
+
options?: TransportSendOptions$1
|
|
370
|
+
): Promise<void>;
|
|
385
371
|
private getCorsHeaders;
|
|
386
372
|
private withCorsHeaders;
|
|
387
373
|
private installOnSessionInitializedBridge;
|
|
@@ -390,42 +376,58 @@ declare class WorkerTransport extends WebStandardStreamableHTTPServerTransport {
|
|
|
390
376
|
private saveState;
|
|
391
377
|
}
|
|
392
378
|
//#endregion
|
|
393
|
-
//#region src/mcp/
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
declare function getMcpAuthContext(): McpAuthContext | undefined;
|
|
398
|
-
//#endregion
|
|
399
|
-
//#region src/mcp/handler.d.ts
|
|
400
|
-
interface CreateMcpHandlerOptions extends WorkerTransportOptions {
|
|
401
|
-
/**
|
|
402
|
-
* The route path that this MCP handler should respond to.
|
|
403
|
-
* If specified, the handler will only process requests that match this route.
|
|
404
|
-
* @default "/mcp"
|
|
405
|
-
*/
|
|
379
|
+
//#region src/mcp/handler-legacy.d.ts
|
|
380
|
+
/** Options for the retained SDK v1, sessionful handler. */
|
|
381
|
+
interface CreateLegacyMcpHandlerOptions extends WorkerTransportOptions {
|
|
382
|
+
/** Exact route handled by this handler. @default "/mcp" */
|
|
406
383
|
route?: string;
|
|
407
|
-
/**
|
|
408
|
-
* An optional auth context to use for handling MCP requests.
|
|
409
|
-
* If not provided, the handler will look for props in the execution context.
|
|
410
|
-
*/
|
|
384
|
+
/** Application props exposed through {@link getMcpAuthContext}. */
|
|
411
385
|
authContext?: McpAuthContext;
|
|
412
|
-
/**
|
|
413
|
-
* An optional transport to use for handling MCP requests.
|
|
414
|
-
* If not provided, a WorkerTransport will be created with the provided WorkerTransportOptions.
|
|
415
|
-
*/
|
|
386
|
+
/** Pre-created sessionful transport. */
|
|
416
387
|
transport?: WorkerTransport;
|
|
417
388
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
389
|
+
type CreateMcpHandlerOptions$1 = CreateLegacyMcpHandlerOptions;
|
|
390
|
+
type LegacyMcpHandler = (
|
|
391
|
+
request: Request,
|
|
392
|
+
env: unknown,
|
|
393
|
+
ctx: ExecutionContext
|
|
394
|
+
) => Promise<Response>;
|
|
395
|
+
/**
|
|
396
|
+
* Create a sessionful Legacy MCP handler backed by SDK v1.
|
|
397
|
+
*
|
|
398
|
+
* New Stateless servers should use `createMcpHandler` from
|
|
399
|
+
* `agents/mcp/server` instead.
|
|
400
|
+
*/
|
|
401
|
+
declare function createLegacyMcpHandler(
|
|
402
|
+
server: McpServer$1 | Server$2,
|
|
403
|
+
options?: CreateLegacyMcpHandlerOptions
|
|
404
|
+
): LegacyMcpHandler;
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region src/mcp/handler-compat.d.ts
|
|
422
407
|
/**
|
|
423
|
-
* @deprecated
|
|
408
|
+
* @deprecated Passing an SDK v1 server to createMcpHandler is deprecated and
|
|
409
|
+
* will be removed in the next major version. Pass an SDK v2 factory to
|
|
410
|
+
* createMcpHandler. Use createLegacyMcpHandler only to temporarily retain
|
|
411
|
+
* sessionful SDK v1 behavior while migrating.
|
|
412
|
+
*/
|
|
413
|
+
declare function createMcpHandler$1(
|
|
414
|
+
server: McpServer$1 | Server$2,
|
|
415
|
+
options?: CreateMcpHandlerOptions$1
|
|
416
|
+
): LegacyMcpHandler;
|
|
417
|
+
declare function createMcpHandler$1(
|
|
418
|
+
factory: McpServerFactory,
|
|
419
|
+
options?: CreateStatelessMcpHandlerOptions
|
|
420
|
+
): StatelessMcpHandler;
|
|
421
|
+
/**
|
|
422
|
+
* @deprecated Pass an SDK v2 factory to createMcpHandler.
|
|
423
|
+
* experimental_createMcpHandler will be removed in the next major version.
|
|
424
|
+
* Use createLegacyMcpHandler only to temporarily retain sessionful SDK v1
|
|
425
|
+
* behavior while migrating.
|
|
424
426
|
*/
|
|
425
427
|
declare function experimental_createMcpHandler(
|
|
426
|
-
server: McpServer | Server$
|
|
427
|
-
options?: CreateMcpHandlerOptions
|
|
428
|
-
):
|
|
428
|
+
server: McpServer$1 | Server$2,
|
|
429
|
+
options?: CreateMcpHandlerOptions$1
|
|
430
|
+
): LegacyMcpHandler;
|
|
429
431
|
//#endregion
|
|
430
432
|
//#region src/mcp/event-store.d.ts
|
|
431
433
|
/**
|
|
@@ -481,14 +483,14 @@ declare class DurableObjectEventStore implements EventStore {
|
|
|
481
483
|
private readonly seqByStream;
|
|
482
484
|
private readonly seqInit;
|
|
483
485
|
constructor(storage: DurableObjectStorage);
|
|
484
|
-
storeEvent(streamId: StreamId, message: JSONRPCMessage): Promise<EventId>;
|
|
486
|
+
storeEvent(streamId: StreamId, message: JSONRPCMessage$1): Promise<EventId>;
|
|
485
487
|
getStreamIdForEventId(eventId: EventId): Promise<StreamId | undefined>;
|
|
486
488
|
replayEventsAfter(
|
|
487
489
|
lastEventId: EventId,
|
|
488
490
|
{
|
|
489
491
|
send
|
|
490
492
|
}: {
|
|
491
|
-
send: (eventId: EventId, message: JSONRPCMessage) => Promise<void>;
|
|
493
|
+
send: (eventId: EventId, message: JSONRPCMessage$1) => Promise<void>;
|
|
492
494
|
}
|
|
493
495
|
): Promise<StreamId>;
|
|
494
496
|
/**
|
|
@@ -515,7 +517,13 @@ interface ClearableEventStore extends EventStore$1 {
|
|
|
515
517
|
clearStream(streamId: StreamId$1): Promise<void>;
|
|
516
518
|
}
|
|
517
519
|
//#endregion
|
|
518
|
-
//#region src/mcp/
|
|
520
|
+
//#region src/mcp/legacy-agent.d.ts
|
|
521
|
+
/**
|
|
522
|
+
* @deprecated McpAgent is feature-frozen. Migrate to an SDK v2 factory with
|
|
523
|
+
* createMcpHandler from agents/mcp/server. When sessionful features prevent an
|
|
524
|
+
* immediate migration, run the stateless route beside the existing McpAgent
|
|
525
|
+
* route until clients transition and sessions drain.
|
|
526
|
+
*/
|
|
519
527
|
declare abstract class McpAgent<
|
|
520
528
|
Env extends Cloudflare.Env = Cloudflare.Env,
|
|
521
529
|
State = unknown,
|
|
@@ -528,10 +536,10 @@ declare abstract class McpAgent<
|
|
|
528
536
|
_connection: Connection$1,
|
|
529
537
|
ctx: ConnectionContext$1
|
|
530
538
|
): boolean;
|
|
531
|
-
abstract server: MaybePromise<McpServer | Server$
|
|
539
|
+
abstract server: MaybePromise<McpServer$1 | Server$2>;
|
|
532
540
|
abstract init(): Promise<void>;
|
|
533
|
-
setInitializeRequest(initializeRequest: JSONRPCMessage): Promise<void>;
|
|
534
|
-
getInitializeRequest(): Promise<JSONRPCMessage | undefined>;
|
|
541
|
+
setInitializeRequest(initializeRequest: JSONRPCMessage$1): Promise<void>;
|
|
542
|
+
getInitializeRequest(): Promise<JSONRPCMessage$1 | undefined>;
|
|
535
543
|
/**
|
|
536
544
|
* Storage key prefix for the `streamId -> requestIds` mapping used
|
|
537
545
|
* to support POST stream resumption across WebSocket reconnects.
|
|
@@ -628,7 +636,7 @@ declare abstract class McpAgent<
|
|
|
628
636
|
onSSEMcpMessage(
|
|
629
637
|
_sessionId: string,
|
|
630
638
|
messageBody: unknown,
|
|
631
|
-
extraInfo?: MessageExtraInfo
|
|
639
|
+
extraInfo?: MessageExtraInfo$1
|
|
632
640
|
): Promise<Error | null>;
|
|
633
641
|
/** Elicit user input with a message and schema */
|
|
634
642
|
elicitInput(
|
|
@@ -639,7 +647,7 @@ declare abstract class McpAgent<
|
|
|
639
647
|
options?: {
|
|
640
648
|
relatedRequestId?: RequestId;
|
|
641
649
|
}
|
|
642
|
-
): Promise<ElicitResult>;
|
|
650
|
+
): Promise<ElicitResult$1>;
|
|
643
651
|
/** Handle elicitation responses via in-memory resolver */
|
|
644
652
|
private _handleElicitationResponse;
|
|
645
653
|
/**
|
|
@@ -649,8 +657,8 @@ declare abstract class McpAgent<
|
|
|
649
657
|
* @returns The response message(s) or undefined
|
|
650
658
|
*/
|
|
651
659
|
handleMcpMessage(
|
|
652
|
-
message: JSONRPCMessage | JSONRPCMessage[]
|
|
653
|
-
): Promise<JSONRPCMessage | JSONRPCMessage[] | undefined>;
|
|
660
|
+
message: JSONRPCMessage$1 | JSONRPCMessage$1[]
|
|
661
|
+
): Promise<JSONRPCMessage$1 | JSONRPCMessage$1[] | undefined>;
|
|
654
662
|
/** Return a handler for the given path for this MCP.
|
|
655
663
|
* Defaults to Streamable HTTP transport.
|
|
656
664
|
*/
|
|
@@ -693,6 +701,8 @@ declare abstract class McpAgent<
|
|
|
693
701
|
}
|
|
694
702
|
//#endregion
|
|
695
703
|
//#region src/mcp/rpc.d.ts
|
|
704
|
+
type JSONRPCMessage$2 = JSONRPCMessage$1;
|
|
705
|
+
type MessageExtraInfo$2 = MessageExtraInfo$1;
|
|
696
706
|
declare const RPC_DO_PREFIX = "rpc:";
|
|
697
707
|
interface RPCClientTransportOptions<T extends McpAgent = McpAgent> {
|
|
698
708
|
namespace: DurableObjectNamespace<T>;
|
|
@@ -723,7 +733,7 @@ declare class RPCClientTransport implements Transport {
|
|
|
723
733
|
interface RPCServerTransportOptions {
|
|
724
734
|
timeout?: number;
|
|
725
735
|
}
|
|
726
|
-
declare class RPCServerTransport implements Transport {
|
|
736
|
+
declare class RPCServerTransport implements Transport$1 {
|
|
727
737
|
private _started;
|
|
728
738
|
private _protocolVersion?;
|
|
729
739
|
private _timeout;
|
|
@@ -732,7 +742,7 @@ declare class RPCServerTransport implements Transport {
|
|
|
732
742
|
sessionId?: string;
|
|
733
743
|
onclose?: () => void;
|
|
734
744
|
onerror?: (error: Error) => void;
|
|
735
|
-
onmessage?: (message: JSONRPCMessage, extra?: MessageExtraInfo) => void;
|
|
745
|
+
onmessage?: (message: JSONRPCMessage$2, extra?: MessageExtraInfo$2) => void;
|
|
736
746
|
constructor(options?: RPCServerTransportOptions);
|
|
737
747
|
setProtocolVersion(version: string): void;
|
|
738
748
|
getProtocolVersion(): string | undefined;
|
|
@@ -745,7 +755,10 @@ declare class RPCServerTransport implements Transport {
|
|
|
745
755
|
private _appendRequest;
|
|
746
756
|
private _completeContinuation;
|
|
747
757
|
private _appendContinuation;
|
|
748
|
-
send(
|
|
758
|
+
send(
|
|
759
|
+
message: JSONRPCMessage$2,
|
|
760
|
+
options?: TransportSendOptions$1
|
|
761
|
+
): Promise<void>;
|
|
749
762
|
/**
|
|
750
763
|
* @internal Called by McpAgent.handleMcpMessage() — not for external use.
|
|
751
764
|
*
|
|
@@ -759,11 +772,11 @@ declare class RPCServerTransport implements Transport {
|
|
|
759
772
|
* for id-based routing; this continuation waiter receives it instead.
|
|
760
773
|
*/
|
|
761
774
|
_awaitPendingResponse(): Promise<
|
|
762
|
-
JSONRPCMessage | JSONRPCMessage[] | undefined
|
|
775
|
+
JSONRPCMessage$2 | JSONRPCMessage$2[] | undefined
|
|
763
776
|
>;
|
|
764
777
|
handle(
|
|
765
|
-
message: JSONRPCMessage | JSONRPCMessage[]
|
|
766
|
-
): Promise<JSONRPCMessage | JSONRPCMessage[] | undefined>;
|
|
778
|
+
message: JSONRPCMessage$2 | JSONRPCMessage$2[]
|
|
779
|
+
): Promise<JSONRPCMessage$2 | JSONRPCMessage$2[] | undefined>;
|
|
767
780
|
}
|
|
768
781
|
//#endregion
|
|
769
782
|
//#region src/mcp/client-connection.d.ts
|
|
@@ -815,7 +828,11 @@ type MCPDiscoveryResult =
|
|
|
815
828
|
* Held in memory only — never persisted — so it must be re-supplied when a
|
|
816
829
|
* connection is recreated (e.g. after Durable Object hibernation).
|
|
817
830
|
*/
|
|
818
|
-
type MCPElicitationHandler = (
|
|
831
|
+
type MCPElicitationHandler = (
|
|
832
|
+
request: ElicitRequest /** Aborts when the originating MCP call is cancelled or exhausts its total-time budget. */,
|
|
833
|
+
|
|
834
|
+
signal?: AbortSignal
|
|
835
|
+
) => Promise<ElicitResult>;
|
|
819
836
|
type MCPElicitationHandlers = {
|
|
820
837
|
form?: MCPElicitationHandler;
|
|
821
838
|
url?: MCPElicitationHandler;
|
|
@@ -825,7 +842,7 @@ declare class MCPClientConnection {
|
|
|
825
842
|
private readonly _info;
|
|
826
843
|
options: {
|
|
827
844
|
transport: MCPTransportOptions;
|
|
828
|
-
client: McpClientOptions
|
|
845
|
+
client: NonNullable<McpClientOptions>;
|
|
829
846
|
elicitationHandlers?: MCPElicitationHandlers;
|
|
830
847
|
/**
|
|
831
848
|
* Client capabilities persisted from a previous session, advertised
|
|
@@ -833,7 +850,8 @@ declare class MCPClientConnection {
|
|
|
833
850
|
* by {@link configureElicitationHandlers} — reconfigured handlers are
|
|
834
851
|
* the source of truth. Explicit `client.capabilities` win per key.
|
|
835
852
|
*/
|
|
836
|
-
capabilitySeed?: ClientCapabilities
|
|
853
|
+
capabilitySeed?: ClientCapabilities /** SDK discovery result paired with a resumed Stateless HTTP session. */;
|
|
854
|
+
discoverResult?: DiscoverResult;
|
|
837
855
|
};
|
|
838
856
|
client: Client;
|
|
839
857
|
connectionState: MCPConnectionState;
|
|
@@ -850,9 +868,10 @@ declare class MCPClientConnection {
|
|
|
850
868
|
* endpoint when the authorization server is not at the default location.
|
|
851
869
|
*/
|
|
852
870
|
private _pendingAuthTransport?;
|
|
871
|
+
private _restoredListSubscription?;
|
|
853
872
|
prompts: Prompt[];
|
|
854
873
|
resources: Resource[];
|
|
855
|
-
resourceTemplates:
|
|
874
|
+
resourceTemplates: ResourceTemplateType[];
|
|
856
875
|
serverCapabilities: ServerCapabilities | undefined;
|
|
857
876
|
/** True when resuming a streamable-http session without cached capabilities */
|
|
858
877
|
private _probingCapabilities;
|
|
@@ -860,6 +879,8 @@ declare class MCPClientConnection {
|
|
|
860
879
|
private _discoveryAbortController;
|
|
861
880
|
private readonly _onObservabilityEvent;
|
|
862
881
|
readonly onObservabilityEvent: Event<MCPObservabilityEvent>;
|
|
882
|
+
private readonly _onListChanged;
|
|
883
|
+
readonly onListChanged: Event<void>;
|
|
863
884
|
/**
|
|
864
885
|
* Whether the connection advertised the elicitation capability. The SDK
|
|
865
886
|
* client refuses to register an `elicitation/create` request handler when
|
|
@@ -872,7 +893,7 @@ declare class MCPClientConnection {
|
|
|
872
893
|
_info: ConstructorParameters<typeof Client>[0],
|
|
873
894
|
options?: {
|
|
874
895
|
transport: MCPTransportOptions;
|
|
875
|
-
client: McpClientOptions
|
|
896
|
+
client: NonNullable<McpClientOptions>;
|
|
876
897
|
elicitationHandlers?: MCPElicitationHandlers;
|
|
877
898
|
/**
|
|
878
899
|
* Client capabilities persisted from a previous session, advertised
|
|
@@ -880,7 +901,8 @@ declare class MCPClientConnection {
|
|
|
880
901
|
* by {@link configureElicitationHandlers} — reconfigured handlers are
|
|
881
902
|
* the source of truth. Explicit `client.capabilities` win per key.
|
|
882
903
|
*/
|
|
883
|
-
capabilitySeed?: ClientCapabilities
|
|
904
|
+
capabilitySeed?: ClientCapabilities /** SDK discovery result paired with a resumed Stateless HTTP session. */;
|
|
905
|
+
discoverResult?: DiscoverResult;
|
|
884
906
|
}
|
|
885
907
|
);
|
|
886
908
|
private createClient;
|
|
@@ -912,7 +934,7 @@ declare class MCPClientConnection {
|
|
|
912
934
|
* Complete OAuth authorization
|
|
913
935
|
*/
|
|
914
936
|
completeAuthorization(
|
|
915
|
-
|
|
937
|
+
callback: string | URLSearchParams,
|
|
916
938
|
options?: {
|
|
917
939
|
alreadyAccepted?: boolean;
|
|
918
940
|
}
|
|
@@ -951,7 +973,8 @@ declare class MCPClientConnection {
|
|
|
951
973
|
* Should only be called if serverCapabilities.prompts exists
|
|
952
974
|
*/
|
|
953
975
|
registerPrompts(): Promise<Prompt[]>;
|
|
954
|
-
registerResourceTemplates(): Promise<
|
|
976
|
+
registerResourceTemplates(): Promise<ResourceTemplateType[]>;
|
|
977
|
+
private catalogFetchOptions;
|
|
955
978
|
fetchTools(): Promise<
|
|
956
979
|
{
|
|
957
980
|
inputSchema: {
|
|
@@ -959,7 +982,648 @@ declare class MCPClientConnection {
|
|
|
959
982
|
type: "object";
|
|
960
983
|
properties?:
|
|
961
984
|
| {
|
|
962
|
-
[x: string]:
|
|
985
|
+
[x: string]:
|
|
986
|
+
| string
|
|
987
|
+
| number
|
|
988
|
+
| boolean
|
|
989
|
+
| {
|
|
990
|
+
[x: string]:
|
|
991
|
+
| string
|
|
992
|
+
| number
|
|
993
|
+
| boolean
|
|
994
|
+
| /*elided*/ any
|
|
995
|
+
| (
|
|
996
|
+
| string
|
|
997
|
+
| number
|
|
998
|
+
| boolean
|
|
999
|
+
| /*elided*/ any
|
|
1000
|
+
| (
|
|
1001
|
+
| string
|
|
1002
|
+
| number
|
|
1003
|
+
| boolean
|
|
1004
|
+
| /*elided*/ any
|
|
1005
|
+
| (
|
|
1006
|
+
| string
|
|
1007
|
+
| number
|
|
1008
|
+
| boolean
|
|
1009
|
+
| /*elided*/ any
|
|
1010
|
+
| (
|
|
1011
|
+
| string
|
|
1012
|
+
| number
|
|
1013
|
+
| boolean
|
|
1014
|
+
| /*elided*/ any
|
|
1015
|
+
| (
|
|
1016
|
+
| string
|
|
1017
|
+
| number
|
|
1018
|
+
| boolean
|
|
1019
|
+
| /*elided*/ any
|
|
1020
|
+
| (
|
|
1021
|
+
| string
|
|
1022
|
+
| number
|
|
1023
|
+
| boolean
|
|
1024
|
+
| /*elided*/ any
|
|
1025
|
+
| (
|
|
1026
|
+
| string
|
|
1027
|
+
| number
|
|
1028
|
+
| boolean
|
|
1029
|
+
| /*elided*/ any
|
|
1030
|
+
| (
|
|
1031
|
+
| string
|
|
1032
|
+
| number
|
|
1033
|
+
| boolean
|
|
1034
|
+
| /*elided*/ any
|
|
1035
|
+
| (
|
|
1036
|
+
| string
|
|
1037
|
+
| number
|
|
1038
|
+
| boolean
|
|
1039
|
+
| /*elided*/ any
|
|
1040
|
+
| (
|
|
1041
|
+
| string
|
|
1042
|
+
| number
|
|
1043
|
+
| boolean
|
|
1044
|
+
| /*elided*/ any
|
|
1045
|
+
| (
|
|
1046
|
+
| string
|
|
1047
|
+
| number
|
|
1048
|
+
| boolean
|
|
1049
|
+
| /*elided*/ any
|
|
1050
|
+
| /*elided*/ any
|
|
1051
|
+
| null
|
|
1052
|
+
)[]
|
|
1053
|
+
| null
|
|
1054
|
+
)[]
|
|
1055
|
+
| null
|
|
1056
|
+
)[]
|
|
1057
|
+
| null
|
|
1058
|
+
)[]
|
|
1059
|
+
| null
|
|
1060
|
+
)[]
|
|
1061
|
+
| null
|
|
1062
|
+
)[]
|
|
1063
|
+
| null
|
|
1064
|
+
)[]
|
|
1065
|
+
| null
|
|
1066
|
+
)[]
|
|
1067
|
+
| null
|
|
1068
|
+
)[]
|
|
1069
|
+
| null
|
|
1070
|
+
)[]
|
|
1071
|
+
| null
|
|
1072
|
+
)[]
|
|
1073
|
+
| null;
|
|
1074
|
+
}
|
|
1075
|
+
| (
|
|
1076
|
+
| string
|
|
1077
|
+
| number
|
|
1078
|
+
| boolean
|
|
1079
|
+
| {
|
|
1080
|
+
[x: string]:
|
|
1081
|
+
| string
|
|
1082
|
+
| number
|
|
1083
|
+
| boolean
|
|
1084
|
+
| /*elided*/ any
|
|
1085
|
+
| (
|
|
1086
|
+
| string
|
|
1087
|
+
| number
|
|
1088
|
+
| boolean
|
|
1089
|
+
| /*elided*/ any
|
|
1090
|
+
| (
|
|
1091
|
+
| string
|
|
1092
|
+
| number
|
|
1093
|
+
| boolean
|
|
1094
|
+
| /*elided*/ any
|
|
1095
|
+
| (
|
|
1096
|
+
| string
|
|
1097
|
+
| number
|
|
1098
|
+
| boolean
|
|
1099
|
+
| /*elided*/ any
|
|
1100
|
+
| (
|
|
1101
|
+
| string
|
|
1102
|
+
| number
|
|
1103
|
+
| boolean
|
|
1104
|
+
| /*elided*/ any
|
|
1105
|
+
| (
|
|
1106
|
+
| string
|
|
1107
|
+
| number
|
|
1108
|
+
| boolean
|
|
1109
|
+
| /*elided*/ any
|
|
1110
|
+
| (
|
|
1111
|
+
| string
|
|
1112
|
+
| number
|
|
1113
|
+
| boolean
|
|
1114
|
+
| /*elided*/ any
|
|
1115
|
+
| (
|
|
1116
|
+
| string
|
|
1117
|
+
| number
|
|
1118
|
+
| boolean
|
|
1119
|
+
| /*elided*/ any
|
|
1120
|
+
| (
|
|
1121
|
+
| string
|
|
1122
|
+
| number
|
|
1123
|
+
| boolean
|
|
1124
|
+
| /*elided*/ any
|
|
1125
|
+
| (
|
|
1126
|
+
| string
|
|
1127
|
+
| number
|
|
1128
|
+
| boolean
|
|
1129
|
+
| /*elided*/ any
|
|
1130
|
+
| (
|
|
1131
|
+
| string
|
|
1132
|
+
| number
|
|
1133
|
+
| boolean
|
|
1134
|
+
| /*elided*/ any
|
|
1135
|
+
| /*elided*/ any
|
|
1136
|
+
| null
|
|
1137
|
+
)[]
|
|
1138
|
+
| null
|
|
1139
|
+
)[]
|
|
1140
|
+
| null
|
|
1141
|
+
)[]
|
|
1142
|
+
| null
|
|
1143
|
+
)[]
|
|
1144
|
+
| null
|
|
1145
|
+
)[]
|
|
1146
|
+
| null
|
|
1147
|
+
)[]
|
|
1148
|
+
| null
|
|
1149
|
+
)[]
|
|
1150
|
+
| null
|
|
1151
|
+
)[]
|
|
1152
|
+
| null
|
|
1153
|
+
)[]
|
|
1154
|
+
| null
|
|
1155
|
+
)[]
|
|
1156
|
+
| null;
|
|
1157
|
+
}
|
|
1158
|
+
| (
|
|
1159
|
+
| string
|
|
1160
|
+
| number
|
|
1161
|
+
| boolean
|
|
1162
|
+
| {
|
|
1163
|
+
[x: string]:
|
|
1164
|
+
| string
|
|
1165
|
+
| number
|
|
1166
|
+
| boolean
|
|
1167
|
+
| /*elided*/ any
|
|
1168
|
+
| (
|
|
1169
|
+
| string
|
|
1170
|
+
| number
|
|
1171
|
+
| boolean
|
|
1172
|
+
| /*elided*/ any
|
|
1173
|
+
| (
|
|
1174
|
+
| string
|
|
1175
|
+
| number
|
|
1176
|
+
| boolean
|
|
1177
|
+
| /*elided*/ any
|
|
1178
|
+
| (
|
|
1179
|
+
| string
|
|
1180
|
+
| number
|
|
1181
|
+
| boolean
|
|
1182
|
+
| /*elided*/ any
|
|
1183
|
+
| (
|
|
1184
|
+
| string
|
|
1185
|
+
| number
|
|
1186
|
+
| boolean
|
|
1187
|
+
| /*elided*/ any
|
|
1188
|
+
| (
|
|
1189
|
+
| string
|
|
1190
|
+
| number
|
|
1191
|
+
| boolean
|
|
1192
|
+
| /*elided*/ any
|
|
1193
|
+
| (
|
|
1194
|
+
| string
|
|
1195
|
+
| number
|
|
1196
|
+
| boolean
|
|
1197
|
+
| /*elided*/ any
|
|
1198
|
+
| (
|
|
1199
|
+
| string
|
|
1200
|
+
| number
|
|
1201
|
+
| boolean
|
|
1202
|
+
| /*elided*/ any
|
|
1203
|
+
| (
|
|
1204
|
+
| string
|
|
1205
|
+
| number
|
|
1206
|
+
| boolean
|
|
1207
|
+
| /*elided*/ any
|
|
1208
|
+
| (
|
|
1209
|
+
| string
|
|
1210
|
+
| number
|
|
1211
|
+
| boolean
|
|
1212
|
+
| /*elided*/ any
|
|
1213
|
+
| /*elided*/ any
|
|
1214
|
+
| null
|
|
1215
|
+
)[]
|
|
1216
|
+
| null
|
|
1217
|
+
)[]
|
|
1218
|
+
| null
|
|
1219
|
+
)[]
|
|
1220
|
+
| null
|
|
1221
|
+
)[]
|
|
1222
|
+
| null
|
|
1223
|
+
)[]
|
|
1224
|
+
| null
|
|
1225
|
+
)[]
|
|
1226
|
+
| null
|
|
1227
|
+
)[]
|
|
1228
|
+
| null
|
|
1229
|
+
)[]
|
|
1230
|
+
| null
|
|
1231
|
+
)[]
|
|
1232
|
+
| null;
|
|
1233
|
+
}
|
|
1234
|
+
| (
|
|
1235
|
+
| string
|
|
1236
|
+
| number
|
|
1237
|
+
| boolean
|
|
1238
|
+
| {
|
|
1239
|
+
[x: string]:
|
|
1240
|
+
| string
|
|
1241
|
+
| number
|
|
1242
|
+
| boolean
|
|
1243
|
+
| /*elided*/ any
|
|
1244
|
+
| (
|
|
1245
|
+
| string
|
|
1246
|
+
| number
|
|
1247
|
+
| boolean
|
|
1248
|
+
| /*elided*/ any
|
|
1249
|
+
| (
|
|
1250
|
+
| string
|
|
1251
|
+
| number
|
|
1252
|
+
| boolean
|
|
1253
|
+
| /*elided*/ any
|
|
1254
|
+
| (
|
|
1255
|
+
| string
|
|
1256
|
+
| number
|
|
1257
|
+
| boolean
|
|
1258
|
+
| /*elided*/ any
|
|
1259
|
+
| (
|
|
1260
|
+
| string
|
|
1261
|
+
| number
|
|
1262
|
+
| boolean
|
|
1263
|
+
| /*elided*/ any
|
|
1264
|
+
| (
|
|
1265
|
+
| string
|
|
1266
|
+
| number
|
|
1267
|
+
| boolean
|
|
1268
|
+
| /*elided*/ any
|
|
1269
|
+
| (
|
|
1270
|
+
| string
|
|
1271
|
+
| number
|
|
1272
|
+
| boolean
|
|
1273
|
+
| /*elided*/ any
|
|
1274
|
+
| (
|
|
1275
|
+
| string
|
|
1276
|
+
| number
|
|
1277
|
+
| boolean
|
|
1278
|
+
| /*elided*/ any
|
|
1279
|
+
| (
|
|
1280
|
+
| string
|
|
1281
|
+
| number
|
|
1282
|
+
| boolean
|
|
1283
|
+
| /*elided*/ any
|
|
1284
|
+
| /*elided*/ any
|
|
1285
|
+
| null
|
|
1286
|
+
)[]
|
|
1287
|
+
| null
|
|
1288
|
+
)[]
|
|
1289
|
+
| null
|
|
1290
|
+
)[]
|
|
1291
|
+
| null
|
|
1292
|
+
)[]
|
|
1293
|
+
| null
|
|
1294
|
+
)[]
|
|
1295
|
+
| null
|
|
1296
|
+
)[]
|
|
1297
|
+
| null
|
|
1298
|
+
)[]
|
|
1299
|
+
| null
|
|
1300
|
+
)[]
|
|
1301
|
+
| null;
|
|
1302
|
+
}
|
|
1303
|
+
| (
|
|
1304
|
+
| string
|
|
1305
|
+
| number
|
|
1306
|
+
| boolean
|
|
1307
|
+
| {
|
|
1308
|
+
[x: string]:
|
|
1309
|
+
| string
|
|
1310
|
+
| number
|
|
1311
|
+
| boolean
|
|
1312
|
+
| /*elided*/ any
|
|
1313
|
+
| (
|
|
1314
|
+
| string
|
|
1315
|
+
| number
|
|
1316
|
+
| boolean
|
|
1317
|
+
| /*elided*/ any
|
|
1318
|
+
| (
|
|
1319
|
+
| string
|
|
1320
|
+
| number
|
|
1321
|
+
| boolean
|
|
1322
|
+
| /*elided*/ any
|
|
1323
|
+
| (
|
|
1324
|
+
| string
|
|
1325
|
+
| number
|
|
1326
|
+
| boolean
|
|
1327
|
+
| /*elided*/ any
|
|
1328
|
+
| (
|
|
1329
|
+
| string
|
|
1330
|
+
| number
|
|
1331
|
+
| boolean
|
|
1332
|
+
| /*elided*/ any
|
|
1333
|
+
| (
|
|
1334
|
+
| string
|
|
1335
|
+
| number
|
|
1336
|
+
| boolean
|
|
1337
|
+
| /*elided*/ any
|
|
1338
|
+
| (
|
|
1339
|
+
| string
|
|
1340
|
+
| number
|
|
1341
|
+
| boolean
|
|
1342
|
+
| /*elided*/ any
|
|
1343
|
+
| (
|
|
1344
|
+
| string
|
|
1345
|
+
| number
|
|
1346
|
+
| boolean
|
|
1347
|
+
| /*elided*/ any
|
|
1348
|
+
| /*elided*/ any
|
|
1349
|
+
| null
|
|
1350
|
+
)[]
|
|
1351
|
+
| null
|
|
1352
|
+
)[]
|
|
1353
|
+
| null
|
|
1354
|
+
)[]
|
|
1355
|
+
| null
|
|
1356
|
+
)[]
|
|
1357
|
+
| null
|
|
1358
|
+
)[]
|
|
1359
|
+
| null
|
|
1360
|
+
)[]
|
|
1361
|
+
| null
|
|
1362
|
+
)[]
|
|
1363
|
+
| null;
|
|
1364
|
+
}
|
|
1365
|
+
| (
|
|
1366
|
+
| string
|
|
1367
|
+
| number
|
|
1368
|
+
| boolean
|
|
1369
|
+
| {
|
|
1370
|
+
[x: string]:
|
|
1371
|
+
| string
|
|
1372
|
+
| number
|
|
1373
|
+
| boolean
|
|
1374
|
+
| /*elided*/ any
|
|
1375
|
+
| (
|
|
1376
|
+
| string
|
|
1377
|
+
| number
|
|
1378
|
+
| boolean
|
|
1379
|
+
| /*elided*/ any
|
|
1380
|
+
| (
|
|
1381
|
+
| string
|
|
1382
|
+
| number
|
|
1383
|
+
| boolean
|
|
1384
|
+
| /*elided*/ any
|
|
1385
|
+
| (
|
|
1386
|
+
| string
|
|
1387
|
+
| number
|
|
1388
|
+
| boolean
|
|
1389
|
+
| /*elided*/ any
|
|
1390
|
+
| (
|
|
1391
|
+
| string
|
|
1392
|
+
| number
|
|
1393
|
+
| boolean
|
|
1394
|
+
| /*elided*/ any
|
|
1395
|
+
| (
|
|
1396
|
+
| string
|
|
1397
|
+
| number
|
|
1398
|
+
| boolean
|
|
1399
|
+
| /*elided*/ any
|
|
1400
|
+
| (
|
|
1401
|
+
| string
|
|
1402
|
+
| number
|
|
1403
|
+
| boolean
|
|
1404
|
+
| /*elided*/ any
|
|
1405
|
+
| /*elided*/ any
|
|
1406
|
+
| null
|
|
1407
|
+
)[]
|
|
1408
|
+
| null
|
|
1409
|
+
)[]
|
|
1410
|
+
| null
|
|
1411
|
+
)[]
|
|
1412
|
+
| null
|
|
1413
|
+
)[]
|
|
1414
|
+
| null
|
|
1415
|
+
)[]
|
|
1416
|
+
| null
|
|
1417
|
+
)[]
|
|
1418
|
+
| null;
|
|
1419
|
+
}
|
|
1420
|
+
| (
|
|
1421
|
+
| string
|
|
1422
|
+
| number
|
|
1423
|
+
| boolean
|
|
1424
|
+
| {
|
|
1425
|
+
[x: string]:
|
|
1426
|
+
| string
|
|
1427
|
+
| number
|
|
1428
|
+
| boolean
|
|
1429
|
+
| /*elided*/ any
|
|
1430
|
+
| (
|
|
1431
|
+
| string
|
|
1432
|
+
| number
|
|
1433
|
+
| boolean
|
|
1434
|
+
| /*elided*/ any
|
|
1435
|
+
| (
|
|
1436
|
+
| string
|
|
1437
|
+
| number
|
|
1438
|
+
| boolean
|
|
1439
|
+
| /*elided*/ any
|
|
1440
|
+
| (
|
|
1441
|
+
| string
|
|
1442
|
+
| number
|
|
1443
|
+
| boolean
|
|
1444
|
+
| /*elided*/ any
|
|
1445
|
+
| (
|
|
1446
|
+
| string
|
|
1447
|
+
| number
|
|
1448
|
+
| boolean
|
|
1449
|
+
| /*elided*/ any
|
|
1450
|
+
| (
|
|
1451
|
+
| string
|
|
1452
|
+
| number
|
|
1453
|
+
| boolean
|
|
1454
|
+
| /*elided*/ any
|
|
1455
|
+
| /*elided*/ any
|
|
1456
|
+
| null
|
|
1457
|
+
)[]
|
|
1458
|
+
| null
|
|
1459
|
+
)[]
|
|
1460
|
+
| null
|
|
1461
|
+
)[]
|
|
1462
|
+
| null
|
|
1463
|
+
)[]
|
|
1464
|
+
| null
|
|
1465
|
+
)[]
|
|
1466
|
+
| null;
|
|
1467
|
+
}
|
|
1468
|
+
| (
|
|
1469
|
+
| string
|
|
1470
|
+
| number
|
|
1471
|
+
| boolean
|
|
1472
|
+
| {
|
|
1473
|
+
[x: string]:
|
|
1474
|
+
| string
|
|
1475
|
+
| number
|
|
1476
|
+
| boolean
|
|
1477
|
+
| /*elided*/ any
|
|
1478
|
+
| (
|
|
1479
|
+
| string
|
|
1480
|
+
| number
|
|
1481
|
+
| boolean
|
|
1482
|
+
| /*elided*/ any
|
|
1483
|
+
| (
|
|
1484
|
+
| string
|
|
1485
|
+
| number
|
|
1486
|
+
| boolean
|
|
1487
|
+
| /*elided*/ any
|
|
1488
|
+
| (
|
|
1489
|
+
| string
|
|
1490
|
+
| number
|
|
1491
|
+
| boolean
|
|
1492
|
+
| /*elided*/ any
|
|
1493
|
+
| (
|
|
1494
|
+
| string
|
|
1495
|
+
| number
|
|
1496
|
+
| boolean
|
|
1497
|
+
| /*elided*/ any
|
|
1498
|
+
| /*elided*/ any
|
|
1499
|
+
| null
|
|
1500
|
+
)[]
|
|
1501
|
+
| null
|
|
1502
|
+
)[]
|
|
1503
|
+
| null
|
|
1504
|
+
)[]
|
|
1505
|
+
| null
|
|
1506
|
+
)[]
|
|
1507
|
+
| null;
|
|
1508
|
+
}
|
|
1509
|
+
| (
|
|
1510
|
+
| string
|
|
1511
|
+
| number
|
|
1512
|
+
| boolean
|
|
1513
|
+
| {
|
|
1514
|
+
[x: string]:
|
|
1515
|
+
| string
|
|
1516
|
+
| number
|
|
1517
|
+
| boolean
|
|
1518
|
+
| /*elided*/ any
|
|
1519
|
+
| (
|
|
1520
|
+
| string
|
|
1521
|
+
| number
|
|
1522
|
+
| boolean
|
|
1523
|
+
| /*elided*/ any
|
|
1524
|
+
| (
|
|
1525
|
+
| string
|
|
1526
|
+
| number
|
|
1527
|
+
| boolean
|
|
1528
|
+
| /*elided*/ any
|
|
1529
|
+
| (
|
|
1530
|
+
| string
|
|
1531
|
+
| number
|
|
1532
|
+
| boolean
|
|
1533
|
+
| /*elided*/ any
|
|
1534
|
+
| /*elided*/ any
|
|
1535
|
+
| null
|
|
1536
|
+
)[]
|
|
1537
|
+
| null
|
|
1538
|
+
)[]
|
|
1539
|
+
| null
|
|
1540
|
+
)[]
|
|
1541
|
+
| null;
|
|
1542
|
+
}
|
|
1543
|
+
| (
|
|
1544
|
+
| string
|
|
1545
|
+
| number
|
|
1546
|
+
| boolean
|
|
1547
|
+
| {
|
|
1548
|
+
[x: string]:
|
|
1549
|
+
| string
|
|
1550
|
+
| number
|
|
1551
|
+
| boolean
|
|
1552
|
+
| /*elided*/ any
|
|
1553
|
+
| (
|
|
1554
|
+
| string
|
|
1555
|
+
| number
|
|
1556
|
+
| boolean
|
|
1557
|
+
| /*elided*/ any
|
|
1558
|
+
| (
|
|
1559
|
+
| string
|
|
1560
|
+
| number
|
|
1561
|
+
| boolean
|
|
1562
|
+
| /*elided*/ any
|
|
1563
|
+
| /*elided*/ any
|
|
1564
|
+
| null
|
|
1565
|
+
)[]
|
|
1566
|
+
| null
|
|
1567
|
+
)[]
|
|
1568
|
+
| null;
|
|
1569
|
+
}
|
|
1570
|
+
| (
|
|
1571
|
+
| string
|
|
1572
|
+
| number
|
|
1573
|
+
| boolean
|
|
1574
|
+
| {
|
|
1575
|
+
[x: string]:
|
|
1576
|
+
| string
|
|
1577
|
+
| number
|
|
1578
|
+
| boolean
|
|
1579
|
+
| /*elided*/ any
|
|
1580
|
+
| (
|
|
1581
|
+
| string
|
|
1582
|
+
| number
|
|
1583
|
+
| boolean
|
|
1584
|
+
| /*elided*/ any
|
|
1585
|
+
| /*elided*/ any
|
|
1586
|
+
| null
|
|
1587
|
+
)[]
|
|
1588
|
+
| null;
|
|
1589
|
+
}
|
|
1590
|
+
| (
|
|
1591
|
+
| string
|
|
1592
|
+
| number
|
|
1593
|
+
| boolean
|
|
1594
|
+
| {
|
|
1595
|
+
[x: string]:
|
|
1596
|
+
| string
|
|
1597
|
+
| number
|
|
1598
|
+
| boolean
|
|
1599
|
+
| /*elided*/ any
|
|
1600
|
+
| /*elided*/ any
|
|
1601
|
+
| null;
|
|
1602
|
+
}
|
|
1603
|
+
| /*elided*/ any
|
|
1604
|
+
| null
|
|
1605
|
+
)[]
|
|
1606
|
+
| null
|
|
1607
|
+
)[]
|
|
1608
|
+
| null
|
|
1609
|
+
)[]
|
|
1610
|
+
| null
|
|
1611
|
+
)[]
|
|
1612
|
+
| null
|
|
1613
|
+
)[]
|
|
1614
|
+
| null
|
|
1615
|
+
)[]
|
|
1616
|
+
| null
|
|
1617
|
+
)[]
|
|
1618
|
+
| null
|
|
1619
|
+
)[]
|
|
1620
|
+
| null
|
|
1621
|
+
)[]
|
|
1622
|
+
| null
|
|
1623
|
+
)[]
|
|
1624
|
+
| null
|
|
1625
|
+
)[]
|
|
1626
|
+
| null;
|
|
963
1627
|
}
|
|
964
1628
|
| undefined;
|
|
965
1629
|
required?: string[] | undefined;
|
|
@@ -969,13 +1633,7 @@ declare class MCPClientConnection {
|
|
|
969
1633
|
outputSchema?:
|
|
970
1634
|
| {
|
|
971
1635
|
[x: string]: unknown;
|
|
972
|
-
|
|
973
|
-
properties?:
|
|
974
|
-
| {
|
|
975
|
-
[x: string]: object;
|
|
976
|
-
}
|
|
977
|
-
| undefined;
|
|
978
|
-
required?: string[] | undefined;
|
|
1636
|
+
$schema?: string | undefined;
|
|
979
1637
|
}
|
|
980
1638
|
| undefined;
|
|
981
1639
|
annotations?:
|
|
@@ -1102,11 +1760,17 @@ declare class MCPClientConnection {
|
|
|
1102
1760
|
* @deprecated Overriding or instance-patching this method directly is
|
|
1103
1761
|
* deprecated — pass the `elicitationHandlers` connection option instead.
|
|
1104
1762
|
*/
|
|
1105
|
-
handleElicitationRequest(
|
|
1763
|
+
handleElicitationRequest(
|
|
1764
|
+
request: ElicitRequest,
|
|
1765
|
+
signal?: AbortSignal
|
|
1766
|
+
): Promise<ElicitResult>;
|
|
1106
1767
|
private isResumedStreamableHttpSession;
|
|
1107
1768
|
get sessionId(): string | undefined;
|
|
1108
1769
|
/** @internal Clear a restored session before reconnecting. */
|
|
1109
1770
|
clearResumedSession(): void;
|
|
1771
|
+
get protocolVersion(): string | undefined;
|
|
1772
|
+
get discoverResult(): DiscoverResult | undefined;
|
|
1773
|
+
private openRestoredListSubscription;
|
|
1110
1774
|
private getTransportName;
|
|
1111
1775
|
close(): Promise<void>;
|
|
1112
1776
|
/**
|
|
@@ -1123,7 +1787,7 @@ declare class MCPClientConnection {
|
|
|
1123
1787
|
//#endregion
|
|
1124
1788
|
//#region src/mcp/client-storage.d.ts
|
|
1125
1789
|
/**
|
|
1126
|
-
* Represents a row in the cf_agents_mcp_servers table
|
|
1790
|
+
* Represents a row in the cf_agents_mcp_servers table.
|
|
1127
1791
|
*/
|
|
1128
1792
|
type MCPServerRow = {
|
|
1129
1793
|
id: string;
|
|
@@ -1134,6 +1798,42 @@ type MCPServerRow = {
|
|
|
1134
1798
|
callback_url: string;
|
|
1135
1799
|
server_options: string | null;
|
|
1136
1800
|
};
|
|
1801
|
+
/** Explicitly supported durable subset of MCP SDK client options. */
|
|
1802
|
+
type PersistedMcpClientOptions = Pick<
|
|
1803
|
+
McpClientOptions,
|
|
1804
|
+
| "capabilities"
|
|
1805
|
+
| "supportedProtocolVersions"
|
|
1806
|
+
| "enforceStrictCapabilities"
|
|
1807
|
+
| "debouncedNotificationMethods"
|
|
1808
|
+
| "versionNegotiation"
|
|
1809
|
+
| "inputRequired"
|
|
1810
|
+
| "listMaxPages"
|
|
1811
|
+
| "cachePartition"
|
|
1812
|
+
| "defaultCacheTtlMs"
|
|
1813
|
+
>;
|
|
1814
|
+
type PersistedMcpTransportOptions = {
|
|
1815
|
+
type?: TransportType;
|
|
1816
|
+
headers?: HeadersInit;
|
|
1817
|
+
requestInit?: RequestInit;
|
|
1818
|
+
reconnectionOptions?: StreamableHTTPReconnectionOptions;
|
|
1819
|
+
skipIssuerMetadataValidation?: boolean;
|
|
1820
|
+
onInsufficientScope?: "reauthorize" | "throw";
|
|
1821
|
+
maxStepUpRetries?: number;
|
|
1822
|
+
sessionId?: string;
|
|
1823
|
+
protocolVersion?: string;
|
|
1824
|
+
};
|
|
1825
|
+
type PersistedMcpServerOptions = {
|
|
1826
|
+
client?: PersistedMcpClientOptions;
|
|
1827
|
+
transport?: PersistedMcpTransportOptions;
|
|
1828
|
+
discoverResult?: DiscoverResult;
|
|
1829
|
+
retry?: RetryOptions /** Durable Object binding used to restore an RPC MCP connection. */;
|
|
1830
|
+
bindingName?: string /** Application props passed back to a restored RPC MCP connection. */;
|
|
1831
|
+
props?: Record<
|
|
1832
|
+
string,
|
|
1833
|
+
unknown
|
|
1834
|
+
> /** One-wake capability seed; handler functions remain memory-only. */;
|
|
1835
|
+
capabilities?: ClientCapabilities;
|
|
1836
|
+
};
|
|
1137
1837
|
//#endregion
|
|
1138
1838
|
//#region src/mcp/client.d.ts
|
|
1139
1839
|
type MCPAITool = {
|
|
@@ -1177,25 +1877,7 @@ declare const MCP_SERVER_ID_MAX_LENGTH = 64;
|
|
|
1177
1877
|
* normalizeServerId("42-things"); // "id-42-things"
|
|
1178
1878
|
*/
|
|
1179
1879
|
declare function normalizeServerId(input: string): string;
|
|
1180
|
-
|
|
1181
|
-
* Options that can be stored in the server_options column
|
|
1182
|
-
* This is what gets JSON.stringify'd and stored in the database
|
|
1183
|
-
*/
|
|
1184
|
-
type MCPServerOptions = {
|
|
1185
|
-
client?: ConstructorParameters<typeof Client>[1];
|
|
1186
|
-
transport?: {
|
|
1187
|
-
headers?: HeadersInit;
|
|
1188
|
-
type?: TransportType;
|
|
1189
|
-
sessionId?: string;
|
|
1190
|
-
} /** Retry options for connection and reconnection attempts */;
|
|
1191
|
-
retry?: RetryOptions;
|
|
1192
|
-
/**
|
|
1193
|
-
* Client capabilities advertised from configured handlers (currently the
|
|
1194
|
-
* elicitation modes). Handlers are functions and cannot be persisted, so
|
|
1195
|
-
* this records what they advertised for restores after hibernation.
|
|
1196
|
-
*/
|
|
1197
|
-
capabilities?: ClientCapabilities;
|
|
1198
|
-
};
|
|
1880
|
+
type MCPServerOptions = PersistedMcpServerOptions;
|
|
1199
1881
|
/**
|
|
1200
1882
|
* Result of an OAuth callback request
|
|
1201
1883
|
*/
|
|
@@ -1217,7 +1899,7 @@ type RegisterServerOptions = {
|
|
|
1217
1899
|
url: string;
|
|
1218
1900
|
name: string;
|
|
1219
1901
|
callbackUrl?: string;
|
|
1220
|
-
client?:
|
|
1902
|
+
client?: McpClientOptions;
|
|
1221
1903
|
transport?: MCPTransportOptions;
|
|
1222
1904
|
authUrl?: string;
|
|
1223
1905
|
clientId?: string /** Retry options for connection and reconnection attempts */;
|
|
@@ -1269,7 +1951,9 @@ type MCPClientOAuthResult =
|
|
|
1269
1951
|
};
|
|
1270
1952
|
type MCPClientElicitationHandler = (
|
|
1271
1953
|
request: ElicitRequest,
|
|
1272
|
-
serverId: string
|
|
1954
|
+
serverId: string /** Aborts when the originating MCP operation is cancelled. */,
|
|
1955
|
+
|
|
1956
|
+
signal?: AbortSignal
|
|
1273
1957
|
) => Promise<ElicitResult>;
|
|
1274
1958
|
type MCPClientElicitationHandlers = {
|
|
1275
1959
|
form?: MCPClientElicitationHandler;
|
|
@@ -1382,7 +2066,7 @@ declare class MCPClientManager {
|
|
|
1382
2066
|
*/
|
|
1383
2067
|
private getServerRetryOptions;
|
|
1384
2068
|
private clearServerAuthUrl;
|
|
1385
|
-
private
|
|
2069
|
+
private updateStoredSession;
|
|
1386
2070
|
private failConnection;
|
|
1387
2071
|
private isAuthAcceptedConnection;
|
|
1388
2072
|
private oauthCallbackSuccess;
|
|
@@ -1464,7 +2148,7 @@ declare class MCPClientManager {
|
|
|
1464
2148
|
oauthCode?: string;
|
|
1465
2149
|
};
|
|
1466
2150
|
transport?: MCPTransportOptions;
|
|
1467
|
-
client?:
|
|
2151
|
+
client?: McpClientOptions;
|
|
1468
2152
|
}
|
|
1469
2153
|
): Promise<{
|
|
1470
2154
|
id: string;
|
|
@@ -1486,6 +2170,8 @@ declare class MCPClientManager {
|
|
|
1486
2170
|
* @returns Server ID
|
|
1487
2171
|
*/
|
|
1488
2172
|
registerServer(id: string, options: RegisterServerOptions): Promise<string>;
|
|
2173
|
+
/** Persist and emit an OAuth continuation produced by connect or discovery. */
|
|
2174
|
+
private persistAuthContinuation;
|
|
1489
2175
|
/**
|
|
1490
2176
|
* Connect to an already registered MCP server and initialize the connection.
|
|
1491
2177
|
*
|
|
@@ -1645,136 +2331,19 @@ declare class MCPClientManager {
|
|
|
1645
2331
|
params: CallToolRequest["params"] & {
|
|
1646
2332
|
serverId: string;
|
|
1647
2333
|
},
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
audience?: ("user" | "assistant")[] | undefined;
|
|
1662
|
-
priority?: number | undefined;
|
|
1663
|
-
lastModified?: string | undefined;
|
|
1664
|
-
}
|
|
1665
|
-
| undefined;
|
|
1666
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1667
|
-
}
|
|
1668
|
-
| {
|
|
1669
|
-
type: "image";
|
|
1670
|
-
data: string;
|
|
1671
|
-
mimeType: string;
|
|
1672
|
-
annotations?:
|
|
1673
|
-
| {
|
|
1674
|
-
audience?: ("user" | "assistant")[] | undefined;
|
|
1675
|
-
priority?: number | undefined;
|
|
1676
|
-
lastModified?: string | undefined;
|
|
1677
|
-
}
|
|
1678
|
-
| undefined;
|
|
1679
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1680
|
-
}
|
|
1681
|
-
| {
|
|
1682
|
-
type: "audio";
|
|
1683
|
-
data: string;
|
|
1684
|
-
mimeType: string;
|
|
1685
|
-
annotations?:
|
|
1686
|
-
| {
|
|
1687
|
-
audience?: ("user" | "assistant")[] | undefined;
|
|
1688
|
-
priority?: number | undefined;
|
|
1689
|
-
lastModified?: string | undefined;
|
|
1690
|
-
}
|
|
1691
|
-
| undefined;
|
|
1692
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1693
|
-
}
|
|
1694
|
-
| {
|
|
1695
|
-
type: "resource";
|
|
1696
|
-
resource:
|
|
1697
|
-
| {
|
|
1698
|
-
uri: string;
|
|
1699
|
-
text: string;
|
|
1700
|
-
mimeType?: string | undefined;
|
|
1701
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1702
|
-
}
|
|
1703
|
-
| {
|
|
1704
|
-
uri: string;
|
|
1705
|
-
blob: string;
|
|
1706
|
-
mimeType?: string | undefined;
|
|
1707
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1708
|
-
};
|
|
1709
|
-
annotations?:
|
|
1710
|
-
| {
|
|
1711
|
-
audience?: ("user" | "assistant")[] | undefined;
|
|
1712
|
-
priority?: number | undefined;
|
|
1713
|
-
lastModified?: string | undefined;
|
|
1714
|
-
}
|
|
1715
|
-
| undefined;
|
|
1716
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1717
|
-
}
|
|
1718
|
-
| {
|
|
1719
|
-
uri: string;
|
|
1720
|
-
name: string;
|
|
1721
|
-
type: "resource_link";
|
|
1722
|
-
description?: string | undefined;
|
|
1723
|
-
mimeType?: string | undefined;
|
|
1724
|
-
size?: number | undefined;
|
|
1725
|
-
annotations?:
|
|
1726
|
-
| {
|
|
1727
|
-
audience?: ("user" | "assistant")[] | undefined;
|
|
1728
|
-
priority?: number | undefined;
|
|
1729
|
-
lastModified?: string | undefined;
|
|
1730
|
-
}
|
|
1731
|
-
| undefined;
|
|
1732
|
-
_meta?:
|
|
1733
|
-
| {
|
|
1734
|
-
[x: string]: unknown;
|
|
1735
|
-
}
|
|
1736
|
-
| undefined;
|
|
1737
|
-
icons?:
|
|
1738
|
-
| {
|
|
1739
|
-
src: string;
|
|
1740
|
-
mimeType?: string | undefined;
|
|
1741
|
-
sizes?: string[] | undefined;
|
|
1742
|
-
theme?: "light" | "dark" | undefined;
|
|
1743
|
-
}[]
|
|
1744
|
-
| undefined;
|
|
1745
|
-
title?: string | undefined;
|
|
1746
|
-
}
|
|
1747
|
-
)[];
|
|
1748
|
-
_meta?:
|
|
1749
|
-
| {
|
|
1750
|
-
[x: string]: unknown;
|
|
1751
|
-
progressToken?: string | number | undefined;
|
|
1752
|
-
"io.modelcontextprotocol/related-task"?:
|
|
1753
|
-
| {
|
|
1754
|
-
taskId: string;
|
|
1755
|
-
}
|
|
1756
|
-
| undefined;
|
|
1757
|
-
}
|
|
1758
|
-
| undefined;
|
|
1759
|
-
structuredContent?: Record<string, unknown> | undefined;
|
|
1760
|
-
isError?: boolean | undefined;
|
|
1761
|
-
}
|
|
1762
|
-
| {
|
|
1763
|
-
[x: string]: unknown;
|
|
1764
|
-
toolResult: unknown;
|
|
1765
|
-
_meta?:
|
|
1766
|
-
| {
|
|
1767
|
-
[x: string]: unknown;
|
|
1768
|
-
progressToken?: string | number | undefined;
|
|
1769
|
-
"io.modelcontextprotocol/related-task"?:
|
|
1770
|
-
| {
|
|
1771
|
-
taskId: string;
|
|
1772
|
-
}
|
|
1773
|
-
| undefined;
|
|
1774
|
-
}
|
|
1775
|
-
| undefined;
|
|
1776
|
-
}
|
|
1777
|
-
>;
|
|
2334
|
+
options?: CallToolRequestOptions
|
|
2335
|
+
): ReturnType<Client["callTool"]>;
|
|
2336
|
+
/**
|
|
2337
|
+
* @deprecated Prefer the v2 request-options overload. Explicit legacy result
|
|
2338
|
+
* schemas remain honored through the v2 SDK request funnel.
|
|
2339
|
+
*/
|
|
2340
|
+
callTool(
|
|
2341
|
+
params: CallToolRequest["params"] & {
|
|
2342
|
+
serverId: string;
|
|
2343
|
+
},
|
|
2344
|
+
resultSchema: LegacyCallToolResultSchema,
|
|
2345
|
+
options?: CallToolRequestOptions
|
|
2346
|
+
): ReturnType<Client["callTool"]>;
|
|
1778
2347
|
/**
|
|
1779
2348
|
* Namespaced version of readResource
|
|
1780
2349
|
*/
|
|
@@ -1782,7 +2351,7 @@ declare class MCPClientManager {
|
|
|
1782
2351
|
params: ReadResourceRequest["params"] & {
|
|
1783
2352
|
serverId: string;
|
|
1784
2353
|
},
|
|
1785
|
-
options
|
|
2354
|
+
options?: CacheableRequestOptions
|
|
1786
2355
|
): Promise<{
|
|
1787
2356
|
[x: string]: unknown;
|
|
1788
2357
|
contents: (
|
|
@@ -1790,22 +2359,41 @@ declare class MCPClientManager {
|
|
|
1790
2359
|
uri: string;
|
|
1791
2360
|
text: string;
|
|
1792
2361
|
mimeType?: string | undefined;
|
|
1793
|
-
_meta?:
|
|
2362
|
+
_meta?:
|
|
2363
|
+
| {
|
|
2364
|
+
[x: string]: unknown;
|
|
2365
|
+
}
|
|
2366
|
+
| undefined;
|
|
1794
2367
|
}
|
|
1795
2368
|
| {
|
|
1796
2369
|
uri: string;
|
|
1797
2370
|
blob: string;
|
|
1798
2371
|
mimeType?: string | undefined;
|
|
1799
|
-
_meta?:
|
|
2372
|
+
_meta?:
|
|
2373
|
+
| {
|
|
2374
|
+
[x: string]: unknown;
|
|
2375
|
+
}
|
|
2376
|
+
| undefined;
|
|
1800
2377
|
}
|
|
1801
2378
|
)[];
|
|
1802
2379
|
_meta?:
|
|
1803
2380
|
| {
|
|
1804
2381
|
[x: string]: unknown;
|
|
1805
|
-
|
|
1806
|
-
"io.modelcontextprotocol/related-task"?:
|
|
2382
|
+
"io.modelcontextprotocol/serverInfo"?:
|
|
1807
2383
|
| {
|
|
1808
|
-
|
|
2384
|
+
version: string;
|
|
2385
|
+
name: string;
|
|
2386
|
+
websiteUrl?: string | undefined;
|
|
2387
|
+
description?: string | undefined;
|
|
2388
|
+
icons?:
|
|
2389
|
+
| {
|
|
2390
|
+
src: string;
|
|
2391
|
+
mimeType?: string | undefined;
|
|
2392
|
+
sizes?: string[] | undefined;
|
|
2393
|
+
theme?: "light" | "dark" | undefined;
|
|
2394
|
+
}[]
|
|
2395
|
+
| undefined;
|
|
2396
|
+
title?: string | undefined;
|
|
1809
2397
|
}
|
|
1810
2398
|
| undefined;
|
|
1811
2399
|
}
|
|
@@ -1818,7 +2406,7 @@ declare class MCPClientManager {
|
|
|
1818
2406
|
params: GetPromptRequest["params"] & {
|
|
1819
2407
|
serverId: string;
|
|
1820
2408
|
},
|
|
1821
|
-
options
|
|
2409
|
+
options?: RequestOptions
|
|
1822
2410
|
): Promise<{
|
|
1823
2411
|
[x: string]: unknown;
|
|
1824
2412
|
messages: {
|
|
@@ -1834,7 +2422,11 @@ declare class MCPClientManager {
|
|
|
1834
2422
|
lastModified?: string | undefined;
|
|
1835
2423
|
}
|
|
1836
2424
|
| undefined;
|
|
1837
|
-
_meta?:
|
|
2425
|
+
_meta?:
|
|
2426
|
+
| {
|
|
2427
|
+
[x: string]: unknown;
|
|
2428
|
+
}
|
|
2429
|
+
| undefined;
|
|
1838
2430
|
}
|
|
1839
2431
|
| {
|
|
1840
2432
|
type: "image";
|
|
@@ -1847,7 +2439,11 @@ declare class MCPClientManager {
|
|
|
1847
2439
|
lastModified?: string | undefined;
|
|
1848
2440
|
}
|
|
1849
2441
|
| undefined;
|
|
1850
|
-
_meta?:
|
|
2442
|
+
_meta?:
|
|
2443
|
+
| {
|
|
2444
|
+
[x: string]: unknown;
|
|
2445
|
+
}
|
|
2446
|
+
| undefined;
|
|
1851
2447
|
}
|
|
1852
2448
|
| {
|
|
1853
2449
|
type: "audio";
|
|
@@ -1860,31 +2456,11 @@ declare class MCPClientManager {
|
|
|
1860
2456
|
lastModified?: string | undefined;
|
|
1861
2457
|
}
|
|
1862
2458
|
| undefined;
|
|
1863
|
-
_meta?:
|
|
1864
|
-
}
|
|
1865
|
-
| {
|
|
1866
|
-
type: "resource";
|
|
1867
|
-
resource:
|
|
1868
|
-
| {
|
|
1869
|
-
uri: string;
|
|
1870
|
-
text: string;
|
|
1871
|
-
mimeType?: string | undefined;
|
|
1872
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1873
|
-
}
|
|
1874
|
-
| {
|
|
1875
|
-
uri: string;
|
|
1876
|
-
blob: string;
|
|
1877
|
-
mimeType?: string | undefined;
|
|
1878
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1879
|
-
};
|
|
1880
|
-
annotations?:
|
|
2459
|
+
_meta?:
|
|
1881
2460
|
| {
|
|
1882
|
-
|
|
1883
|
-
priority?: number | undefined;
|
|
1884
|
-
lastModified?: string | undefined;
|
|
2461
|
+
[x: string]: unknown;
|
|
1885
2462
|
}
|
|
1886
2463
|
| undefined;
|
|
1887
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1888
2464
|
}
|
|
1889
2465
|
| {
|
|
1890
2466
|
uri: string;
|
|
@@ -1914,15 +2490,62 @@ declare class MCPClientManager {
|
|
|
1914
2490
|
}[]
|
|
1915
2491
|
| undefined;
|
|
1916
2492
|
title?: string | undefined;
|
|
2493
|
+
}
|
|
2494
|
+
| {
|
|
2495
|
+
type: "resource";
|
|
2496
|
+
resource:
|
|
2497
|
+
| {
|
|
2498
|
+
uri: string;
|
|
2499
|
+
text: string;
|
|
2500
|
+
mimeType?: string | undefined;
|
|
2501
|
+
_meta?:
|
|
2502
|
+
| {
|
|
2503
|
+
[x: string]: unknown;
|
|
2504
|
+
}
|
|
2505
|
+
| undefined;
|
|
2506
|
+
}
|
|
2507
|
+
| {
|
|
2508
|
+
uri: string;
|
|
2509
|
+
blob: string;
|
|
2510
|
+
mimeType?: string | undefined;
|
|
2511
|
+
_meta?:
|
|
2512
|
+
| {
|
|
2513
|
+
[x: string]: unknown;
|
|
2514
|
+
}
|
|
2515
|
+
| undefined;
|
|
2516
|
+
};
|
|
2517
|
+
annotations?:
|
|
2518
|
+
| {
|
|
2519
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
2520
|
+
priority?: number | undefined;
|
|
2521
|
+
lastModified?: string | undefined;
|
|
2522
|
+
}
|
|
2523
|
+
| undefined;
|
|
2524
|
+
_meta?:
|
|
2525
|
+
| {
|
|
2526
|
+
[x: string]: unknown;
|
|
2527
|
+
}
|
|
2528
|
+
| undefined;
|
|
1917
2529
|
};
|
|
1918
2530
|
}[];
|
|
1919
2531
|
_meta?:
|
|
1920
2532
|
| {
|
|
1921
2533
|
[x: string]: unknown;
|
|
1922
|
-
|
|
1923
|
-
"io.modelcontextprotocol/related-task"?:
|
|
2534
|
+
"io.modelcontextprotocol/serverInfo"?:
|
|
1924
2535
|
| {
|
|
1925
|
-
|
|
2536
|
+
version: string;
|
|
2537
|
+
name: string;
|
|
2538
|
+
websiteUrl?: string | undefined;
|
|
2539
|
+
description?: string | undefined;
|
|
2540
|
+
icons?:
|
|
2541
|
+
| {
|
|
2542
|
+
src: string;
|
|
2543
|
+
mimeType?: string | undefined;
|
|
2544
|
+
sizes?: string[] | undefined;
|
|
2545
|
+
theme?: "light" | "dark" | undefined;
|
|
2546
|
+
}[]
|
|
2547
|
+
| undefined;
|
|
2548
|
+
title?: string | undefined;
|
|
1926
2549
|
}
|
|
1927
2550
|
| undefined;
|
|
1928
2551
|
}
|
|
@@ -1940,7 +2563,7 @@ type NamespacedData = {
|
|
|
1940
2563
|
resources: (Resource & {
|
|
1941
2564
|
serverId: string;
|
|
1942
2565
|
})[];
|
|
1943
|
-
resourceTemplates: (
|
|
2566
|
+
resourceTemplates: (ResourceTemplateType & {
|
|
1944
2567
|
serverId: string;
|
|
1945
2568
|
})[];
|
|
1946
2569
|
};
|
|
@@ -2394,10 +3017,16 @@ type AddMcpServerOptions = {
|
|
|
2394
3017
|
*/
|
|
2395
3018
|
callbackPath?: string /** Agents routing prefix (default: "agents") */;
|
|
2396
3019
|
agentsPrefix?: string /** MCP client options */;
|
|
2397
|
-
client?:
|
|
3020
|
+
client?: McpClientOptions /** Transport options */;
|
|
2398
3021
|
transport?: {
|
|
2399
3022
|
/** Custom headers for authentication (e.g., bearer tokens, CF Access) */ headers?: HeadersInit /** Transport type: "sse", "streamable-http", or "auto" (default) */;
|
|
2400
3023
|
type?: TransportType;
|
|
3024
|
+
/**
|
|
3025
|
+
* Compatibility escape hatch for a trusted legacy authorization server
|
|
3026
|
+
* whose RFC 8414 issuer does not match its metadata discovery URL.
|
|
3027
|
+
* Security-weakening; leave false unless the server is explicitly known.
|
|
3028
|
+
*/
|
|
3029
|
+
skipIssuerMetadataValidation?: boolean;
|
|
2401
3030
|
} /** Retry options for connection and reconnection attempts */;
|
|
2402
3031
|
retry?: RetryOptions;
|
|
2403
3032
|
};
|
|
@@ -4769,13 +5398,7 @@ declare class Agent<
|
|
|
4769
5398
|
url: string,
|
|
4770
5399
|
callbackHostOrOptions?: string | AddMcpServerOptions,
|
|
4771
5400
|
agentsPrefix?: string,
|
|
4772
|
-
options?:
|
|
4773
|
-
client?: ConstructorParameters<typeof Client>[1];
|
|
4774
|
-
transport?: {
|
|
4775
|
-
headers?: HeadersInit;
|
|
4776
|
-
type?: TransportType;
|
|
4777
|
-
};
|
|
4778
|
-
}
|
|
5401
|
+
options?: Pick<AddMcpServerOptions, "client" | "transport">
|
|
4779
5402
|
): Promise<
|
|
4780
5403
|
| {
|
|
4781
5404
|
id: string;
|
|
@@ -5401,121 +6024,124 @@ type AgentToolEventState<Part extends AgentToolRunPart = AgentToolRunPart> = {
|
|
|
5401
6024
|
//#endregion
|
|
5402
6025
|
export {
|
|
5403
6026
|
RoutingRetryOptions as $,
|
|
5404
|
-
|
|
6027
|
+
LegacyMcpHandler as $t,
|
|
5405
6028
|
AgentGetOptions as A,
|
|
5406
|
-
|
|
6029
|
+
MCPServerFilter as At,
|
|
5407
6030
|
EmailSendBinding as B,
|
|
5408
|
-
|
|
6031
|
+
RPCServerTransport as Bt,
|
|
5409
6032
|
DetachedRunAgentToolResult as C,
|
|
5410
|
-
|
|
6033
|
+
MCPClientManager as Ct,
|
|
5411
6034
|
AddRpcMcpServerOptions as D,
|
|
5412
|
-
|
|
6035
|
+
MCPConnectionResult as Dt,
|
|
5413
6036
|
AddMcpServerOptions as E,
|
|
5414
|
-
|
|
6037
|
+
MCPClientOAuthResult as Et,
|
|
5415
6038
|
Connection$1 as F,
|
|
5416
|
-
|
|
6039
|
+
normalizeServerId as Ft,
|
|
5417
6040
|
FiberStatus as G,
|
|
5418
|
-
|
|
6041
|
+
ElicitResult$3 as Gt,
|
|
5419
6042
|
FiberInspection as H,
|
|
5420
|
-
|
|
6043
|
+
RPC_DO_PREFIX as Ht,
|
|
5421
6044
|
ConnectionContext$1 as I,
|
|
5422
|
-
|
|
6045
|
+
MCPElicitationHandler as It,
|
|
5423
6046
|
MCPServerMessage as J,
|
|
5424
|
-
|
|
6047
|
+
DurableObjectEventStore as Jt,
|
|
5425
6048
|
ListFibersOptions as K,
|
|
5426
|
-
|
|
6049
|
+
McpAgent as Kt,
|
|
5427
6050
|
DEFAULT_AGENT_STATIC_OPTIONS as L,
|
|
5428
|
-
|
|
6051
|
+
MCPElicitationHandlers as Lt,
|
|
5429
6052
|
AgentOptions as M,
|
|
5430
|
-
|
|
6053
|
+
MCP_SERVER_ID_MAX_LENGTH as Mt,
|
|
5431
6054
|
AgentStaticOptions as N,
|
|
5432
|
-
|
|
6055
|
+
RegisterServerOptions as Nt,
|
|
5433
6056
|
Agent as O,
|
|
5434
|
-
|
|
6057
|
+
MCPDiscoverResult as Ot,
|
|
5435
6058
|
CallableMetadata as P,
|
|
5436
|
-
|
|
6059
|
+
getNamespacedData as Pt,
|
|
5437
6060
|
RPCResponse as Q,
|
|
5438
|
-
|
|
6061
|
+
CreateMcpHandlerOptions$1 as Qt,
|
|
5439
6062
|
DeleteFibersOptions as R,
|
|
5440
|
-
|
|
6063
|
+
RPCClientTransport as Rt,
|
|
5441
6064
|
DetachedAgentToolConfig as S,
|
|
5442
|
-
|
|
6065
|
+
MCPClientElicitationHandlers as St,
|
|
5443
6066
|
RunAgentToolResult as T,
|
|
5444
|
-
|
|
6067
|
+
MCPClientOAuthCallbackConfig as Tt,
|
|
5445
6068
|
FiberRecoveryContext as U,
|
|
5446
|
-
|
|
6069
|
+
ElicitRequest$2 as Ut,
|
|
5447
6070
|
FiberContext as V,
|
|
5448
|
-
|
|
6071
|
+
RPCServerTransportOptions as Vt,
|
|
5449
6072
|
FiberRecoveryResult as W,
|
|
5450
|
-
|
|
6073
|
+
ElicitRequestSchema as Wt,
|
|
5451
6074
|
QueueItem as X,
|
|
5452
|
-
|
|
6075
|
+
experimental_createMcpHandler as Xt,
|
|
5453
6076
|
MCPServersState as Y,
|
|
5454
|
-
|
|
6077
|
+
createMcpHandler$1 as Yt,
|
|
5455
6078
|
RPCRequest as Z,
|
|
5456
|
-
|
|
6079
|
+
CreateLegacyMcpHandlerOptions as Zt,
|
|
5457
6080
|
AgentToolRunState as _,
|
|
5458
|
-
|
|
6081
|
+
ElicitRequest$1 as _t,
|
|
5459
6082
|
AgentToolEvent as a,
|
|
5460
|
-
|
|
6083
|
+
SSEEdgeClientTransport as an,
|
|
5461
6084
|
StartFiberResult as at,
|
|
5462
6085
|
AgentToolTerminalStatus as b,
|
|
5463
|
-
|
|
6086
|
+
MCPAIToolSet as bt,
|
|
5464
6087
|
AgentToolFailure as c,
|
|
5465
|
-
|
|
6088
|
+
SubAgentPathMatch as cn,
|
|
5466
6089
|
SubAgentClass as ct,
|
|
5467
6090
|
AgentToolMilestone as d,
|
|
6091
|
+
routeSubAgentRequest as dn,
|
|
5468
6092
|
callable as dt,
|
|
5469
|
-
|
|
6093
|
+
createLegacyMcpHandler as en,
|
|
5470
6094
|
Schedule as et,
|
|
5471
6095
|
AgentToolProgress as f,
|
|
6096
|
+
withInvocationScope as fn,
|
|
5472
6097
|
getAgentByName as ft,
|
|
5473
6098
|
AgentToolRunPart as g,
|
|
5474
6099
|
unstable_callable as gt,
|
|
5475
6100
|
AgentToolRunInspection as h,
|
|
5476
6101
|
routeAgentRequest as ht,
|
|
5477
6102
|
AgentToolDisplayMetadata as i,
|
|
5478
|
-
|
|
6103
|
+
WorkerTransportOptions as in,
|
|
5479
6104
|
StartFiberOptions as it,
|
|
5480
6105
|
AgentNamespace as j,
|
|
5481
|
-
|
|
6106
|
+
MCPServerOptions as jt,
|
|
5482
6107
|
AgentContext as k,
|
|
5483
|
-
|
|
6108
|
+
MCPOAuthCallbackResult as kt,
|
|
5484
6109
|
AgentToolInterruptedReason as l,
|
|
5485
|
-
|
|
6110
|
+
getSubAgentByName as ln,
|
|
5486
6111
|
SubAgentStub as lt,
|
|
5487
6112
|
AgentToolRunInfo as m,
|
|
5488
6113
|
routeAgentEmail as mt,
|
|
5489
6114
|
AGENT_TOOL_PROGRESS_PART as n,
|
|
5490
|
-
|
|
6115
|
+
TransportState as nn,
|
|
5491
6116
|
SendEmailOptions as nt,
|
|
5492
6117
|
AgentToolEventMessage as o,
|
|
5493
|
-
|
|
6118
|
+
StreamableHTTPEdgeClientTransport as on,
|
|
5494
6119
|
StateUpdateMessage as ot,
|
|
5495
6120
|
AgentToolProgressSnapshot as p,
|
|
5496
6121
|
getCurrentAgent as pt,
|
|
5497
6122
|
MCPServer as q,
|
|
5498
|
-
|
|
6123
|
+
ClearableEventStore as qt,
|
|
5499
6124
|
AgentToolChildAdapter as r,
|
|
5500
|
-
|
|
6125
|
+
WorkerTransport as rn,
|
|
5501
6126
|
SqlError as rt,
|
|
5502
6127
|
AgentToolEventState as s,
|
|
5503
|
-
|
|
6128
|
+
SUB_PREFIX as sn,
|
|
5504
6129
|
StreamingResponse as st,
|
|
5505
6130
|
AGENT_TOOL_MILESTONE_PART as t,
|
|
5506
|
-
|
|
6131
|
+
MCPStorageApi as tn,
|
|
5507
6132
|
ScheduleCriteria as tt,
|
|
5508
6133
|
AgentToolLifecycleResult as u,
|
|
6134
|
+
parseSubAgentPath as un,
|
|
5509
6135
|
WSMessage$1 as ut,
|
|
5510
6136
|
AgentToolRunStatus as v,
|
|
5511
|
-
|
|
6137
|
+
ElicitResult$2 as vt,
|
|
5512
6138
|
RunAgentToolOptions as w,
|
|
5513
|
-
|
|
6139
|
+
MCPClientManagerOptions as wt,
|
|
5514
6140
|
ChatCapableAgentClass as x,
|
|
5515
|
-
|
|
6141
|
+
MCPClientElicitationHandler as xt,
|
|
5516
6142
|
AgentToolStoredChunk as y,
|
|
5517
|
-
|
|
6143
|
+
MCPAITool as yt,
|
|
5518
6144
|
EmailRoutingOptions as z,
|
|
5519
|
-
|
|
6145
|
+
RPCClientTransportOptions as zt
|
|
5520
6146
|
};
|
|
5521
|
-
//# sourceMappingURL=agent-tool-types-
|
|
6147
|
+
//# sourceMappingURL=agent-tool-types-BC-WFlsz.d.ts.map
|