agents 0.0.0-e934f53 → 0.0.0-ecf8926

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.
Files changed (43) hide show
  1. package/README.md +3 -3
  2. package/dist/ai-chat-agent.d.ts +9 -8
  3. package/dist/ai-chat-agent.js +127 -58
  4. package/dist/ai-chat-agent.js.map +1 -1
  5. package/dist/ai-chat-v5-migration.d.ts +152 -0
  6. package/dist/ai-chat-v5-migration.js +19 -0
  7. package/dist/ai-chat-v5-migration.js.map +1 -0
  8. package/dist/ai-react.d.ts +59 -70
  9. package/dist/ai-react.js +144 -37
  10. package/dist/ai-react.js.map +1 -1
  11. package/dist/ai-types.d.ts +36 -19
  12. package/dist/ai-types.js +6 -0
  13. package/dist/chunk-AVYJQSLW.js +17 -0
  14. package/dist/chunk-AVYJQSLW.js.map +1 -0
  15. package/dist/{chunk-HY7ZLHJB.js → chunk-DS7BJNPH.js} +3 -3
  16. package/dist/chunk-DS7BJNPH.js.map +1 -0
  17. package/dist/{chunk-JXN5WZFQ.js → chunk-EGCWEPQL.js} +32 -29
  18. package/dist/chunk-EGCWEPQL.js.map +1 -0
  19. package/dist/{chunk-KUH345EY.js → chunk-QEVM4BVL.js} +5 -5
  20. package/dist/chunk-QEVM4BVL.js.map +1 -0
  21. package/dist/chunk-UJVEAURM.js +150 -0
  22. package/dist/chunk-UJVEAURM.js.map +1 -0
  23. package/dist/client.js +2 -1
  24. package/dist/index.d.ts +539 -32
  25. package/dist/index.js +4 -3
  26. package/dist/mcp/client.d.ts +1 -1
  27. package/dist/mcp/client.js +1 -1
  28. package/dist/mcp/index.d.ts +2 -2
  29. package/dist/mcp/index.js +4 -3
  30. package/dist/mcp/index.js.map +1 -1
  31. package/dist/observability/index.d.ts +46 -14
  32. package/dist/observability/index.js +4 -3
  33. package/dist/react.d.ts +4 -2
  34. package/dist/react.js +7 -5
  35. package/dist/react.js.map +1 -1
  36. package/dist/schedule.d.ts +4 -4
  37. package/package.json +9 -4
  38. package/src/index.ts +33 -29
  39. package/dist/chunk-HY7ZLHJB.js.map +0 -1
  40. package/dist/chunk-JXN5WZFQ.js.map +0 -1
  41. package/dist/chunk-KUH345EY.js.map +0 -1
  42. package/dist/index-BCJclX6q.d.ts +0 -615
  43. package/dist/{client-DgyzBU_8.d.ts → client-BAqDHqAV.d.ts} +8 -8
package/dist/index.d.ts CHANGED
@@ -1,36 +1,16 @@
1
- import "cloudflare:workers";
2
- import "@modelcontextprotocol/sdk/client/index.js";
3
- import "@modelcontextprotocol/sdk/types.js";
1
+ import { env } from "cloudflare:workers";
2
+ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
3
+ import {
4
+ ServerCapabilities,
5
+ Tool,
6
+ Prompt,
7
+ Resource
8
+ } from "@modelcontextprotocol/sdk/types.js";
9
+ import { Server, Connection, PartyServerOptions } from "partyserver";
4
10
  export { Connection, ConnectionContext, WSMessage } from "partyserver";
