agents 0.0.0-6e0420c → 0.0.0-6e2b337
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-chat-agent.d.ts +10 -10
- package/dist/ai-chat-agent.js +7 -23
- package/dist/ai-chat-agent.js.map +1 -1
- package/dist/{ai-chat-v5-migration-gdyLiTd8.js → ai-chat-v5-migration-DBHGW4Hv.js} +2 -2
- package/dist/{ai-chat-v5-migration-gdyLiTd8.js.map → ai-chat-v5-migration-DBHGW4Hv.js.map} +1 -1
- package/dist/ai-chat-v5-migration.js +1 -1
- package/dist/ai-react.d.ts +10 -10
- package/dist/ai-react.js +10 -9
- package/dist/ai-react.js.map +1 -1
- package/dist/{ai-types-B0GBFDwi.js → ai-types-B3aQaFv3.js} +2 -2
- package/dist/{ai-types-B0GBFDwi.js.map → ai-types-B3aQaFv3.js.map} +1 -1
- package/dist/{ai-types-BWW4umHY.d.ts → ai-types-D5YoPrBZ.d.ts} +2 -2
- package/dist/ai-types.d.ts +4 -4
- package/dist/ai-types.js +1 -1
- package/dist/{client-WbaRgKYN.js → client-9Ld2_lnt.js} +15 -17
- package/dist/client-9Ld2_lnt.js.map +1 -0
- package/dist/{client-C-u-lCFT.d.ts → client-BIwY43Ed.d.ts} +24 -20
- package/dist/{client-zS-OCVJA.js → client-BfiZ3HQd.js} +3 -3
- package/dist/{client-zS-OCVJA.js.map → client-BfiZ3HQd.js.map} +1 -1
- package/dist/{client-CmMi85Sj.d.ts → client-CbWe9FBd.d.ts} +10 -10
- package/dist/client.d.ts +8 -8
- package/dist/client.js +2 -2
- package/dist/codemode/ai.js +5 -5
- package/dist/{do-oauth-client-provider-B2jr6UNq.js → do-oauth-client-provider-CswoD5Lu.js} +2 -2
- package/dist/{do-oauth-client-provider-B2jr6UNq.js.map → do-oauth-client-provider-CswoD5Lu.js.map} +1 -1
- package/dist/{do-oauth-client-provider-CCwGwnrA.d.ts → do-oauth-client-provider-DGc5pP0l.d.ts} +2 -2
- package/dist/{index-DWcUTPtX.d.ts → index-Bp6UrXKf.d.ts} +48 -46
- package/dist/{index-W4JUkafc.d.ts → index-DhJCaDWd.d.ts} +7 -3
- package/dist/index.d.ts +36 -36
- package/dist/index.js +5 -5
- package/dist/mcp/client.d.ts +3 -3
- 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 +1 -1
- package/dist/mcp/index.d.ts +87 -8
- package/dist/mcp/index.js +548 -26
- package/dist/mcp/index.js.map +1 -1
- package/dist/{mcp-BEwaCsxO.d.ts → mcp-Dw5vDrY8.d.ts} +2 -2
- package/dist/observability/index.d.ts +2 -2
- package/dist/observability/index.js +5 -5
- package/dist/{react-B8BT6PYZ.d.ts → react-BRVSan-t.d.ts} +28 -26
- package/dist/react.d.ts +9 -9
- package/dist/react.js +1 -1
- package/dist/{serializable-gtr9YMhp.d.ts → serializable-CymX8ovI.d.ts} +8 -3
- package/dist/serializable.d.ts +5 -5
- package/dist/{src-C9xZ0CrH.js → src-Dz0H9hSU.js} +47 -26
- package/dist/src-Dz0H9hSU.js.map +1 -0
- package/package.json +8 -8
- package/dist/client-WbaRgKYN.js.map +0 -1
- package/dist/src-C9xZ0CrH.js.map +0 -1
- package/src/index.ts +0 -2031
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
TransportType
|
|
5
|
-
} from "./client-
|
|
6
|
-
import { Observability } from "./index-
|
|
7
|
-
import { MessageType } from "./ai-types-
|
|
2
|
+
a as MCPConnectionState,
|
|
3
|
+
t as MCPClientManager,
|
|
4
|
+
u as TransportType
|
|
5
|
+
} from "./client-BIwY43Ed.js";
|
|
6
|
+
import { t as Observability } from "./index-DhJCaDWd.js";
|
|
7
|
+
import { n as MessageType } from "./ai-types-D5YoPrBZ.js";
|
|
8
8
|
import {
|
|
9
9
|
Connection,
|
|
10
10
|
Connection as Connection$1,
|
|
@@ -87,9 +87,9 @@ declare function callable(
|
|
|
87
87
|
* @param metadata Optional metadata about the callable method
|
|
88
88
|
*/
|
|
89
89
|
declare const unstable_callable: (metadata?: CallableMetadata) => void;
|
|
90
|
-
type QueueItem<T = string> = {
|
|
90
|
+
type QueueItem<T$1 = string> = {
|
|
91
91
|
id: string;
|
|
92
|
-
payload: T;
|
|
92
|
+
payload: T$1;
|
|
93
93
|
callback: keyof Agent<unknown>;
|
|
94
94
|
created_at: number;
|
|
95
95
|
};
|
|
@@ -97,13 +97,13 @@ type QueueItem<T = string> = {
|
|
|
97
97
|
* Represents a scheduled task within an Agent
|
|
98
98
|
* @template T Type of the payload data
|
|
99
99
|
*/
|
|
100
|
-
type Schedule<T = string> = {
|
|
100
|
+
type Schedule<T$1 = string> = {
|
|
101
101
|
/** Unique identifier for the schedule */
|
|
102
102
|
id: string;
|
|
103
103
|
/** Name of the method to be called */
|
|
104
104
|
callback: string;
|
|
105
105
|
/** Data to be passed to the callback */
|
|
106
|
-
payload: T;
|
|
106
|
+
payload: T$1;
|
|
107
107
|
} & (
|
|
108
108
|
| {
|
|
109
109
|
/** Type of schedule for one-time execution at a specific time */
|
|
@@ -152,9 +152,9 @@ type MCPServer = {
|
|
|
152
152
|
capabilities: ServerCapabilities | null;
|
|
153
153
|
};
|
|
154
154
|
declare function getCurrentAgent<
|
|
155
|
-
T extends Agent<unknown, unknown> = Agent<unknown, unknown>
|
|
155
|
+
T$1 extends Agent<unknown, unknown> = Agent<unknown, unknown>
|
|
156
156
|
>(): {
|
|
157
|
-
agent: T | undefined;
|
|
157
|
+
agent: T$1 | undefined;
|
|
158
158
|
connection: Connection | undefined;
|
|
159
159
|
request: Request | undefined;
|
|
160
160
|
email: AgentEmail | undefined;
|
|
@@ -171,6 +171,7 @@ declare class Agent<
|
|
|
171
171
|
> extends Server<Env, Props> {
|
|
172
172
|
private _state;
|
|
173
173
|
private _disposables;
|
|
174
|
+
private _mcpStateRestored;
|
|
174
175
|
private _ParentClass;
|
|
175
176
|
readonly mcp: MCPClientManager;
|
|
176
177
|
/**
|
|
@@ -346,6 +347,7 @@ declare class Agent<
|
|
|
346
347
|
* @returns A map of method names to their metadata
|
|
347
348
|
*/
|
|
348
349
|
private _isCallable;
|
|
350
|
+
private _ensureMcpStateRestored;
|
|
349
351
|
/**
|
|
350
352
|
* Connect to a new MCP Server
|
|
351
353
|
*
|
|
@@ -492,17 +494,17 @@ type EmailSendOptions = {
|
|
|
492
494
|
*/
|
|
493
495
|
declare function getAgentByName<
|
|
494
496
|
Env,
|
|
495
|
-
T extends Agent<Env>,
|
|
497
|
+
T$1 extends Agent<Env>,
|
|
496
498
|
Props extends Record<string, unknown> = Record<string, unknown>
|
|
497
499
|
>(
|
|
498
|
-
namespace: AgentNamespace<T>,
|
|
500
|
+
namespace: AgentNamespace<T$1>,
|
|
499
501
|
name: string,
|
|
500
502
|
options?: {
|
|
501
503
|
jurisdiction?: DurableObjectJurisdiction;
|
|
502
504
|
locationHint?: DurableObjectLocationHint;
|
|
503
505
|
props?: Props;
|
|
504
506
|
}
|
|
505
|
-
): Promise<DurableObjectStub<T>>;
|
|
507
|
+
): Promise<DurableObjectStub<T$1>>;
|
|
506
508
|
/**
|
|
507
509
|
* A wrapper for streaming responses in callable methods
|
|
508
510
|
*/
|
|
@@ -524,35 +526,35 @@ declare class StreamingResponse {
|
|
|
524
526
|
}
|
|
525
527
|
//#endregion
|
|
526
528
|
export {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
QueueItem,
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
529
|
+
unstable_callable as A,
|
|
530
|
+
createAddressBasedEmailResolver as C,
|
|
531
|
+
getCurrentAgent as D,
|
|
532
|
+
getAgentByName as E,
|
|
533
|
+
routeAgentEmail as O,
|
|
534
|
+
callable as S,
|
|
535
|
+
createHeaderBasedEmailResolver as T,
|
|
536
|
+
RPCResponse as _,
|
|
537
|
+
AgentOptions as a,
|
|
538
|
+
StreamingResponse as b,
|
|
539
|
+
ConnectionContext as c,
|
|
540
|
+
EmailSendOptions as d,
|
|
541
|
+
MCPServer as f,
|
|
542
|
+
RPCRequest as g,
|
|
543
|
+
QueueItem as h,
|
|
544
|
+
AgentNamespace as i,
|
|
545
|
+
routeAgentRequest as k,
|
|
546
|
+
EmailResolver as l,
|
|
547
|
+
MCPServersState as m,
|
|
548
|
+
AgentContext as n,
|
|
549
|
+
CallableMetadata as o,
|
|
550
|
+
MCPServerMessage as p,
|
|
551
|
+
AgentEmail as r,
|
|
552
|
+
Connection$1 as s,
|
|
553
|
+
Agent as t,
|
|
554
|
+
EmailRoutingOptions as u,
|
|
555
|
+
Schedule as v,
|
|
556
|
+
createCatchAllEmailResolver as w,
|
|
557
|
+
WSMessage as x,
|
|
558
|
+
StateUpdateMessage as y
|
|
557
559
|
};
|
|
558
|
-
//# sourceMappingURL=index-
|
|
560
|
+
//# sourceMappingURL=index-Bp6UrXKf.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseEvent, MCPObservabilityEvent } from "./mcp-
|
|
1
|
+
import { n as BaseEvent, t as MCPObservabilityEvent } from "./mcp-Dw5vDrY8.js";
|
|
2
2
|
|
|
3
3
|
//#region src/observability/agent.d.ts
|
|
4
4
|
|
|
@@ -50,5 +50,9 @@ interface Observability {
|
|
|
50
50
|
*/
|
|
51
51
|
declare const genericObservability: Observability;
|
|
52
52
|
//#endregion
|
|
53
|
-
export {
|
|
54
|
-
|
|
53
|
+
export {
|
|
54
|
+
ObservabilityEvent as n,
|
|
55
|
+
genericObservability as r,
|
|
56
|
+
Observability as t
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=index-DhJCaDWd.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { TransportType } from "./client-
|
|
2
|
-
import "./mcp-
|
|
3
|
-
import "./do-oauth-client-provider-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./ai-types-
|
|
1
|
+
import { u as TransportType } from "./client-BIwY43Ed.js";
|
|
2
|
+
import "./mcp-Dw5vDrY8.js";
|
|
3
|
+
import "./do-oauth-client-provider-DGc5pP0l.js";
|
|
4
|
+
import "./index-DhJCaDWd.js";
|
|
5
|
+
import "./ai-types-D5YoPrBZ.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
QueueItem,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./index-
|
|
7
|
+
A as unstable_callable,
|
|
8
|
+
C as createAddressBasedEmailResolver,
|
|
9
|
+
D as getCurrentAgent,
|
|
10
|
+
E as getAgentByName,
|
|
11
|
+
O as routeAgentEmail,
|
|
12
|
+
S as callable,
|
|
13
|
+
T as createHeaderBasedEmailResolver,
|
|
14
|
+
_ as RPCResponse,
|
|
15
|
+
a as AgentOptions,
|
|
16
|
+
b as StreamingResponse,
|
|
17
|
+
c as ConnectionContext,
|
|
18
|
+
d as EmailSendOptions,
|
|
19
|
+
f as MCPServer,
|
|
20
|
+
g as RPCRequest,
|
|
21
|
+
h as QueueItem,
|
|
22
|
+
i as AgentNamespace,
|
|
23
|
+
k as routeAgentRequest,
|
|
24
|
+
l as EmailResolver,
|
|
25
|
+
m as MCPServersState,
|
|
26
|
+
n as AgentContext,
|
|
27
|
+
o as CallableMetadata,
|
|
28
|
+
p as MCPServerMessage,
|
|
29
|
+
r as AgentEmail,
|
|
30
|
+
s as Connection,
|
|
31
|
+
t as Agent,
|
|
32
|
+
u as EmailRoutingOptions,
|
|
33
|
+
v as Schedule,
|
|
34
|
+
w as createCatchAllEmailResolver,
|
|
35
|
+
x as WSMessage,
|
|
36
|
+
y as StateUpdateMessage
|
|
37
|
+
} from "./index-Bp6UrXKf.js";
|
|
38
38
|
export {
|
|
39
39
|
Agent,
|
|
40
40
|
AgentContext,
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./client-
|
|
4
|
-
import "./do-oauth-client-provider-
|
|
5
|
-
import {
|
|
1
|
+
import "./ai-types-B3aQaFv3.js";
|
|
2
|
+
import "./client-BfiZ3HQd.js";
|
|
3
|
+
import "./client-9Ld2_lnt.js";
|
|
4
|
+
import "./do-oauth-client-provider-CswoD5Lu.js";
|
|
5
|
+
import { a as createCatchAllEmailResolver, c as getCurrentAgent, d as unstable_callable, i as createAddressBasedEmailResolver, l as routeAgentEmail, n as StreamingResponse, o as createHeaderBasedEmailResolver, r as callable, s as getAgentByName, t as Agent, u as routeAgentRequest } from "./src-Dz0H9hSU.js";
|
|
6
6
|
|
|
7
7
|
export { Agent, StreamingResponse, callable, createAddressBasedEmailResolver, createCatchAllEmailResolver, createHeaderBasedEmailResolver, getAgentByName, getCurrentAgent, routeAgentEmail, routeAgentRequest, unstable_callable };
|
package/dist/mcp/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../mcp-
|
|
3
|
-
import "../do-oauth-client-provider-
|
|
1
|
+
import { i as getNamespacedData, n as MCPClientOAuthCallbackConfig, r as MCPClientOAuthResult, t as MCPClientManager } from "../client-BIwY43Ed.js";
|
|
2
|
+
import "../mcp-Dw5vDrY8.js";
|
|
3
|
+
import "../do-oauth-client-provider-DGc5pP0l.js";
|
|
4
4
|
export { MCPClientManager, MCPClientOAuthCallbackConfig, MCPClientOAuthResult, getNamespacedData };
|
package/dist/mcp/client.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as DurableObjectOAuthClientProvider, t as AgentsOAuthProvider } from "../do-oauth-client-provider-DGc5pP0l.js";
|
|
2
2
|
export { AgentsOAuthProvider, DurableObjectOAuthClientProvider };
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,13 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../mcp-
|
|
3
|
-
import "../do-oauth-client-provider-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../ai-types-
|
|
6
|
-
import {
|
|
1
|
+
import { c as MaybePromise, d as StreamableHTTPEdgeClientTransport, f as SSEEdgeClientTransport, l as ServeOptions, n as MCPClientOAuthCallbackConfig, o as BaseTransportType, r as MCPClientOAuthResult, s as CORSOptions } from "../client-BIwY43Ed.js";
|
|
2
|
+
import "../mcp-Dw5vDrY8.js";
|
|
3
|
+
import "../do-oauth-client-provider-DGc5pP0l.js";
|
|
4
|
+
import "../index-DhJCaDWd.js";
|
|
5
|
+
import "../ai-types-D5YoPrBZ.js";
|
|
6
|
+
import { c as ConnectionContext, s as Connection, t as Agent } from "../index-Bp6UrXKf.js";
|
|
7
7
|
import { ElicitRequest, ElicitRequestSchema, ElicitResult, ElicitResult as ElicitResult$1, JSONRPCMessage } from "@modelcontextprotocol/sdk/types.js";
|
|
8
8
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
9
9
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
10
|
+
import { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
10
11
|
|
|
12
|
+
//#region src/mcp/worker-transport.d.ts
|
|
13
|
+
interface WorkerTransportOptions {
|
|
14
|
+
sessionIdGenerator?: () => string;
|
|
15
|
+
enableJsonResponse?: boolean;
|
|
16
|
+
onsessioninitialized?: (sessionId: string) => void;
|
|
17
|
+
corsOptions?: CORSOptions;
|
|
18
|
+
}
|
|
19
|
+
declare class WorkerTransport implements Transport {
|
|
20
|
+
private started;
|
|
21
|
+
private initialized;
|
|
22
|
+
private sessionIdGenerator?;
|
|
23
|
+
private enableJsonResponse;
|
|
24
|
+
private onsessioninitialized?;
|
|
25
|
+
private standaloneSseStreamId;
|
|
26
|
+
private streamMapping;
|
|
27
|
+
private requestToStreamMapping;
|
|
28
|
+
private requestResponseMap;
|
|
29
|
+
private corsOptions?;
|
|
30
|
+
private protocolVersion?;
|
|
31
|
+
sessionId?: string;
|
|
32
|
+
onclose?: () => void;
|
|
33
|
+
onerror?: (error: Error) => void;
|
|
34
|
+
onmessage?: (message: JSONRPCMessage) => void;
|
|
35
|
+
constructor(options?: WorkerTransportOptions);
|
|
36
|
+
start(): Promise<void>;
|
|
37
|
+
private validateProtocolVersion;
|
|
38
|
+
private getHeaders;
|
|
39
|
+
handleRequest(request: Request, parsedBody?: unknown): Promise<Response>;
|
|
40
|
+
private handleGetRequest;
|
|
41
|
+
private handlePostRequest;
|
|
42
|
+
private handleDeleteRequest;
|
|
43
|
+
private handleOptionsRequest;
|
|
44
|
+
private handleUnsupportedRequest;
|
|
45
|
+
private validateSession;
|
|
46
|
+
close(): Promise<void>;
|
|
47
|
+
send(message: JSONRPCMessage): Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/mcp/handler.d.ts
|
|
51
|
+
interface CreateMcpHandlerOptions extends WorkerTransportOptions {
|
|
52
|
+
/**
|
|
53
|
+
* The route path that this MCP handler should respond to.
|
|
54
|
+
* If specified, the handler will only process requests that match this route.
|
|
55
|
+
* @default "/mcp"
|
|
56
|
+
*/
|
|
57
|
+
route?: string;
|
|
58
|
+
/**
|
|
59
|
+
* CORS configuration options for handling cross-origin requests.
|
|
60
|
+
* These options are passed to the WorkerTransport which handles adding
|
|
61
|
+
* CORS headers to all responses.
|
|
62
|
+
*
|
|
63
|
+
* Default values are:
|
|
64
|
+
* - origin: "*"
|
|
65
|
+
* - headers: "Content-Type, Accept, Authorization, mcp-session-id, MCP-Protocol-Version"
|
|
66
|
+
* - methods: "GET, POST, DELETE, OPTIONS"
|
|
67
|
+
* - exposeHeaders: "mcp-session-id"
|
|
68
|
+
* - maxAge: 86400
|
|
69
|
+
*
|
|
70
|
+
* Provided options will overwrite the defaults.
|
|
71
|
+
*/
|
|
72
|
+
corsOptions?: CORSOptions;
|
|
73
|
+
}
|
|
74
|
+
type OAuthExecutionContext = ExecutionContext & {
|
|
75
|
+
props?: Record<string, unknown>;
|
|
76
|
+
};
|
|
77
|
+
declare function createMcpHandler(server: McpServer | Server, options?: CreateMcpHandlerOptions): (request: Request, env: unknown, ctx: ExecutionContext) => Promise<Response>;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated This has been renamed to createMcpHandler, and experimental_createMcpHandler will be removed in the next major version
|
|
80
|
+
*/
|
|
81
|
+
declare function experimental_createMcpHandler(server: McpServer | Server, options?: CreateMcpHandlerOptions): (request: Request, env: unknown, ctx: ExecutionContext) => Promise<Response>;
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/mcp/auth-context.d.ts
|
|
84
|
+
interface McpAuthContext {
|
|
85
|
+
props: Record<string, unknown>;
|
|
86
|
+
}
|
|
87
|
+
declare function getMcpAuthContext(): McpAuthContext | undefined;
|
|
88
|
+
//#endregion
|
|
11
89
|
//#region src/mcp/index.d.ts
|
|
12
90
|
declare abstract class McpAgent<Env = unknown, State = unknown, Props extends Record<string, unknown> = Record<string, unknown>> extends Agent<Env, State, Props> {
|
|
13
91
|
private _transport?;
|
|
@@ -56,7 +134,8 @@ declare abstract class McpAgent<Env = unknown, State = unknown, Props extends Re
|
|
|
56
134
|
static serve(path: string, {
|
|
57
135
|
binding,
|
|
58
136
|
corsOptions,
|
|
59
|
-
transport
|
|
137
|
+
transport,
|
|
138
|
+
jurisdiction
|
|
60
139
|
}?: ServeOptions): {
|
|
61
140
|
fetch<Env>(this: void, request: Request, env: Env, ctx: ExecutionContext): Promise<Response>;
|
|
62
141
|
};
|
|
@@ -71,5 +150,5 @@ declare abstract class McpAgent<Env = unknown, State = unknown, Props extends Re
|
|
|
71
150
|
};
|
|
72
151
|
}
|
|
73
152
|
//#endregion
|
|
74
|
-
export { type ElicitRequest, ElicitRequestSchema, type ElicitResult, type MCPClientOAuthCallbackConfig, type MCPClientOAuthResult, McpAgent, SSEEdgeClientTransport, StreamableHTTPEdgeClientTransport };
|
|
153
|
+
export { type CreateMcpHandlerOptions, type ElicitRequest, ElicitRequestSchema, type ElicitResult, type MCPClientOAuthCallbackConfig, type MCPClientOAuthResult, McpAgent, type McpAuthContext, type OAuthExecutionContext, SSEEdgeClientTransport, StreamableHTTPEdgeClientTransport, WorkerTransport, type WorkerTransportOptions, createMcpHandler, experimental_createMcpHandler, getMcpAuthContext };
|
|
75
154
|
//# sourceMappingURL=index.d.ts.map
|