5
- import "./client-DgyzBU_8.js";
6
- export {
7
- A as Agent,
8
- a as AgentContext,
9
- p as AgentEmail,
10
- i as AgentNamespace,
11
- j as AgentOptions,
12
- C as CallableMetadata,
13
- E as EmailResolver,
14
- n as EmailRoutingOptions,
15
- q as EmailSendOptions,
16
- f as MCPServer,
17
- e as MCPServerMessage,
18
- M as MCPServersState,
19
- Q as QueueItem,
20
- R as RPCRequest,
21
- c as RPCResponse,
22
- d as Schedule,
23
- S as StateUpdateMessage,
24
- t as StreamingResponse,
25
- l as createAddressBasedEmailResolver,
26
- m as createCatchAllEmailResolver,
27
- k as createHeaderBasedEmailResolver,
28
- s as getAgentByName,
29
- h as getCurrentAgent,
30
- o as routeAgentEmail,
31
- r as routeAgentRequest,
32
- u as unstable_callable
33
- } from "./index-BCJclX6q.js";
11
+ import { M as MCPClientManager } from "./client-BAqDHqAV.js";
12
+ import { Observability } from "./observability/index.js";
13
+ import { MessageType } from "./ai-types.js";
34
14
  import "zod";
35
15
  import "@modelcontextprotocol/sdk/shared/protocol.js";
36
16
  import "ai";
@@ -39,3 +19,530 @@ import "@modelcontextprotocol/sdk/client/streamableHttp.js";
39
19
  import "./mcp/do-oauth-client-provider.js";
40
20
  import "@modelcontextprotocol/sdk/client/auth.js";
41
21
  import "@modelcontextprotocol/sdk/shared/auth.js";
22
+
23
+ /**
24
+ * RPC request message from client
25
+ */
26
+ type RPCRequest = {
27
+ type: "rpc";
28
+ id: string;
29
+ method: string;
30
+ args: unknown[];
31
+ };
32
+ /**
33
+ * State update message from client
34
+ */
35
+ type StateUpdateMessage = {
36
+ type: MessageType.CF_AGENT_STATE;
37
+ state: unknown;
38
+ };
39
+ /**
40
+ * RPC response message to client
41
+ */
42
+ type RPCResponse = {
43
+ type: MessageType.RPC;
44
+ id: string;
45
+ } & (
46
+ | {
47
+ success: true;
48
+ result: unknown;
49
+ done?: false;
50
+ }
51
+ | {
52
+ success: true;
53
+ result: unknown;
54
+ done: true;
55
+ }
56
+ | {
57
+ success: false;
58
+ error: string;
59
+ }
60
+ );
61
+ /**
62
+ * Metadata for a callable method
63
+ */
64
+ type CallableMetadata = {
65
+ /** Optional description of what the method does */
66
+ description?: string;
67
+ /** Whether the method supports streaming responses */
68
+ streaming?: boolean;
69
+ };
70
+ /**
71
+ * Decorator that marks a method as callable by clients
72
+ * @param metadata Optional metadata about the callable method
73
+ */
74
+ declare function unstable_callable(
75
+ metadata?: CallableMetadata
76
+ ): <This, Args extends unknown[], Return>(
77
+ target: (this: This, ...args: Args) => Return,
78
+ context: ClassMethodDecoratorContext
79
+ ) => (this: This, ...args: Args) => Return;
80
+ type QueueItem<T = string> = {
81
+ id: string;
82
+ payload: T;
83
+ callback: keyof Agent<unknown>;
84
+ created_at: number;
85
+ };
86
+ /**
87
+ * Represents a scheduled task within an Agent
88
+ * @template T Type of the payload data
89
+ */
90
+ type Schedule<T = string> = {
91
+ /** Unique identifier for the schedule */
92
+ id: string;
93
+ /** Name of the method to be called */
94
+ callback: string;
95
+ /** Data to be passed to the callback */
96
+ payload: T;
97
+ } & (
98
+ | {
99
+ /** Type of schedule for one-time execution at a specific time */
100
+ type: "scheduled";
101
+ /** Timestamp when the task should execute */
102
+ time: number;
103
+ }
104
+ | {
105
+ /** Type of schedule for delayed execution */
106
+ type: "delayed";
107
+ /** Timestamp when the task should execute */
108
+ time: number;
109
+ /** Number of seconds to delay execution */
110
+ delayInSeconds: number;
111
+ }
112
+ | {
113
+ /** Type of schedule for recurring execution based on cron expression */
114
+ type: "cron";
115
+ /** Timestamp for the next execution */
116
+ time: number;
117
+ /** Cron expression defining the schedule */
118
+ cron: string;
119
+ }
120
+ );
121
+ /**
122
+ * MCP Server state update message from server -> Client
123
+ */
124
+ type MCPServerMessage = {
125
+ type: MessageType.CF_AGENT_MCP_SERVERS;
126
+ mcp: MCPServersState;
127
+ };
128
+ type MCPServersState = {
129
+ servers: {
130
+ [id: string]: MCPServer;
131
+ };
132
+ tools: Tool[];
133
+ prompts: Prompt[];
134
+ resources: Resource[];
135
+ };
136
+ type MCPServer = {
137
+ name: string;
138
+ server_url: string;
139
+ auth_url: string | null;
140
+ state: "authenticating" | "connecting" | "ready" | "discovering" | "failed";
141
+ instructions: string | null;
142
+ capabilities: ServerCapabilities | null;
143
+ };
144
+ declare function getCurrentAgent<
145
+ T extends Agent<unknown, unknown> = Agent<unknown, unknown>
146
+ >(): {
147
+ agent: T | undefined;
148
+ connection: Connection | undefined;
149
+ request: Request | undefined;
150
+ email: AgentEmail | undefined;
151
+ };
152
+ /**
153
+ * Base class for creating Agent implementations
154
+ * @template Env Environment type containing bindings
155
+ * @template State State type to store within the Agent
156
+ */
157
+ declare class Agent<Env = typeof env, State = unknown> extends Server<Env> {
158
+ private _state;
159
+ private _ParentClass;
160
+ mcp: MCPClientManager;
161
+ /**
162
+ * Initial state for the Agent
163
+ * Override to provide default state values
164
+ */
165
+ initialState: State;
166
+ /**
167
+ * Current state of the Agent
168
+ */
169
+ get state(): State;
170
+ /**
171
+ * Agent configuration options
172
+ */
173
+ static options: {
174
+ /** Whether the Agent should hibernate when inactive */
175
+ hibernate: boolean;
176
+ };
177
+ /**
178
+ * The observability implementation to use for the Agent
179
+ */
180
+ observability?: Observability;
181
+ /**
182
+ * Execute SQL queries against the Agent's database
183
+ * @template T Type of the returned rows
184
+ * @param strings SQL query template strings
185
+ * @param values Values to be inserted into the query
186
+ * @returns Array of query results
187
+ */
188
+ sql<T = Record<string, string | number | boolean | null>>(
189
+ strings: TemplateStringsArray,
190
+ ...values: (string | number | boolean | null)[]
191
+ ): T[];
192
+ constructor(ctx: AgentContext, env: Env);
193
+ private _setStateInternal;
194
+ /**
195
+ * Update the Agent's state
196
+ * @param state New state to set
197
+ */
198
+ setState(state: State): void;
199
+ /**
200
+ * Called when the Agent's state is updated
201
+ * @param state Updated state
202
+ * @param source Source of the state update ("server" or a client connection)
203
+ */
204
+ onStateUpdate(state: State | undefined, source: Connection | "server"): void;
205
+ /**
206
+ * Called when the Agent receives an email via routeAgentEmail()
207
+ * Override this method to handle incoming emails
208
+ * @param email Email message to process
209
+ */
210
+ _onEmail(email: AgentEmail): Promise<void>;
211
+ /**
212
+ * Reply to an email
213
+ * @param email The email to reply to
214
+ * @param options Options for the reply
215
+ * @returns void
216
+ */
217
+ replyToEmail(
218
+ email: AgentEmail,
219
+ options: {
220
+ fromName: string;
221
+ subject?: string | undefined;
222
+ body: string;
223
+ contentType?: string;
224
+ headers?: Record<string, string>;
225
+ }
226
+ ): Promise<void>;
227
+ private _tryCatch;
228
+ /**
229
+ * Automatically wrap custom methods with agent context
230
+ * This ensures getCurrentAgent() works in all custom methods without decorators
231
+ */
232
+ private _autoWrapCustomMethods;
233
+ onError(connection: Connection, error: unknown): void | Promise<void>;
234
+ onError(error: unknown): void | Promise<void>;
235
+ /**
236
+ * Render content (not implemented in base class)
237
+ */
238
+ render(): void;
239
+ /**
240
+ * Queue a task to be executed in the future
241
+ * @param payload Payload to pass to the callback
242
+ * @param callback Name of the method to call
243
+ * @returns The ID of the queued task
244
+ */
245
+ queue<T = unknown>(callback: keyof this, payload: T): Promise<string>;
246
+ private _flushingQueue;
247
+ private _flushQueue;
248
+ /**
249
+ * Dequeue a task by ID
250
+ * @param id ID of the task to dequeue
251
+ */
252
+ dequeue(id: string): Promise<void>;
253
+ /**
254
+ * Dequeue all tasks
255
+ */
256
+ dequeueAll(): Promise<void>;
257
+ /**
258
+ * Dequeue all tasks by callback
259
+ * @param callback Name of the callback to dequeue
260
+ */
261
+ dequeueAllByCallback(callback: string): Promise<void>;
262
+ /**
263
+ * Get a queued task by ID
264
+ * @param id ID of the task to get
265
+ * @returns The task or undefined if not found
266
+ */
267
+ getQueue(id: string): Promise<QueueItem<string> | undefined>;
268
+ /**
269
+ * Get all queues by key and value
270
+ * @param key Key to filter by
271
+ * @param value Value to filter by
272
+ * @returns Array of matching QueueItem objects
273
+ */
274
+ getQueues(key: string, value: string): Promise<QueueItem<string>[]>;
275
+ /**
276
+ * Schedule a task to be executed in the future
277
+ * @template T Type of the payload data
278
+ * @param when When to execute the task (Date, seconds delay, or cron expression)
279
+ * @param callback Name of the method to call
280
+ * @param payload Data to pass to the callback
281
+ * @returns Schedule object representing the scheduled task
282
+ */
283
+ schedule<T = string>(
284
+ when: Date | string | number,
285
+ callback: keyof this,
286
+ payload?: T
287
+ ): Promise<Schedule<T>>;
288
+ /**
289
+ * Get a scheduled task by ID
290
+ * @template T Type of the payload data
291
+ * @param id ID of the scheduled task
292
+ * @returns The Schedule object or undefined if not found
293
+ */
294
+ getSchedule<T = string>(id: string): Promise<Schedule<T> | undefined>;
295
+ /**
296
+ * Get scheduled tasks matching the given criteria
297
+ * @template T Type of the payload data
298
+ * @param criteria Criteria to filter schedules
299
+ * @returns Array of matching Schedule objects
300
+ */
301
+ getSchedules<T = string>(criteria?: {
302
+ id?: string;
303
+ type?: "scheduled" | "delayed" | "cron";
304
+ timeRange?: {
305
+ start?: Date;
306
+ end?: Date;
307
+ };
308
+ }): Schedule<T>[];
309
+ /**
310
+ * Cancel a scheduled task
311
+ * @param id ID of the task to cancel
312
+ * @returns true if the task was cancelled, false otherwise
313
+ */
314
+ cancelSchedule(id: string): Promise<boolean>;
315
+ private _scheduleNextAlarm;
316
+ /**
317
+ * Method called when an alarm fires.
318
+ * Executes any scheduled tasks that are due.
319
+ *
320
+ * @remarks
321
+ * To schedule a task, please use the `this.schedule` method instead.
322
+ * See {@link https://developers.cloudflare.com/agents/api-reference/schedule-tasks/}
323
+ */
324
+ readonly alarm: () => Promise<void>;
325
+ /**
326
+ * Destroy the Agent, removing all state and scheduled tasks
327
+ */
328
+ destroy(): Promise<void>;
329
+ /**
330
+ * Get all methods marked as callable on this Agent
331
+ * @returns A map of method names to their metadata
332
+ */
333
+ private _isCallable;
334
+ /**
335
+ * Connect to a new MCP Server
336
+ *
337
+ * @param url MCP Server SSE URL
338
+ * @param callbackHost Base host for the agent, used for the redirect URI.
339
+ * @param agentsPrefix agents routing prefix if not using `agents`
340
+ * @param options MCP client and transport (header) options
341
+ * @returns authUrl
342
+ */
343
+ addMcpServer(
344
+ serverName: string,
345
+ url: string,
346
+ callbackHost: string,
347
+ agentsPrefix?: string,
348
+ options?: {
349
+ client?: ConstructorParameters<typeof Client>[1];
350
+ transport?: {
351
+ headers: HeadersInit;
352
+ };
353
+ }
354
+ ): Promise<{
355
+ id: string;
356
+ authUrl: string | undefined;
357
+ }>;
358
+ _connectToMcpServerInternal(
359
+ _serverName: string,
360
+ url: string,
361
+ callbackUrl: string,
362
+ options?: {
363
+ client?: ConstructorParameters<typeof Client>[1];
364
+ /**
365
+ * We don't expose the normal set of transport options because:
366
+ * 1) we can't serialize things like the auth provider or a fetch function into the DB for reconnection purposes
367
+ * 2) We probably want these options to be agnostic to the transport type (SSE vs Streamable)
368
+ *
369
+ * This has the limitation that you can't override fetch, but I think headers should handle nearly all cases needed (i.e. non-standard bearer auth).
370
+ */
371
+ transport?: {
372
+ headers?: HeadersInit;
373
+ };
374
+ },
375
+ reconnect?: {
376
+ id: string;
377
+ oauthClientId?: string;
378
+ }
379
+ ): Promise<{
380
+ id: string;
381
+ authUrl: string | undefined;
382
+ clientId: string | undefined;
383
+ }>;
384
+ removeMcpServer(id: string): Promise<void>;
385
+ getMcpServers(): MCPServersState;
386
+ }
387
+ /**
388
+ * Namespace for creating Agent instances
389
+ * @template Agentic Type of the Agent class
390
+ */
391
+ type AgentNamespace<Agentic extends Agent<unknown>> =
392
+ DurableObjectNamespace<Agentic>;
393
+ /**
394
+ * Agent's durable context
395
+ */
396
+ type AgentContext = DurableObjectState;
397
+ /**
398
+ * Configuration options for Agent routing
399
+ */
400
+ type AgentOptions<Env> = PartyServerOptions<Env> & {
401
+ /**
402
+ * Whether to enable CORS for the Agent
403
+ */
404
+ cors?: boolean | HeadersInit | undefined;
405
+ };
406
+ /**
407
+ * Route a request to the appropriate Agent
408
+ * @param request Request to route
409
+ * @param env Environment containing Agent bindings
410
+ * @param options Routing options
411
+ * @returns Response from the Agent or undefined if no route matched
412
+ */
413
+ declare function routeAgentRequest<Env>(
414
+ request: Request,
415
+ env: Env,
416
+ options?: AgentOptions<Env>
417
+ ): Promise<Response | null>;
418
+ type EmailResolver<Env> = (
419
+ email: ForwardableEmailMessage,
420
+ env: Env
421
+ ) => Promise<{
422
+ agentName: string;
423
+ agentId: string;
424
+ } | null>;
425
+ /**
426
+ * Create a resolver that uses the message-id header to determine the agent to route the email to
427
+ * @returns A function that resolves the agent to route the email to
428
+ */
429
+ declare function createHeaderBasedEmailResolver<Env>(): EmailResolver<Env>;
430
+ /**
431
+ * Create a resolver that uses the email address to determine the agent to route the email to
432
+ * @param defaultAgentName The default agent name to use if the email address does not contain a sub-address
433
+ * @returns A function that resolves the agent to route the email to
434
+ */
435
+ declare function createAddressBasedEmailResolver<Env>(
436
+ defaultAgentName: string
437
+ ): EmailResolver<Env>;
438
+ /**
439
+ * Create a resolver that uses the agentName and agentId to determine the agent to route the email to
440
+ * @param agentName The name of the agent to route the email to
441
+ * @param agentId The id of the agent to route the email to
442
+ * @returns A function that resolves the agent to route the email to
443
+ */
444
+ declare function createCatchAllEmailResolver<Env>(
445
+ agentName: string,
446
+ agentId: string
447
+ ): EmailResolver<Env>;
448
+ type EmailRoutingOptions<Env> = AgentOptions<Env> & {
449
+ resolver: EmailResolver<Env>;
450
+ };
451
+ /**
452
+ * Route an email to the appropriate Agent
453
+ * @param email The email to route
454
+ * @param env The environment containing the Agent bindings
455
+ * @param options The options for routing the email
456
+ * @returns A promise that resolves when the email has been routed
457
+ */
458
+ declare function routeAgentEmail<Env>(
459
+ email: ForwardableEmailMessage,
460
+ env: Env,
461
+ options: EmailRoutingOptions<Env>
462
+ ): Promise<void>;
463
+ type AgentEmail = {
464
+ from: string;
465
+ to: string;
466
+ getRaw: () => Promise<Uint8Array>;
467
+ headers: Headers;
468
+ rawSize: number;
469
+ setReject: (reason: string) => void;
470
+ forward: (rcptTo: string, headers?: Headers) => Promise<void>;
471
+ reply: (options: { from: string; to: string; raw: string }) => Promise<void>;
472
+ };
473
+ type EmailSendOptions = {
474
+ to: string;
475
+ subject: string;
476
+ body: string;
477
+ contentType?: string;
478
+ headers?: Record<string, string>;
479
+ includeRoutingHeaders?: boolean;
480
+ agentName?: string;
481
+ agentId?: string;
482
+ domain?: string;
483
+ };
484
+ /**
485
+ * Get or create an Agent by name
486
+ * @template Env Environment type containing bindings
487
+ * @template T Type of the Agent class
488
+ * @param namespace Agent namespace
489
+ * @param name Name of the Agent instance
490
+ * @param options Options for Agent creation
491
+ * @returns Promise resolving to an Agent instance stub
492
+ */
493
+ declare function getAgentByName<Env, T extends Agent<Env>>(
494
+ namespace: AgentNamespace<T>,
495
+ name: string,
496
+ options?: {
497
+ jurisdiction?: DurableObjectJurisdiction;
498
+ locationHint?: DurableObjectLocationHint;
499
+ }
500
+ ): Promise<DurableObjectStub<T>>;
501
+ /**
502
+ * A wrapper for streaming responses in callable methods
503
+ */
504
+ declare class StreamingResponse {
505
+ private _connection;
506
+ private _id;
507
+ private _closed;
508
+ constructor(connection: Connection, id: string);
509
+ /**
510
+ * Send a chunk of data to the client
511
+ * @param chunk The data to send
512
+ */
513
+ send(chunk: unknown): void;
514
+ /**
515
+ * End the stream and send the final chunk (if any)
516
+ * @param finalChunk Optional final chunk of data to send
517
+ */
518
+ end(finalChunk?: unknown): void;
519
+ }
520
+
521
+ export {
522
+ Agent,
523
+ type AgentContext,
524
+ type AgentEmail,
525
+ type AgentNamespace,
526
+ type AgentOptions,
527
+ type CallableMetadata,
528
+ type EmailResolver,
529
+ type EmailRoutingOptions,
530
+ type EmailSendOptions,
531
+ type MCPServer,
532
+ type MCPServerMessage,
533
+ type MCPServersState,
534
+ type QueueItem,
535
+ type RPCRequest,
536
+ type RPCResponse,
537
+ type Schedule,
538
+ type StateUpdateMessage,
539
+ StreamingResponse,
540
+ createAddressBasedEmailResolver,
541
+ createCatchAllEmailResolver,
542
+ createHeaderBasedEmailResolver,
543
+ getAgentByName,
544
+ getCurrentAgent,
545
+ routeAgentEmail,
546
+ routeAgentRequest,
547
+ unstable_callable
548
+ };
package/dist/index.js CHANGED
@@ -9,10 +9,11 @@ import {
9
9
  routeAgentEmail,
10
10
  routeAgentRequest,
11
11
  unstable_callable
12
- } from "./chunk-JXN5WZFQ.js";
13
- import "./chunk-HY7ZLHJB.js";
12
+ } from "./chunk-EGCWEPQL.js";
13
+ import "./chunk-DS7BJNPH.js";
14
14
  import "./chunk-PVQZBKN7.js";
15
- import "./chunk-KUH345EY.js";
15
+ import "./chunk-QEVM4BVL.js";
16
+ import "./chunk-AVYJQSLW.js";
16
17
  export {
17
18
  Agent,
18
19
  StreamingResponse,
@@ -3,7 +3,7 @@ import '@modelcontextprotocol/sdk/client/index.js';
3
3
  import '@modelcontextprotocol/sdk/shared/protocol.js';
4
4
  import '@modelcontextprotocol/sdk/types.js';
5
5
  import 'ai';
6
- export { M as MCPClientManager, g as getNamespacedData } from '../client-DgyzBU_8.js';
6
+ export { M as MCPClientManager, g as getNamespacedData } from '../client-BAqDHqAV.js';
7
7
  import '@modelcontextprotocol/sdk/client/sse.js';
8
8
  import '@modelcontextprotocol/sdk/client/streamableHttp.js';
9
9
  import './do-oauth-client-provider.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MCPClientManager,
3
3
  getNamespacedData
4
- } from "../chunk-HY7ZLHJB.js";
4
+ } from "../chunk-DS7BJNPH.js";
5
5
  export {
6
6
  MCPClientManager,
7
7
  getNamespacedData
@@ -1,5 +1,5 @@
1
- import { M as MCPClientManager } from '../client-DgyzBU_8.js';
2
- export { S as SSEEdgeClientTransport, a as StreamableHTTPEdgeClientTransport } from '../client-DgyzBU_8.js';
1
+ import { M as MCPClientManager } from '../client-BAqDHqAV.js';
2
+ export { S as SSEEdgeClientTransport, a as StreamableHTTPEdgeClientTransport } from '../client-BAqDHqAV.js';
3
3
  import { DurableObject } from 'cloudflare:workers';
4
4
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
5
5
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
package/dist/mcp/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  Agent
3
- } from "../chunk-JXN5WZFQ.js";
3
+ } from "../chunk-EGCWEPQL.js";
4
4
  import {
5
5
  SSEEdgeClientTransport,
6
6
  StreamableHTTPEdgeClientTransport
7
- } from "../chunk-HY7ZLHJB.js";
7
+ } from "../chunk-DS7BJNPH.js";
8
8
  import "../chunk-PVQZBKN7.js";
9
- import "../chunk-KUH345EY.js";
9
+ import "../chunk-QEVM4BVL.js";
10
+ import "../chunk-AVYJQSLW.js";
10
11
 
11
12
  // src/mcp/index.ts
12
13
  import { DurableObject } from "cloudflare:workers";