@modelcontextprotocol/sdk 1.23.0 → 1.24.0
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 +84 -1507
- package/dist/cjs/client/auth-extensions.d.ts +178 -0
- package/dist/cjs/client/auth-extensions.d.ts.map +1 -0
- package/dist/cjs/client/auth-extensions.js +300 -0
- package/dist/cjs/client/auth-extensions.js.map +1 -0
- package/dist/cjs/client/auth.d.ts +90 -2
- package/dist/cjs/client/auth.d.ts.map +1 -1
- package/dist/cjs/client/auth.js +131 -75
- package/dist/cjs/client/auth.js.map +1 -1
- package/dist/cjs/client/index.d.ts +122 -14
- package/dist/cjs/client/index.d.ts.map +1 -1
- package/dist/cjs/client/index.js +125 -3
- package/dist/cjs/client/index.js.map +1 -1
- package/dist/cjs/client/sse.d.ts.map +1 -1
- package/dist/cjs/client/sse.js +6 -2
- package/dist/cjs/client/sse.js.map +1 -1
- package/dist/cjs/client/stdio.d.ts +0 -1
- package/dist/cjs/client/stdio.d.ts.map +1 -1
- package/dist/cjs/client/stdio.js +36 -11
- package/dist/cjs/client/stdio.js.map +1 -1
- package/dist/cjs/client/streamableHttp.d.ts +1 -0
- package/dist/cjs/client/streamableHttp.d.ts.map +1 -1
- package/dist/cjs/client/streamableHttp.js +36 -15
- package/dist/cjs/client/streamableHttp.js.map +1 -1
- package/dist/cjs/examples/client/simpleClientCredentials.d.ts +20 -0
- package/dist/cjs/examples/client/simpleClientCredentials.d.ts.map +1 -0
- package/dist/cjs/examples/client/simpleClientCredentials.js +70 -0
- package/dist/cjs/examples/client/simpleClientCredentials.js.map +1 -0
- package/dist/cjs/examples/client/simpleOAuthClient.js +77 -1
- package/dist/cjs/examples/client/simpleOAuthClient.js.map +1 -1
- package/dist/cjs/examples/client/simpleStreamableHttp.js +74 -3
- package/dist/cjs/examples/client/simpleStreamableHttp.js.map +1 -1
- package/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts +10 -0
- package/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts.map +1 -0
- package/dist/cjs/examples/client/simpleTaskInteractiveClient.js +158 -0
- package/dist/cjs/examples/client/simpleTaskInteractiveClient.js.map +1 -0
- package/dist/cjs/examples/server/elicitationFormExample.js +2 -12
- package/dist/cjs/examples/server/elicitationFormExample.js.map +1 -1
- package/dist/cjs/examples/server/elicitationUrlExample.js +4 -3
- package/dist/cjs/examples/server/elicitationUrlExample.js.map +1 -1
- package/dist/cjs/examples/server/jsonResponseStreamableHttp.js +2 -12
- package/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map +1 -1
- package/dist/cjs/examples/server/simpleSseServer.js +2 -6
- package/dist/cjs/examples/server/simpleSseServer.js.map +1 -1
- package/dist/cjs/examples/server/simpleStatelessStreamableHttp.js +2 -12
- package/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map +1 -1
- package/dist/cjs/examples/server/simpleStreamableHttp.js +61 -21
- package/dist/cjs/examples/server/simpleStreamableHttp.js.map +1 -1
- package/dist/cjs/examples/server/simpleTaskInteractive.d.ts +12 -0
- package/dist/cjs/examples/server/simpleTaskInteractive.d.ts.map +1 -0
- package/dist/cjs/examples/server/simpleTaskInteractive.js +603 -0
- package/dist/cjs/examples/server/simpleTaskInteractive.js.map +1 -0
- package/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +2 -12
- package/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -1
- package/dist/cjs/examples/server/ssePollingExample.js +11 -25
- package/dist/cjs/examples/server/ssePollingExample.js.map +1 -1
- package/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +2 -6
- package/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
- package/dist/cjs/examples/server/toolWithSampleServer.js +7 -5
- package/dist/cjs/examples/server/toolWithSampleServer.js.map +1 -1
- package/dist/cjs/experimental/index.d.ts +13 -0
- package/dist/cjs/experimental/index.d.ts.map +1 -0
- package/dist/cjs/experimental/index.js +29 -0
- package/dist/cjs/experimental/index.js.map +1 -0
- package/dist/cjs/experimental/tasks/client.d.ts +121 -0
- package/dist/cjs/experimental/tasks/client.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/client.js +189 -0
- package/dist/cjs/experimental/tasks/client.js.map +1 -0
- package/dist/cjs/experimental/tasks/helpers.d.ts +47 -0
- package/dist/cjs/experimental/tasks/helpers.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/helpers.js +70 -0
- package/dist/cjs/experimental/tasks/helpers.js.map +1 -0
- package/dist/cjs/experimental/tasks/index.d.ts +16 -0
- package/dist/cjs/experimental/tasks/index.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/index.js +39 -0
- package/dist/cjs/experimental/tasks/index.js.map +1 -0
- package/dist/cjs/experimental/tasks/interfaces.d.ts +232 -0
- package/dist/cjs/experimental/tasks/interfaces.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/interfaces.js +19 -0
- package/dist/cjs/experimental/tasks/interfaces.js.map +1 -0
- package/dist/cjs/experimental/tasks/mcp-server.d.ts +77 -0
- package/dist/cjs/experimental/tasks/mcp-server.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/mcp-server.js +36 -0
- package/dist/cjs/experimental/tasks/mcp-server.js.map +1 -0
- package/dist/cjs/experimental/tasks/server.d.ts +83 -0
- package/dist/cjs/experimental/tasks/server.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/server.js +93 -0
- package/dist/cjs/experimental/tasks/server.js.map +1 -0
- package/dist/cjs/experimental/tasks/stores/in-memory.d.ts +94 -0
- package/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/stores/in-memory.js +253 -0
- package/dist/cjs/experimental/tasks/stores/in-memory.js.map +1 -0
- package/dist/cjs/experimental/tasks/types.d.ts +10 -0
- package/dist/cjs/experimental/tasks/types.d.ts.map +1 -0
- package/dist/cjs/experimental/tasks/types.js +28 -0
- package/dist/cjs/experimental/tasks/types.js.map +1 -0
- package/dist/cjs/server/auth/errors.d.ts +7 -0
- package/dist/cjs/server/auth/errors.d.ts.map +1 -1
- package/dist/cjs/server/auth/errors.js +11 -2
- package/dist/cjs/server/auth/errors.js.map +1 -1
- package/dist/cjs/server/auth/handlers/token.d.ts.map +1 -1
- package/dist/cjs/server/auth/handlers/token.js +2 -2
- package/dist/cjs/server/auth/handlers/token.js.map +1 -1
- package/dist/cjs/server/auth/middleware/clientAuth.d.ts.map +1 -1
- package/dist/cjs/server/auth/middleware/clientAuth.js +0 -4
- package/dist/cjs/server/auth/middleware/clientAuth.js.map +1 -1
- package/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +1 -1
- package/dist/cjs/server/auth/providers/proxyProvider.js +8 -4
- package/dist/cjs/server/auth/providers/proxyProvider.js.map +1 -1
- package/dist/cjs/server/auth/router.d.ts.map +1 -1
- package/dist/cjs/server/auth/router.js +7 -1
- package/dist/cjs/server/auth/router.js.map +1 -1
- package/dist/cjs/server/index.d.ts +91 -168
- package/dist/cjs/server/index.d.ts.map +1 -1
- package/dist/cjs/server/index.js +162 -0
- package/dist/cjs/server/index.js.map +1 -1
- package/dist/cjs/server/mcp.d.ts +41 -6
- package/dist/cjs/server/mcp.d.ts.map +1 -1
- package/dist/cjs/server/mcp.js +203 -48
- package/dist/cjs/server/mcp.js.map +1 -1
- package/dist/cjs/server/middleware/hostHeaderValidation.d.ts +32 -0
- package/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map +1 -0
- package/dist/cjs/server/middleware/hostHeaderValidation.js +80 -0
- package/dist/cjs/server/middleware/hostHeaderValidation.js.map +1 -0
- package/dist/cjs/server/sse.d.ts +6 -0
- package/dist/cjs/server/sse.d.ts.map +1 -1
- package/dist/cjs/server/sse.js +3 -3
- package/dist/cjs/server/sse.js.map +1 -1
- package/dist/cjs/server/stdio.d.ts +1 -1
- package/dist/cjs/server/stdio.js +1 -1
- package/dist/cjs/server/streamableHttp.d.ts +11 -0
- package/dist/cjs/server/streamableHttp.d.ts.map +1 -1
- package/dist/cjs/server/streamableHttp.js +30 -7
- package/dist/cjs/server/streamableHttp.js.map +1 -1
- package/dist/cjs/server/zod-compat.d.ts +1 -1
- package/dist/cjs/server/zod-compat.d.ts.map +1 -1
- package/dist/cjs/server/zod-compat.js +2 -2
- package/dist/cjs/server/zod-compat.js.map +1 -1
- package/dist/cjs/shared/auth.d.ts +1 -1
- package/dist/cjs/shared/auth.js +1 -1
- package/dist/cjs/shared/auth.js.map +1 -1
- package/dist/cjs/shared/protocol.d.ts +220 -3
- package/dist/cjs/shared/protocol.d.ts.map +1 -1
- package/dist/cjs/shared/protocol.js +699 -38
- package/dist/cjs/shared/protocol.js.map +1 -1
- package/dist/cjs/shared/responseMessage.d.ts +45 -0
- package/dist/cjs/shared/responseMessage.d.ts.map +1 -0
- package/dist/cjs/shared/responseMessage.js +23 -0
- package/dist/cjs/shared/responseMessage.js.map +1 -0
- package/dist/cjs/shared/transport.d.ts +1 -1
- package/dist/cjs/types.d.ts +2369 -73
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js +310 -18
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/client/auth-extensions.d.ts +178 -0
- package/dist/esm/client/auth-extensions.d.ts.map +1 -0
- package/dist/esm/client/auth-extensions.js +270 -0
- package/dist/esm/client/auth-extensions.js.map +1 -0
- package/dist/esm/client/auth.d.ts +90 -2
- package/dist/esm/client/auth.d.ts.map +1 -1
- package/dist/esm/client/auth.js +129 -75
- package/dist/esm/client/auth.js.map +1 -1
- package/dist/esm/client/index.d.ts +122 -14
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +126 -4
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/sse.d.ts.map +1 -1
- package/dist/esm/client/sse.js +7 -3
- package/dist/esm/client/sse.js.map +1 -1
- package/dist/esm/client/stdio.d.ts +0 -1
- package/dist/esm/client/stdio.d.ts.map +1 -1
- package/dist/esm/client/stdio.js +36 -11
- package/dist/esm/client/stdio.js.map +1 -1
- package/dist/esm/client/streamableHttp.d.ts +1 -0
- package/dist/esm/client/streamableHttp.d.ts.map +1 -1
- package/dist/esm/client/streamableHttp.js +36 -15
- package/dist/esm/client/streamableHttp.js.map +1 -1
- package/dist/esm/examples/client/simpleClientCredentials.d.ts +20 -0
- package/dist/esm/examples/client/simpleClientCredentials.d.ts.map +1 -0
- package/dist/esm/examples/client/simpleClientCredentials.js +68 -0
- package/dist/esm/examples/client/simpleClientCredentials.js.map +1 -0
- package/dist/esm/examples/client/simpleOAuthClient.js +77 -1
- package/dist/esm/examples/client/simpleOAuthClient.js.map +1 -1
- package/dist/esm/examples/client/simpleStreamableHttp.js +75 -4
- package/dist/esm/examples/client/simpleStreamableHttp.js.map +1 -1
- package/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts +10 -0
- package/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts.map +1 -0
- package/dist/esm/examples/client/simpleTaskInteractiveClient.js +156 -0
- package/dist/esm/examples/client/simpleTaskInteractiveClient.js.map +1 -0
- package/dist/esm/examples/server/elicitationFormExample.js +2 -9
- package/dist/esm/examples/server/elicitationFormExample.js.map +1 -1
- package/dist/esm/examples/server/elicitationUrlExample.js +4 -3
- package/dist/esm/examples/server/elicitationUrlExample.js.map +1 -1
- package/dist/esm/examples/server/jsonResponseStreamableHttp.js +2 -9
- package/dist/esm/examples/server/jsonResponseStreamableHttp.js.map +1 -1
- package/dist/esm/examples/server/simpleSseServer.js +2 -3
- package/dist/esm/examples/server/simpleSseServer.js.map +1 -1
- package/dist/esm/examples/server/simpleStatelessStreamableHttp.js +2 -9
- package/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map +1 -1
- package/dist/esm/examples/server/simpleStreamableHttp.js +62 -19
- package/dist/esm/examples/server/simpleStreamableHttp.js.map +1 -1
- package/dist/esm/examples/server/simpleTaskInteractive.d.ts +12 -0
- package/dist/esm/examples/server/simpleTaskInteractive.d.ts.map +1 -0
- package/dist/esm/examples/server/simpleTaskInteractive.js +601 -0
- package/dist/esm/examples/server/simpleTaskInteractive.js.map +1 -0
- package/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +2 -9
- package/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -1
- package/dist/esm/examples/server/ssePollingExample.js +11 -25
- package/dist/esm/examples/server/ssePollingExample.js.map +1 -1
- package/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +2 -3
- package/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
- package/dist/esm/examples/server/toolWithSampleServer.js +7 -5
- package/dist/esm/examples/server/toolWithSampleServer.js.map +1 -1
- package/dist/esm/experimental/index.d.ts +13 -0
- package/dist/esm/experimental/index.d.ts.map +1 -0
- package/dist/esm/experimental/index.js +13 -0
- package/dist/esm/experimental/index.js.map +1 -0
- package/dist/esm/experimental/tasks/client.d.ts +121 -0
- package/dist/esm/experimental/tasks/client.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/client.js +185 -0
- package/dist/esm/experimental/tasks/client.js.map +1 -0
- package/dist/esm/experimental/tasks/helpers.d.ts +47 -0
- package/dist/esm/experimental/tasks/helpers.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/helpers.js +66 -0
- package/dist/esm/experimental/tasks/helpers.js.map +1 -0
- package/dist/esm/experimental/tasks/index.d.ts +16 -0
- package/dist/esm/experimental/tasks/index.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/index.js +20 -0
- package/dist/esm/experimental/tasks/index.js.map +1 -0
- package/dist/esm/experimental/tasks/interfaces.d.ts +232 -0
- package/dist/esm/experimental/tasks/interfaces.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/interfaces.js +16 -0
- package/dist/esm/experimental/tasks/interfaces.js.map +1 -0
- package/dist/esm/experimental/tasks/mcp-server.d.ts +77 -0
- package/dist/esm/experimental/tasks/mcp-server.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/mcp-server.js +32 -0
- package/dist/esm/experimental/tasks/mcp-server.js.map +1 -0
- package/dist/esm/experimental/tasks/server.d.ts +83 -0
- package/dist/esm/experimental/tasks/server.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/server.js +89 -0
- package/dist/esm/experimental/tasks/server.js.map +1 -0
- package/dist/esm/experimental/tasks/stores/in-memory.d.ts +94 -0
- package/dist/esm/experimental/tasks/stores/in-memory.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/stores/in-memory.js +248 -0
- package/dist/esm/experimental/tasks/stores/in-memory.js.map +1 -0
- package/dist/esm/experimental/tasks/types.d.ts +10 -0
- package/dist/esm/experimental/tasks/types.d.ts.map +1 -0
- package/dist/esm/experimental/tasks/types.js +10 -0
- package/dist/esm/experimental/tasks/types.js.map +1 -0
- package/dist/esm/server/auth/errors.d.ts +7 -0
- package/dist/esm/server/auth/errors.d.ts.map +1 -1
- package/dist/esm/server/auth/errors.js +9 -1
- package/dist/esm/server/auth/errors.js.map +1 -1
- package/dist/esm/server/auth/handlers/token.d.ts.map +1 -1
- package/dist/esm/server/auth/handlers/token.js +2 -2
- package/dist/esm/server/auth/handlers/token.js.map +1 -1
- package/dist/esm/server/auth/middleware/clientAuth.d.ts.map +1 -1
- package/dist/esm/server/auth/middleware/clientAuth.js +0 -4
- package/dist/esm/server/auth/middleware/clientAuth.js.map +1 -1
- package/dist/esm/server/auth/providers/proxyProvider.d.ts.map +1 -1
- package/dist/esm/server/auth/providers/proxyProvider.js +8 -4
- package/dist/esm/server/auth/providers/proxyProvider.js.map +1 -1
- package/dist/esm/server/auth/router.d.ts.map +1 -1
- package/dist/esm/server/auth/router.js +7 -1
- package/dist/esm/server/auth/router.js.map +1 -1
- package/dist/esm/server/index.d.ts +91 -168
- package/dist/esm/server/index.d.ts.map +1 -1
- package/dist/esm/server/index.js +159 -1
- package/dist/esm/server/index.js.map +1 -1
- package/dist/esm/server/mcp.d.ts +41 -6
- package/dist/esm/server/mcp.d.ts.map +1 -1
- package/dist/esm/server/mcp.js +203 -48
- package/dist/esm/server/mcp.js.map +1 -1
- package/dist/esm/server/middleware/hostHeaderValidation.d.ts +32 -0
- package/dist/esm/server/middleware/hostHeaderValidation.d.ts.map +1 -0
- package/dist/esm/server/middleware/hostHeaderValidation.js +76 -0
- package/dist/esm/server/middleware/hostHeaderValidation.js.map +1 -0
- package/dist/esm/server/sse.d.ts +6 -0
- package/dist/esm/server/sse.d.ts.map +1 -1
- package/dist/esm/server/sse.js +2 -2
- package/dist/esm/server/sse.js.map +1 -1
- package/dist/esm/server/stdio.d.ts +1 -1
- package/dist/esm/server/stdio.js +1 -1
- package/dist/esm/server/streamableHttp.d.ts +11 -0
- package/dist/esm/server/streamableHttp.d.ts.map +1 -1
- package/dist/esm/server/streamableHttp.js +30 -7
- package/dist/esm/server/streamableHttp.js.map +1 -1
- package/dist/esm/server/zod-compat.d.ts +1 -1
- package/dist/esm/server/zod-compat.d.ts.map +1 -1
- package/dist/esm/server/zod-compat.js +2 -2
- package/dist/esm/server/zod-compat.js.map +1 -1
- package/dist/esm/shared/auth.d.ts +1 -1
- package/dist/esm/shared/auth.js +1 -1
- package/dist/esm/shared/auth.js.map +1 -1
- package/dist/esm/shared/protocol.d.ts +220 -3
- package/dist/esm/shared/protocol.d.ts.map +1 -1
- package/dist/esm/shared/protocol.js +700 -39
- package/dist/esm/shared/protocol.js.map +1 -1
- package/dist/esm/shared/responseMessage.d.ts +45 -0
- package/dist/esm/shared/responseMessage.d.ts.map +1 -0
- package/dist/esm/shared/responseMessage.js +19 -0
- package/dist/esm/shared/responseMessage.js.map +1 -0
- package/dist/esm/shared/transport.d.ts +1 -1
- package/dist/esm/types.d.ts +2369 -73
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +306 -15
- package/dist/esm/types.js.map +1 -1
- package/package.json +12 -1
- package/dist/cjs/shared/zodTestMatrix.d.ts +0 -16
- package/dist/cjs/shared/zodTestMatrix.d.ts.map +0 -1
- package/dist/cjs/shared/zodTestMatrix.js +0 -43
- package/dist/cjs/shared/zodTestMatrix.js.map +0 -1
- package/dist/esm/shared/zodTestMatrix.d.ts +0 -16
- package/dist/esm/shared/zodTestMatrix.d.ts.map +0 -1
- package/dist/esm/shared/zodTestMatrix.js +0 -17
- package/dist/esm/shared/zodTestMatrix.js.map +0 -1
package/dist/cjs/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AuthInfo } from './server/auth/types.js';
|
|
|
3
3
|
export declare const LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
4
4
|
export declare const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
5
5
|
export declare const SUPPORTED_PROTOCOL_VERSIONS: string[];
|
|
6
|
+
export declare const RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
6
7
|
export declare const JSONRPC_VERSION = "2.0";
|
|
7
8
|
/**
|
|
8
9
|
* Utility types
|
|
@@ -18,16 +19,57 @@ export declare const ProgressTokenSchema: z.ZodUnion<readonly [z.ZodString, z.Zo
|
|
|
18
19
|
* An opaque token used to represent a cursor for pagination.
|
|
19
20
|
*/
|
|
20
21
|
export declare const CursorSchema: z.ZodString;
|
|
22
|
+
/**
|
|
23
|
+
* Task creation parameters, used to ask that the server create a task to represent a request.
|
|
24
|
+
*/
|
|
25
|
+
export declare const TaskCreationParamsSchema: z.ZodObject<{
|
|
26
|
+
/**
|
|
27
|
+
* Time in milliseconds to keep task results available after completion.
|
|
28
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
29
|
+
*/
|
|
30
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
31
|
+
/**
|
|
32
|
+
* Time in milliseconds to wait between task status requests.
|
|
33
|
+
*/
|
|
34
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
}, z.core.$loose>;
|
|
36
|
+
/**
|
|
37
|
+
* Task association metadata, used to signal which task a message originated from.
|
|
38
|
+
*/
|
|
39
|
+
export declare const RelatedTaskMetadataSchema: z.ZodObject<{
|
|
40
|
+
taskId: z.ZodString;
|
|
41
|
+
}, z.core.$loose>;
|
|
21
42
|
declare const RequestMetaSchema: z.ZodObject<{
|
|
22
43
|
/**
|
|
23
44
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
24
45
|
*/
|
|
25
46
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
47
|
+
/**
|
|
48
|
+
* If specified, this request is related to the provided task.
|
|
49
|
+
*/
|
|
50
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
51
|
+
taskId: z.ZodString;
|
|
52
|
+
}, z.core.$loose>>;
|
|
26
53
|
}, z.core.$loose>;
|
|
27
54
|
/**
|
|
28
55
|
* Common params for any request.
|
|
29
56
|
*/
|
|
30
57
|
declare const BaseRequestParamsSchema: z.ZodObject<{
|
|
58
|
+
/**
|
|
59
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
60
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
61
|
+
*/
|
|
62
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
/**
|
|
64
|
+
* Time in milliseconds to keep task results available after completion.
|
|
65
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
66
|
+
*/
|
|
67
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
68
|
+
/**
|
|
69
|
+
* Time in milliseconds to wait between task status requests.
|
|
70
|
+
*/
|
|
71
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
31
73
|
/**
|
|
32
74
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
33
75
|
*/
|
|
@@ -36,11 +78,32 @@ declare const BaseRequestParamsSchema: z.ZodObject<{
|
|
|
36
78
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
37
79
|
*/
|
|
38
80
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
81
|
+
/**
|
|
82
|
+
* If specified, this request is related to the provided task.
|
|
83
|
+
*/
|
|
84
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
85
|
+
taskId: z.ZodString;
|
|
86
|
+
}, z.core.$loose>>;
|
|
39
87
|
}, z.core.$loose>>;
|
|
40
88
|
}, z.core.$loose>;
|
|
41
89
|
export declare const RequestSchema: z.ZodObject<{
|
|
42
90
|
method: z.ZodString;
|
|
43
91
|
params: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
/**
|
|
93
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
94
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
95
|
+
*/
|
|
96
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
/**
|
|
98
|
+
* Time in milliseconds to keep task results available after completion.
|
|
99
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
100
|
+
*/
|
|
101
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
102
|
+
/**
|
|
103
|
+
* Time in milliseconds to wait between task status requests.
|
|
104
|
+
*/
|
|
105
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
}, z.core.$loose>>;
|
|
44
107
|
/**
|
|
45
108
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
46
109
|
*/
|
|
@@ -49,6 +112,12 @@ export declare const RequestSchema: z.ZodObject<{
|
|
|
49
112
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
50
113
|
*/
|
|
51
114
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
115
|
+
/**
|
|
116
|
+
* If specified, this request is related to the provided task.
|
|
117
|
+
*/
|
|
118
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
119
|
+
taskId: z.ZodString;
|
|
120
|
+
}, z.core.$loose>>;
|
|
52
121
|
}, z.core.$loose>>;
|
|
53
122
|
}, z.core.$loose>>;
|
|
54
123
|
}, z.core.$strip>;
|
|
@@ -57,7 +126,11 @@ declare const NotificationsParamsSchema: z.ZodObject<{
|
|
|
57
126
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
58
127
|
* for notes on _meta usage.
|
|
59
128
|
*/
|
|
60
|
-
_meta: z.ZodOptional<z.
|
|
129
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
131
|
+
taskId: z.ZodString;
|
|
132
|
+
}, z.core.$loose>>;
|
|
133
|
+
}, z.core.$loose>>;
|
|
61
134
|
}, z.core.$loose>;
|
|
62
135
|
export declare const NotificationSchema: z.ZodObject<{
|
|
63
136
|
method: z.ZodString;
|
|
@@ -66,7 +139,11 @@ export declare const NotificationSchema: z.ZodObject<{
|
|
|
66
139
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
67
140
|
* for notes on _meta usage.
|
|
68
141
|
*/
|
|
69
|
-
_meta: z.ZodOptional<z.
|
|
142
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
144
|
+
taskId: z.ZodString;
|
|
145
|
+
}, z.core.$loose>>;
|
|
146
|
+
}, z.core.$loose>>;
|
|
70
147
|
}, z.core.$loose>>;
|
|
71
148
|
}, z.core.$strip>;
|
|
72
149
|
export declare const ResultSchema: z.ZodObject<{
|
|
@@ -74,7 +151,14 @@ export declare const ResultSchema: z.ZodObject<{
|
|
|
74
151
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
75
152
|
* for notes on _meta usage.
|
|
76
153
|
*/
|
|
77
|
-
_meta: z.ZodOptional<z.
|
|
154
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
/**
|
|
156
|
+
* If specified, this result is related to the provided task.
|
|
157
|
+
*/
|
|
158
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
159
|
+
taskId: z.ZodString;
|
|
160
|
+
}, z.core.$loose>>;
|
|
161
|
+
}, z.core.$loose>>;
|
|
78
162
|
}, z.core.$loose>;
|
|
79
163
|
/**
|
|
80
164
|
* A uniquely identifying ID for a request in JSON-RPC.
|
|
@@ -86,6 +170,21 @@ export declare const RequestIdSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNum
|
|
|
86
170
|
export declare const JSONRPCRequestSchema: z.ZodObject<{
|
|
87
171
|
method: z.ZodString;
|
|
88
172
|
params: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
/**
|
|
174
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
175
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
176
|
+
*/
|
|
177
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
/**
|
|
179
|
+
* Time in milliseconds to keep task results available after completion.
|
|
180
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
181
|
+
*/
|
|
182
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
183
|
+
/**
|
|
184
|
+
* Time in milliseconds to wait between task status requests.
|
|
185
|
+
*/
|
|
186
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, z.core.$loose>>;
|
|
89
188
|
/**
|
|
90
189
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
91
190
|
*/
|
|
@@ -94,6 +193,12 @@ export declare const JSONRPCRequestSchema: z.ZodObject<{
|
|
|
94
193
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
95
194
|
*/
|
|
96
195
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
196
|
+
/**
|
|
197
|
+
* If specified, this request is related to the provided task.
|
|
198
|
+
*/
|
|
199
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
200
|
+
taskId: z.ZodString;
|
|
201
|
+
}, z.core.$loose>>;
|
|
97
202
|
}, z.core.$loose>>;
|
|
98
203
|
}, z.core.$loose>>;
|
|
99
204
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
@@ -110,7 +215,11 @@ export declare const JSONRPCNotificationSchema: z.ZodObject<{
|
|
|
110
215
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
111
216
|
* for notes on _meta usage.
|
|
112
217
|
*/
|
|
113
|
-
_meta: z.ZodOptional<z.
|
|
218
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
220
|
+
taskId: z.ZodString;
|
|
221
|
+
}, z.core.$loose>>;
|
|
222
|
+
}, z.core.$loose>>;
|
|
114
223
|
}, z.core.$loose>>;
|
|
115
224
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
116
225
|
}, z.core.$strict>;
|
|
@@ -126,7 +235,14 @@ export declare const JSONRPCResponseSchema: z.ZodObject<{
|
|
|
126
235
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
127
236
|
* for notes on _meta usage.
|
|
128
237
|
*/
|
|
129
|
-
_meta: z.ZodOptional<z.
|
|
238
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
/**
|
|
240
|
+
* If specified, this result is related to the provided task.
|
|
241
|
+
*/
|
|
242
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
243
|
+
taskId: z.ZodString;
|
|
244
|
+
}, z.core.$loose>>;
|
|
245
|
+
}, z.core.$loose>>;
|
|
130
246
|
}, z.core.$loose>;
|
|
131
247
|
}, z.core.$strict>;
|
|
132
248
|
export declare const isJSONRPCResponse: (value: unknown) => value is JSONRPCResponse;
|
|
@@ -159,6 +275,21 @@ export declare const isJSONRPCError: (value: unknown) => value is JSONRPCError;
|
|
|
159
275
|
export declare const JSONRPCMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
160
276
|
method: z.ZodString;
|
|
161
277
|
params: z.ZodOptional<z.ZodObject<{
|
|
278
|
+
/**
|
|
279
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
280
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
281
|
+
*/
|
|
282
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
283
|
+
/**
|
|
284
|
+
* Time in milliseconds to keep task results available after completion.
|
|
285
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
286
|
+
*/
|
|
287
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
288
|
+
/**
|
|
289
|
+
* Time in milliseconds to wait between task status requests.
|
|
290
|
+
*/
|
|
291
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
}, z.core.$loose>>;
|
|
162
293
|
/**
|
|
163
294
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
164
295
|
*/
|
|
@@ -167,6 +298,12 @@ export declare const JSONRPCMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
167
298
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
168
299
|
*/
|
|
169
300
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
301
|
+
/**
|
|
302
|
+
* If specified, this request is related to the provided task.
|
|
303
|
+
*/
|
|
304
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
305
|
+
taskId: z.ZodString;
|
|
306
|
+
}, z.core.$loose>>;
|
|
170
307
|
}, z.core.$loose>>;
|
|
171
308
|
}, z.core.$loose>>;
|
|
172
309
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
@@ -178,7 +315,11 @@ export declare const JSONRPCMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
178
315
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
179
316
|
* for notes on _meta usage.
|
|
180
317
|
*/
|
|
181
|
-
_meta: z.ZodOptional<z.
|
|
318
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
320
|
+
taskId: z.ZodString;
|
|
321
|
+
}, z.core.$loose>>;
|
|
322
|
+
}, z.core.$loose>>;
|
|
182
323
|
}, z.core.$loose>>;
|
|
183
324
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
184
325
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -189,7 +330,14 @@ export declare const JSONRPCMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
189
330
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
190
331
|
* for notes on _meta usage.
|
|
191
332
|
*/
|
|
192
|
-
_meta: z.ZodOptional<z.
|
|
333
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
334
|
+
/**
|
|
335
|
+
* If specified, this result is related to the provided task.
|
|
336
|
+
*/
|
|
337
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
338
|
+
taskId: z.ZodString;
|
|
339
|
+
}, z.core.$loose>>;
|
|
340
|
+
}, z.core.$loose>>;
|
|
193
341
|
}, z.core.$loose>;
|
|
194
342
|
}, z.core.$strict>, z.ZodObject<{
|
|
195
343
|
jsonrpc: z.ZodLiteral<"2.0">;
|
|
@@ -208,10 +356,21 @@ export declare const EmptyResultSchema: z.ZodObject<{
|
|
|
208
356
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
209
357
|
* for notes on _meta usage.
|
|
210
358
|
*/
|
|
211
|
-
_meta: z.ZodOptional<z.
|
|
359
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
360
|
+
/**
|
|
361
|
+
* If specified, this result is related to the provided task.
|
|
362
|
+
*/
|
|
363
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
364
|
+
taskId: z.ZodString;
|
|
365
|
+
}, z.core.$loose>>;
|
|
366
|
+
}, z.core.$loose>>;
|
|
212
367
|
}, z.core.$strict>;
|
|
213
368
|
export declare const CancelledNotificationParamsSchema: z.ZodObject<{
|
|
214
|
-
_meta: z.ZodOptional<z.
|
|
369
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
371
|
+
taskId: z.ZodString;
|
|
372
|
+
}, z.core.$loose>>;
|
|
373
|
+
}, z.core.$loose>>;
|
|
215
374
|
requestId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
216
375
|
reason: z.ZodOptional<z.ZodString>;
|
|
217
376
|
}, z.core.$loose>;
|
|
@@ -227,7 +386,11 @@ export declare const CancelledNotificationParamsSchema: z.ZodObject<{
|
|
|
227
386
|
export declare const CancelledNotificationSchema: z.ZodObject<{
|
|
228
387
|
method: z.ZodLiteral<"notifications/cancelled">;
|
|
229
388
|
params: z.ZodObject<{
|
|
230
|
-
_meta: z.ZodOptional<z.
|
|
389
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
390
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
391
|
+
taskId: z.ZodString;
|
|
392
|
+
}, z.core.$loose>>;
|
|
393
|
+
}, z.core.$loose>>;
|
|
231
394
|
requestId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
232
395
|
reason: z.ZodOptional<z.ZodString>;
|
|
233
396
|
}, z.core.$loose>;
|
|
@@ -272,6 +435,33 @@ export declare const ImplementationSchema: z.ZodObject<{
|
|
|
272
435
|
name: z.ZodString;
|
|
273
436
|
title: z.ZodOptional<z.ZodString>;
|
|
274
437
|
}, z.core.$strip>;
|
|
438
|
+
/**
|
|
439
|
+
* Task capabilities for clients, indicating which request types support task creation.
|
|
440
|
+
*/
|
|
441
|
+
export declare const ClientTasksCapabilitySchema: z.ZodObject<{
|
|
442
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
443
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
444
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
createMessage: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
447
|
+
}, z.core.$loose>>;
|
|
448
|
+
elicitation: z.ZodOptional<z.ZodObject<{
|
|
449
|
+
create: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
450
|
+
}, z.core.$loose>>;
|
|
451
|
+
}, z.core.$loose>>;
|
|
452
|
+
}, z.core.$loose>;
|
|
453
|
+
/**
|
|
454
|
+
* Task capabilities for servers, indicating which request types support task creation.
|
|
455
|
+
*/
|
|
456
|
+
export declare const ServerTasksCapabilitySchema: z.ZodObject<{
|
|
457
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
458
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
459
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
tools: z.ZodOptional<z.ZodObject<{
|
|
461
|
+
call: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
462
|
+
}, z.core.$loose>>;
|
|
463
|
+
}, z.core.$loose>>;
|
|
464
|
+
}, z.core.$loose>;
|
|
275
465
|
/**
|
|
276
466
|
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
|
277
467
|
*/
|
|
@@ -290,13 +480,42 @@ export declare const ClientCapabilitiesSchema: z.ZodObject<{
|
|
|
290
480
|
roots: z.ZodOptional<z.ZodObject<{
|
|
291
481
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
292
482
|
}, z.core.$strip>>;
|
|
483
|
+
tasks: z.ZodOptional<z.ZodObject<{
|
|
484
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
485
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
486
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
488
|
+
createMessage: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
489
|
+
}, z.core.$loose>>;
|
|
490
|
+
elicitation: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
create: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
492
|
+
}, z.core.$loose>>;
|
|
493
|
+
}, z.core.$loose>>;
|
|
494
|
+
}, z.core.$loose>>;
|
|
293
495
|
}, z.core.$strip>;
|
|
294
496
|
export declare const InitializeRequestParamsSchema: z.ZodObject<{
|
|
497
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
498
|
+
/**
|
|
499
|
+
* Time in milliseconds to keep task results available after completion.
|
|
500
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
501
|
+
*/
|
|
502
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
503
|
+
/**
|
|
504
|
+
* Time in milliseconds to wait between task status requests.
|
|
505
|
+
*/
|
|
506
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
}, z.core.$loose>>;
|
|
295
508
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
296
509
|
/**
|
|
297
510
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
298
511
|
*/
|
|
299
512
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
513
|
+
/**
|
|
514
|
+
* If specified, this request is related to the provided task.
|
|
515
|
+
*/
|
|
516
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
517
|
+
taskId: z.ZodString;
|
|
518
|
+
}, z.core.$loose>>;
|
|
300
519
|
}, z.core.$loose>>;
|
|
301
520
|
protocolVersion: z.ZodString;
|
|
302
521
|
capabilities: z.ZodObject<{
|
|
@@ -314,6 +533,18 @@ export declare const InitializeRequestParamsSchema: z.ZodObject<{
|
|
|
314
533
|
roots: z.ZodOptional<z.ZodObject<{
|
|
315
534
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
316
535
|
}, z.core.$strip>>;
|
|
536
|
+
tasks: z.ZodOptional<z.ZodObject<{
|
|
537
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
538
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
539
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
540
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
541
|
+
createMessage: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
542
|
+
}, z.core.$loose>>;
|
|
543
|
+
elicitation: z.ZodOptional<z.ZodObject<{
|
|
544
|
+
create: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
545
|
+
}, z.core.$loose>>;
|
|
546
|
+
}, z.core.$loose>>;
|
|
547
|
+
}, z.core.$loose>>;
|
|
317
548
|
}, z.core.$strip>;
|
|
318
549
|
clientInfo: z.ZodObject<{
|
|
319
550
|
version: z.ZodString;
|
|
@@ -333,11 +564,28 @@ export declare const InitializeRequestParamsSchema: z.ZodObject<{
|
|
|
333
564
|
export declare const InitializeRequestSchema: z.ZodObject<{
|
|
334
565
|
method: z.ZodLiteral<"initialize">;
|
|
335
566
|
params: z.ZodObject<{
|
|
567
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
568
|
+
/**
|
|
569
|
+
* Time in milliseconds to keep task results available after completion.
|
|
570
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
571
|
+
*/
|
|
572
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
573
|
+
/**
|
|
574
|
+
* Time in milliseconds to wait between task status requests.
|
|
575
|
+
*/
|
|
576
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
577
|
+
}, z.core.$loose>>;
|
|
336
578
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
337
579
|
/**
|
|
338
580
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
339
581
|
*/
|
|
340
582
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
583
|
+
/**
|
|
584
|
+
* If specified, this request is related to the provided task.
|
|
585
|
+
*/
|
|
586
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
587
|
+
taskId: z.ZodString;
|
|
588
|
+
}, z.core.$loose>>;
|
|
341
589
|
}, z.core.$loose>>;
|
|
342
590
|
protocolVersion: z.ZodString;
|
|
343
591
|
capabilities: z.ZodObject<{
|
|
@@ -355,6 +603,18 @@ export declare const InitializeRequestSchema: z.ZodObject<{
|
|
|
355
603
|
roots: z.ZodOptional<z.ZodObject<{
|
|
356
604
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
357
605
|
}, z.core.$strip>>;
|
|
606
|
+
tasks: z.ZodOptional<z.ZodObject<{
|
|
607
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
608
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
609
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
610
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
611
|
+
createMessage: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
612
|
+
}, z.core.$loose>>;
|
|
613
|
+
elicitation: z.ZodOptional<z.ZodObject<{
|
|
614
|
+
create: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
615
|
+
}, z.core.$loose>>;
|
|
616
|
+
}, z.core.$loose>>;
|
|
617
|
+
}, z.core.$loose>>;
|
|
358
618
|
}, z.core.$strip>;
|
|
359
619
|
clientInfo: z.ZodObject<{
|
|
360
620
|
version: z.ZodString;
|
|
@@ -387,12 +647,28 @@ export declare const ServerCapabilitiesSchema: z.ZodObject<{
|
|
|
387
647
|
tools: z.ZodOptional<z.ZodObject<{
|
|
388
648
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
389
649
|
}, z.core.$strip>>;
|
|
390
|
-
|
|
650
|
+
tasks: z.ZodOptional<z.ZodObject<{
|
|
651
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
652
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
653
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
654
|
+
tools: z.ZodOptional<z.ZodObject<{
|
|
655
|
+
call: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
656
|
+
}, z.core.$loose>>;
|
|
657
|
+
}, z.core.$loose>>;
|
|
658
|
+
}, z.core.$loose>>;
|
|
659
|
+
}, z.core.$loose>;
|
|
391
660
|
/**
|
|
392
661
|
* After receiving an initialize request from the client, the server sends this response.
|
|
393
662
|
*/
|
|
394
663
|
export declare const InitializeResultSchema: z.ZodObject<{
|
|
395
|
-
_meta: z.ZodOptional<z.
|
|
664
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
/**
|
|
666
|
+
* If specified, this result is related to the provided task.
|
|
667
|
+
*/
|
|
668
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
669
|
+
taskId: z.ZodString;
|
|
670
|
+
}, z.core.$loose>>;
|
|
671
|
+
}, z.core.$loose>>;
|
|
396
672
|
protocolVersion: z.ZodString;
|
|
397
673
|
capabilities: z.ZodObject<{
|
|
398
674
|
experimental: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
@@ -408,7 +684,16 @@ export declare const InitializeResultSchema: z.ZodObject<{
|
|
|
408
684
|
tools: z.ZodOptional<z.ZodObject<{
|
|
409
685
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
410
686
|
}, z.core.$strip>>;
|
|
411
|
-
|
|
687
|
+
tasks: z.ZodOptional<z.ZodObject<{
|
|
688
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
689
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
690
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
691
|
+
tools: z.ZodOptional<z.ZodObject<{
|
|
692
|
+
call: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
693
|
+
}, z.core.$loose>>;
|
|
694
|
+
}, z.core.$loose>>;
|
|
695
|
+
}, z.core.$loose>>;
|
|
696
|
+
}, z.core.$loose>;
|
|
412
697
|
serverInfo: z.ZodObject<{
|
|
413
698
|
version: z.ZodString;
|
|
414
699
|
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -431,7 +716,11 @@ export declare const InitializedNotificationSchema: z.ZodObject<{
|
|
|
431
716
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
432
717
|
* for notes on _meta usage.
|
|
433
718
|
*/
|
|
434
|
-
_meta: z.ZodOptional<z.
|
|
719
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
720
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
721
|
+
taskId: z.ZodString;
|
|
722
|
+
}, z.core.$loose>>;
|
|
723
|
+
}, z.core.$loose>>;
|
|
435
724
|
}, z.core.$loose>>;
|
|
436
725
|
method: z.ZodLiteral<"notifications/initialized">;
|
|
437
726
|
}, z.core.$strip>;
|
|
@@ -441,6 +730,21 @@ export declare const isInitializedNotification: (value: unknown) => value is Ini
|
|
|
441
730
|
*/
|
|
442
731
|
export declare const PingRequestSchema: z.ZodObject<{
|
|
443
732
|
params: z.ZodOptional<z.ZodObject<{
|
|
733
|
+
/**
|
|
734
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
735
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
736
|
+
*/
|
|
737
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
738
|
+
/**
|
|
739
|
+
* Time in milliseconds to keep task results available after completion.
|
|
740
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
741
|
+
*/
|
|
742
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
743
|
+
/**
|
|
744
|
+
* Time in milliseconds to wait between task status requests.
|
|
745
|
+
*/
|
|
746
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
747
|
+
}, z.core.$loose>>;
|
|
444
748
|
/**
|
|
445
749
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
446
750
|
*/
|
|
@@ -449,6 +753,12 @@ export declare const PingRequestSchema: z.ZodObject<{
|
|
|
449
753
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
450
754
|
*/
|
|
451
755
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
756
|
+
/**
|
|
757
|
+
* If specified, this request is related to the provided task.
|
|
758
|
+
*/
|
|
759
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
760
|
+
taskId: z.ZodString;
|
|
761
|
+
}, z.core.$loose>>;
|
|
452
762
|
}, z.core.$loose>>;
|
|
453
763
|
}, z.core.$loose>>;
|
|
454
764
|
method: z.ZodLiteral<"ping">;
|
|
@@ -463,7 +773,11 @@ export declare const ProgressNotificationParamsSchema: z.ZodObject<{
|
|
|
463
773
|
progress: z.ZodNumber;
|
|
464
774
|
total: z.ZodOptional<z.ZodNumber>;
|
|
465
775
|
message: z.ZodOptional<z.ZodString>;
|
|
466
|
-
_meta: z.ZodOptional<z.
|
|
776
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
777
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
778
|
+
taskId: z.ZodString;
|
|
779
|
+
}, z.core.$loose>>;
|
|
780
|
+
}, z.core.$loose>>;
|
|
467
781
|
}, z.core.$strip>;
|
|
468
782
|
/**
|
|
469
783
|
* An out-of-band notification used to inform the receiver of a progress update for a long-running request.
|
|
@@ -477,34 +791,383 @@ export declare const ProgressNotificationSchema: z.ZodObject<{
|
|
|
477
791
|
progress: z.ZodNumber;
|
|
478
792
|
total: z.ZodOptional<z.ZodNumber>;
|
|
479
793
|
message: z.ZodOptional<z.ZodString>;
|
|
480
|
-
_meta: z.ZodOptional<z.
|
|
794
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
795
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
796
|
+
taskId: z.ZodString;
|
|
797
|
+
}, z.core.$loose>>;
|
|
798
|
+
}, z.core.$loose>>;
|
|
481
799
|
}, z.core.$strip>;
|
|
482
800
|
}, z.core.$strip>;
|
|
483
801
|
export declare const PaginatedRequestParamsSchema: z.ZodObject<{
|
|
802
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
803
|
+
/**
|
|
804
|
+
* Time in milliseconds to keep task results available after completion.
|
|
805
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
806
|
+
*/
|
|
807
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
808
|
+
/**
|
|
809
|
+
* Time in milliseconds to wait between task status requests.
|
|
810
|
+
*/
|
|
811
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
812
|
+
}, z.core.$loose>>;
|
|
484
813
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
485
814
|
/**
|
|
486
815
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
487
816
|
*/
|
|
488
817
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
818
|
+
/**
|
|
819
|
+
* If specified, this request is related to the provided task.
|
|
820
|
+
*/
|
|
821
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
822
|
+
taskId: z.ZodString;
|
|
823
|
+
}, z.core.$loose>>;
|
|
489
824
|
}, z.core.$loose>>;
|
|
490
825
|
cursor: z.ZodOptional<z.ZodString>;
|
|
491
826
|
}, z.core.$loose>;
|
|
492
827
|
export declare const PaginatedRequestSchema: z.ZodObject<{
|
|
493
828
|
method: z.ZodString;
|
|
494
829
|
params: z.ZodOptional<z.ZodObject<{
|
|
830
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
831
|
+
/**
|
|
832
|
+
* Time in milliseconds to keep task results available after completion.
|
|
833
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
834
|
+
*/
|
|
835
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
836
|
+
/**
|
|
837
|
+
* Time in milliseconds to wait between task status requests.
|
|
838
|
+
*/
|
|
839
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
840
|
+
}, z.core.$loose>>;
|
|
495
841
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
496
842
|
/**
|
|
497
843
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
498
844
|
*/
|
|
499
845
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
846
|
+
/**
|
|
847
|
+
* If specified, this request is related to the provided task.
|
|
848
|
+
*/
|
|
849
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
850
|
+
taskId: z.ZodString;
|
|
851
|
+
}, z.core.$loose>>;
|
|
500
852
|
}, z.core.$loose>>;
|
|
501
853
|
cursor: z.ZodOptional<z.ZodString>;
|
|
502
854
|
}, z.core.$loose>>;
|
|
503
855
|
}, z.core.$strip>;
|
|
504
856
|
export declare const PaginatedResultSchema: z.ZodObject<{
|
|
505
|
-
_meta: z.ZodOptional<z.
|
|
857
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
858
|
+
/**
|
|
859
|
+
* If specified, this result is related to the provided task.
|
|
860
|
+
*/
|
|
861
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
862
|
+
taskId: z.ZodString;
|
|
863
|
+
}, z.core.$loose>>;
|
|
864
|
+
}, z.core.$loose>>;
|
|
506
865
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
507
866
|
}, z.core.$loose>;
|
|
867
|
+
/**
|
|
868
|
+
* A pollable state object associated with a request.
|
|
869
|
+
*/
|
|
870
|
+
export declare const TaskSchema: z.ZodObject<{
|
|
871
|
+
taskId: z.ZodString;
|
|
872
|
+
status: z.ZodEnum<{
|
|
873
|
+
working: "working";
|
|
874
|
+
input_required: "input_required";
|
|
875
|
+
completed: "completed";
|
|
876
|
+
failed: "failed";
|
|
877
|
+
cancelled: "cancelled";
|
|
878
|
+
}>;
|
|
879
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
880
|
+
createdAt: z.ZodString;
|
|
881
|
+
lastUpdatedAt: z.ZodString;
|
|
882
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
883
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
884
|
+
}, z.core.$strip>;
|
|
885
|
+
/**
|
|
886
|
+
* Result returned when a task is created, containing the task data wrapped in a task field.
|
|
887
|
+
*/
|
|
888
|
+
export declare const CreateTaskResultSchema: z.ZodObject<{
|
|
889
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
890
|
+
/**
|
|
891
|
+
* If specified, this result is related to the provided task.
|
|
892
|
+
*/
|
|
893
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
894
|
+
taskId: z.ZodString;
|
|
895
|
+
}, z.core.$loose>>;
|
|
896
|
+
}, z.core.$loose>>;
|
|
897
|
+
task: z.ZodObject<{
|
|
898
|
+
taskId: z.ZodString;
|
|
899
|
+
status: z.ZodEnum<{
|
|
900
|
+
working: "working";
|
|
901
|
+
input_required: "input_required";
|
|
902
|
+
completed: "completed";
|
|
903
|
+
failed: "failed";
|
|
904
|
+
cancelled: "cancelled";
|
|
905
|
+
}>;
|
|
906
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
907
|
+
createdAt: z.ZodString;
|
|
908
|
+
lastUpdatedAt: z.ZodString;
|
|
909
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
910
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
}, z.core.$loose>;
|
|
913
|
+
/**
|
|
914
|
+
* Parameters for task status notification.
|
|
915
|
+
*/
|
|
916
|
+
export declare const TaskStatusNotificationParamsSchema: z.ZodObject<{
|
|
917
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
918
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
919
|
+
taskId: z.ZodString;
|
|
920
|
+
}, z.core.$loose>>;
|
|
921
|
+
}, z.core.$loose>>;
|
|
922
|
+
taskId: z.ZodString;
|
|
923
|
+
status: z.ZodEnum<{
|
|
924
|
+
working: "working";
|
|
925
|
+
input_required: "input_required";
|
|
926
|
+
completed: "completed";
|
|
927
|
+
failed: "failed";
|
|
928
|
+
cancelled: "cancelled";
|
|
929
|
+
}>;
|
|
930
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
931
|
+
createdAt: z.ZodString;
|
|
932
|
+
lastUpdatedAt: z.ZodString;
|
|
933
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
934
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
/**
|
|
937
|
+
* A notification sent when a task's status changes.
|
|
938
|
+
*/
|
|
939
|
+
export declare const TaskStatusNotificationSchema: z.ZodObject<{
|
|
940
|
+
method: z.ZodLiteral<"notifications/tasks/status">;
|
|
941
|
+
params: z.ZodObject<{
|
|
942
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
943
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
944
|
+
taskId: z.ZodString;
|
|
945
|
+
}, z.core.$loose>>;
|
|
946
|
+
}, z.core.$loose>>;
|
|
947
|
+
taskId: z.ZodString;
|
|
948
|
+
status: z.ZodEnum<{
|
|
949
|
+
working: "working";
|
|
950
|
+
input_required: "input_required";
|
|
951
|
+
completed: "completed";
|
|
952
|
+
failed: "failed";
|
|
953
|
+
cancelled: "cancelled";
|
|
954
|
+
}>;
|
|
955
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
956
|
+
createdAt: z.ZodString;
|
|
957
|
+
lastUpdatedAt: z.ZodString;
|
|
958
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
959
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
960
|
+
}, z.core.$strip>;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
/**
|
|
963
|
+
* A request to get the state of a specific task.
|
|
964
|
+
*/
|
|
965
|
+
export declare const GetTaskRequestSchema: z.ZodObject<{
|
|
966
|
+
method: z.ZodLiteral<"tasks/get">;
|
|
967
|
+
params: z.ZodObject<{
|
|
968
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
969
|
+
/**
|
|
970
|
+
* Time in milliseconds to keep task results available after completion.
|
|
971
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
972
|
+
*/
|
|
973
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
974
|
+
/**
|
|
975
|
+
* Time in milliseconds to wait between task status requests.
|
|
976
|
+
*/
|
|
977
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
978
|
+
}, z.core.$loose>>;
|
|
979
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
980
|
+
/**
|
|
981
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
982
|
+
*/
|
|
983
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
984
|
+
/**
|
|
985
|
+
* If specified, this request is related to the provided task.
|
|
986
|
+
*/
|
|
987
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
988
|
+
taskId: z.ZodString;
|
|
989
|
+
}, z.core.$loose>>;
|
|
990
|
+
}, z.core.$loose>>;
|
|
991
|
+
taskId: z.ZodString;
|
|
992
|
+
}, z.core.$loose>;
|
|
993
|
+
}, z.core.$strip>;
|
|
994
|
+
/**
|
|
995
|
+
* The response to a tasks/get request.
|
|
996
|
+
*/
|
|
997
|
+
export declare const GetTaskResultSchema: z.ZodObject<{
|
|
998
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
999
|
+
/**
|
|
1000
|
+
* If specified, this result is related to the provided task.
|
|
1001
|
+
*/
|
|
1002
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1003
|
+
taskId: z.ZodString;
|
|
1004
|
+
}, z.core.$loose>>;
|
|
1005
|
+
}, z.core.$loose>>;
|
|
1006
|
+
taskId: z.ZodString;
|
|
1007
|
+
status: z.ZodEnum<{
|
|
1008
|
+
working: "working";
|
|
1009
|
+
input_required: "input_required";
|
|
1010
|
+
completed: "completed";
|
|
1011
|
+
failed: "failed";
|
|
1012
|
+
cancelled: "cancelled";
|
|
1013
|
+
}>;
|
|
1014
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
1015
|
+
createdAt: z.ZodString;
|
|
1016
|
+
lastUpdatedAt: z.ZodString;
|
|
1017
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1018
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
}, z.core.$strip>;
|
|
1020
|
+
/**
|
|
1021
|
+
* A request to get the result of a specific task.
|
|
1022
|
+
*/
|
|
1023
|
+
export declare const GetTaskPayloadRequestSchema: z.ZodObject<{
|
|
1024
|
+
method: z.ZodLiteral<"tasks/result">;
|
|
1025
|
+
params: z.ZodObject<{
|
|
1026
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1027
|
+
/**
|
|
1028
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1029
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1030
|
+
*/
|
|
1031
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Time in milliseconds to wait between task status requests.
|
|
1034
|
+
*/
|
|
1035
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1036
|
+
}, z.core.$loose>>;
|
|
1037
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1038
|
+
/**
|
|
1039
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1040
|
+
*/
|
|
1041
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1042
|
+
/**
|
|
1043
|
+
* If specified, this request is related to the provided task.
|
|
1044
|
+
*/
|
|
1045
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1046
|
+
taskId: z.ZodString;
|
|
1047
|
+
}, z.core.$loose>>;
|
|
1048
|
+
}, z.core.$loose>>;
|
|
1049
|
+
taskId: z.ZodString;
|
|
1050
|
+
}, z.core.$loose>;
|
|
1051
|
+
}, z.core.$strip>;
|
|
1052
|
+
/**
|
|
1053
|
+
* A request to list tasks.
|
|
1054
|
+
*/
|
|
1055
|
+
export declare const ListTasksRequestSchema: z.ZodObject<{
|
|
1056
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1058
|
+
/**
|
|
1059
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1060
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1061
|
+
*/
|
|
1062
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Time in milliseconds to wait between task status requests.
|
|
1065
|
+
*/
|
|
1066
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1067
|
+
}, z.core.$loose>>;
|
|
1068
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1069
|
+
/**
|
|
1070
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1071
|
+
*/
|
|
1072
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1073
|
+
/**
|
|
1074
|
+
* If specified, this request is related to the provided task.
|
|
1075
|
+
*/
|
|
1076
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1077
|
+
taskId: z.ZodString;
|
|
1078
|
+
}, z.core.$loose>>;
|
|
1079
|
+
}, z.core.$loose>>;
|
|
1080
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
}, z.core.$loose>>;
|
|
1082
|
+
method: z.ZodLiteral<"tasks/list">;
|
|
1083
|
+
}, z.core.$strip>;
|
|
1084
|
+
/**
|
|
1085
|
+
* The response to a tasks/list request.
|
|
1086
|
+
*/
|
|
1087
|
+
export declare const ListTasksResultSchema: z.ZodObject<{
|
|
1088
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1089
|
+
/**
|
|
1090
|
+
* If specified, this result is related to the provided task.
|
|
1091
|
+
*/
|
|
1092
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1093
|
+
taskId: z.ZodString;
|
|
1094
|
+
}, z.core.$loose>>;
|
|
1095
|
+
}, z.core.$loose>>;
|
|
1096
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1098
|
+
taskId: z.ZodString;
|
|
1099
|
+
status: z.ZodEnum<{
|
|
1100
|
+
working: "working";
|
|
1101
|
+
input_required: "input_required";
|
|
1102
|
+
completed: "completed";
|
|
1103
|
+
failed: "failed";
|
|
1104
|
+
cancelled: "cancelled";
|
|
1105
|
+
}>;
|
|
1106
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
1107
|
+
createdAt: z.ZodString;
|
|
1108
|
+
lastUpdatedAt: z.ZodString;
|
|
1109
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1110
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
}, z.core.$strip>>;
|
|
1112
|
+
}, z.core.$loose>;
|
|
1113
|
+
/**
|
|
1114
|
+
* A request to cancel a specific task.
|
|
1115
|
+
*/
|
|
1116
|
+
export declare const CancelTaskRequestSchema: z.ZodObject<{
|
|
1117
|
+
method: z.ZodLiteral<"tasks/cancel">;
|
|
1118
|
+
params: z.ZodObject<{
|
|
1119
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1120
|
+
/**
|
|
1121
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1122
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1123
|
+
*/
|
|
1124
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Time in milliseconds to wait between task status requests.
|
|
1127
|
+
*/
|
|
1128
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1129
|
+
}, z.core.$loose>>;
|
|
1130
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1131
|
+
/**
|
|
1132
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1133
|
+
*/
|
|
1134
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1135
|
+
/**
|
|
1136
|
+
* If specified, this request is related to the provided task.
|
|
1137
|
+
*/
|
|
1138
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1139
|
+
taskId: z.ZodString;
|
|
1140
|
+
}, z.core.$loose>>;
|
|
1141
|
+
}, z.core.$loose>>;
|
|
1142
|
+
taskId: z.ZodString;
|
|
1143
|
+
}, z.core.$loose>;
|
|
1144
|
+
}, z.core.$strip>;
|
|
1145
|
+
/**
|
|
1146
|
+
* The response to a tasks/cancel request.
|
|
1147
|
+
*/
|
|
1148
|
+
export declare const CancelTaskResultSchema: z.ZodObject<{
|
|
1149
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1150
|
+
/**
|
|
1151
|
+
* If specified, this result is related to the provided task.
|
|
1152
|
+
*/
|
|
1153
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1154
|
+
taskId: z.ZodString;
|
|
1155
|
+
}, z.core.$loose>>;
|
|
1156
|
+
}, z.core.$loose>>;
|
|
1157
|
+
taskId: z.ZodString;
|
|
1158
|
+
status: z.ZodEnum<{
|
|
1159
|
+
working: "working";
|
|
1160
|
+
input_required: "input_required";
|
|
1161
|
+
completed: "completed";
|
|
1162
|
+
failed: "failed";
|
|
1163
|
+
cancelled: "cancelled";
|
|
1164
|
+
}>;
|
|
1165
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
1166
|
+
createdAt: z.ZodString;
|
|
1167
|
+
lastUpdatedAt: z.ZodString;
|
|
1168
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
}, z.core.$strip>;
|
|
508
1171
|
/**
|
|
509
1172
|
* The contents of a specific resource or sub-resource.
|
|
510
1173
|
*/
|
|
@@ -562,11 +1225,28 @@ export declare const ResourceTemplateSchema: z.ZodObject<{
|
|
|
562
1225
|
*/
|
|
563
1226
|
export declare const ListResourcesRequestSchema: z.ZodObject<{
|
|
564
1227
|
params: z.ZodOptional<z.ZodObject<{
|
|
1228
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1229
|
+
/**
|
|
1230
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1231
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1232
|
+
*/
|
|
1233
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Time in milliseconds to wait between task status requests.
|
|
1236
|
+
*/
|
|
1237
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1238
|
+
}, z.core.$loose>>;
|
|
565
1239
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
566
1240
|
/**
|
|
567
1241
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
568
1242
|
*/
|
|
569
1243
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1244
|
+
/**
|
|
1245
|
+
* If specified, this request is related to the provided task.
|
|
1246
|
+
*/
|
|
1247
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1248
|
+
taskId: z.ZodString;
|
|
1249
|
+
}, z.core.$loose>>;
|
|
570
1250
|
}, z.core.$loose>>;
|
|
571
1251
|
cursor: z.ZodOptional<z.ZodString>;
|
|
572
1252
|
}, z.core.$loose>>;
|
|
@@ -576,7 +1256,14 @@ export declare const ListResourcesRequestSchema: z.ZodObject<{
|
|
|
576
1256
|
* The server's response to a resources/list request from the client.
|
|
577
1257
|
*/
|
|
578
1258
|
export declare const ListResourcesResultSchema: z.ZodObject<{
|
|
579
|
-
_meta: z.ZodOptional<z.
|
|
1259
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1260
|
+
/**
|
|
1261
|
+
* If specified, this result is related to the provided task.
|
|
1262
|
+
*/
|
|
1263
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1264
|
+
taskId: z.ZodString;
|
|
1265
|
+
}, z.core.$loose>>;
|
|
1266
|
+
}, z.core.$loose>>;
|
|
580
1267
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
581
1268
|
resources: z.ZodArray<z.ZodObject<{
|
|
582
1269
|
uri: z.ZodString;
|
|
@@ -597,11 +1284,28 @@ export declare const ListResourcesResultSchema: z.ZodObject<{
|
|
|
597
1284
|
*/
|
|
598
1285
|
export declare const ListResourceTemplatesRequestSchema: z.ZodObject<{
|
|
599
1286
|
params: z.ZodOptional<z.ZodObject<{
|
|
1287
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1288
|
+
/**
|
|
1289
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1290
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1291
|
+
*/
|
|
1292
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1293
|
+
/**
|
|
1294
|
+
* Time in milliseconds to wait between task status requests.
|
|
1295
|
+
*/
|
|
1296
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1297
|
+
}, z.core.$loose>>;
|
|
600
1298
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
601
1299
|
/**
|
|
602
1300
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
603
1301
|
*/
|
|
604
1302
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1303
|
+
/**
|
|
1304
|
+
* If specified, this request is related to the provided task.
|
|
1305
|
+
*/
|
|
1306
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1307
|
+
taskId: z.ZodString;
|
|
1308
|
+
}, z.core.$loose>>;
|
|
605
1309
|
}, z.core.$loose>>;
|
|
606
1310
|
cursor: z.ZodOptional<z.ZodString>;
|
|
607
1311
|
}, z.core.$loose>>;
|
|
@@ -611,7 +1315,14 @@ export declare const ListResourceTemplatesRequestSchema: z.ZodObject<{
|
|
|
611
1315
|
* The server's response to a resources/templates/list request from the client.
|
|
612
1316
|
*/
|
|
613
1317
|
export declare const ListResourceTemplatesResultSchema: z.ZodObject<{
|
|
614
|
-
_meta: z.ZodOptional<z.
|
|
1318
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1319
|
+
/**
|
|
1320
|
+
* If specified, this result is related to the provided task.
|
|
1321
|
+
*/
|
|
1322
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1323
|
+
taskId: z.ZodString;
|
|
1324
|
+
}, z.core.$loose>>;
|
|
1325
|
+
}, z.core.$loose>>;
|
|
615
1326
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
616
1327
|
resourceTemplates: z.ZodArray<z.ZodObject<{
|
|
617
1328
|
uriTemplate: z.ZodString;
|
|
@@ -628,11 +1339,28 @@ export declare const ListResourceTemplatesResultSchema: z.ZodObject<{
|
|
|
628
1339
|
}, z.core.$strip>>;
|
|
629
1340
|
}, z.core.$loose>;
|
|
630
1341
|
export declare const ResourceRequestParamsSchema: z.ZodObject<{
|
|
1342
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1343
|
+
/**
|
|
1344
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1345
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1346
|
+
*/
|
|
1347
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1348
|
+
/**
|
|
1349
|
+
* Time in milliseconds to wait between task status requests.
|
|
1350
|
+
*/
|
|
1351
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1352
|
+
}, z.core.$loose>>;
|
|
631
1353
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
632
1354
|
/**
|
|
633
1355
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
634
1356
|
*/
|
|
635
1357
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1358
|
+
/**
|
|
1359
|
+
* If specified, this request is related to the provided task.
|
|
1360
|
+
*/
|
|
1361
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1362
|
+
taskId: z.ZodString;
|
|
1363
|
+
}, z.core.$loose>>;
|
|
636
1364
|
}, z.core.$loose>>;
|
|
637
1365
|
uri: z.ZodString;
|
|
638
1366
|
}, z.core.$loose>;
|
|
@@ -640,11 +1368,28 @@ export declare const ResourceRequestParamsSchema: z.ZodObject<{
|
|
|
640
1368
|
* Parameters for a `resources/read` request.
|
|
641
1369
|
*/
|
|
642
1370
|
export declare const ReadResourceRequestParamsSchema: z.ZodObject<{
|
|
1371
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1372
|
+
/**
|
|
1373
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1374
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1375
|
+
*/
|
|
1376
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1377
|
+
/**
|
|
1378
|
+
* Time in milliseconds to wait between task status requests.
|
|
1379
|
+
*/
|
|
1380
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1381
|
+
}, z.core.$loose>>;
|
|
643
1382
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
644
1383
|
/**
|
|
645
1384
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
646
1385
|
*/
|
|
647
1386
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1387
|
+
/**
|
|
1388
|
+
* If specified, this request is related to the provided task.
|
|
1389
|
+
*/
|
|
1390
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1391
|
+
taskId: z.ZodString;
|
|
1392
|
+
}, z.core.$loose>>;
|
|
648
1393
|
}, z.core.$loose>>;
|
|
649
1394
|
uri: z.ZodString;
|
|
650
1395
|
}, z.core.$loose>;
|
|
@@ -654,11 +1399,28 @@ export declare const ReadResourceRequestParamsSchema: z.ZodObject<{
|
|
|
654
1399
|
export declare const ReadResourceRequestSchema: z.ZodObject<{
|
|
655
1400
|
method: z.ZodLiteral<"resources/read">;
|
|
656
1401
|
params: z.ZodObject<{
|
|
1402
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1403
|
+
/**
|
|
1404
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1405
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1406
|
+
*/
|
|
1407
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1408
|
+
/**
|
|
1409
|
+
* Time in milliseconds to wait between task status requests.
|
|
1410
|
+
*/
|
|
1411
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1412
|
+
}, z.core.$loose>>;
|
|
657
1413
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
658
1414
|
/**
|
|
659
1415
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
660
1416
|
*/
|
|
661
1417
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1418
|
+
/**
|
|
1419
|
+
* If specified, this request is related to the provided task.
|
|
1420
|
+
*/
|
|
1421
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1422
|
+
taskId: z.ZodString;
|
|
1423
|
+
}, z.core.$loose>>;
|
|
662
1424
|
}, z.core.$loose>>;
|
|
663
1425
|
uri: z.ZodString;
|
|
664
1426
|
}, z.core.$loose>;
|
|
@@ -667,7 +1429,14 @@ export declare const ReadResourceRequestSchema: z.ZodObject<{
|
|
|
667
1429
|
* The server's response to a resources/read request from the client.
|
|
668
1430
|
*/
|
|
669
1431
|
export declare const ReadResourceResultSchema: z.ZodObject<{
|
|
670
|
-
_meta: z.ZodOptional<z.
|
|
1432
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1433
|
+
/**
|
|
1434
|
+
* If specified, this result is related to the provided task.
|
|
1435
|
+
*/
|
|
1436
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1437
|
+
taskId: z.ZodString;
|
|
1438
|
+
}, z.core.$loose>>;
|
|
1439
|
+
}, z.core.$loose>>;
|
|
671
1440
|
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
672
1441
|
uri: z.ZodString;
|
|
673
1442
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -689,16 +1458,37 @@ export declare const ResourceListChangedNotificationSchema: z.ZodObject<{
|
|
|
689
1458
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
690
1459
|
* for notes on _meta usage.
|
|
691
1460
|
*/
|
|
692
|
-
_meta: z.ZodOptional<z.
|
|
1461
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1462
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1463
|
+
taskId: z.ZodString;
|
|
1464
|
+
}, z.core.$loose>>;
|
|
1465
|
+
}, z.core.$loose>>;
|
|
693
1466
|
}, z.core.$loose>>;
|
|
694
1467
|
method: z.ZodLiteral<"notifications/resources/list_changed">;
|
|
695
1468
|
}, z.core.$strip>;
|
|
696
1469
|
export declare const SubscribeRequestParamsSchema: z.ZodObject<{
|
|
1470
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1471
|
+
/**
|
|
1472
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1473
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1474
|
+
*/
|
|
1475
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1476
|
+
/**
|
|
1477
|
+
* Time in milliseconds to wait between task status requests.
|
|
1478
|
+
*/
|
|
1479
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1480
|
+
}, z.core.$loose>>;
|
|
697
1481
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
698
1482
|
/**
|
|
699
1483
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
700
1484
|
*/
|
|
701
1485
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1486
|
+
/**
|
|
1487
|
+
* If specified, this request is related to the provided task.
|
|
1488
|
+
*/
|
|
1489
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1490
|
+
taskId: z.ZodString;
|
|
1491
|
+
}, z.core.$loose>>;
|
|
702
1492
|
}, z.core.$loose>>;
|
|
703
1493
|
uri: z.ZodString;
|
|
704
1494
|
}, z.core.$loose>;
|
|
@@ -708,21 +1498,55 @@ export declare const SubscribeRequestParamsSchema: z.ZodObject<{
|
|
|
708
1498
|
export declare const SubscribeRequestSchema: z.ZodObject<{
|
|
709
1499
|
method: z.ZodLiteral<"resources/subscribe">;
|
|
710
1500
|
params: z.ZodObject<{
|
|
1501
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1502
|
+
/**
|
|
1503
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1504
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1505
|
+
*/
|
|
1506
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1507
|
+
/**
|
|
1508
|
+
* Time in milliseconds to wait between task status requests.
|
|
1509
|
+
*/
|
|
1510
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1511
|
+
}, z.core.$loose>>;
|
|
711
1512
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
712
1513
|
/**
|
|
713
1514
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
714
1515
|
*/
|
|
715
1516
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1517
|
+
/**
|
|
1518
|
+
* If specified, this request is related to the provided task.
|
|
1519
|
+
*/
|
|
1520
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1521
|
+
taskId: z.ZodString;
|
|
1522
|
+
}, z.core.$loose>>;
|
|
716
1523
|
}, z.core.$loose>>;
|
|
717
1524
|
uri: z.ZodString;
|
|
718
1525
|
}, z.core.$loose>;
|
|
719
1526
|
}, z.core.$strip>;
|
|
720
1527
|
export declare const UnsubscribeRequestParamsSchema: z.ZodObject<{
|
|
1528
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1529
|
+
/**
|
|
1530
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1531
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1532
|
+
*/
|
|
1533
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1534
|
+
/**
|
|
1535
|
+
* Time in milliseconds to wait between task status requests.
|
|
1536
|
+
*/
|
|
1537
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1538
|
+
}, z.core.$loose>>;
|
|
721
1539
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
722
1540
|
/**
|
|
723
1541
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
724
1542
|
*/
|
|
725
|
-
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1543
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1544
|
+
/**
|
|
1545
|
+
* If specified, this request is related to the provided task.
|
|
1546
|
+
*/
|
|
1547
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1548
|
+
taskId: z.ZodString;
|
|
1549
|
+
}, z.core.$loose>>;
|
|
726
1550
|
}, z.core.$loose>>;
|
|
727
1551
|
uri: z.ZodString;
|
|
728
1552
|
}, z.core.$loose>;
|
|
@@ -732,11 +1556,28 @@ export declare const UnsubscribeRequestParamsSchema: z.ZodObject<{
|
|
|
732
1556
|
export declare const UnsubscribeRequestSchema: z.ZodObject<{
|
|
733
1557
|
method: z.ZodLiteral<"resources/unsubscribe">;
|
|
734
1558
|
params: z.ZodObject<{
|
|
1559
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1560
|
+
/**
|
|
1561
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1562
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1563
|
+
*/
|
|
1564
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1565
|
+
/**
|
|
1566
|
+
* Time in milliseconds to wait between task status requests.
|
|
1567
|
+
*/
|
|
1568
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1569
|
+
}, z.core.$loose>>;
|
|
735
1570
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
736
1571
|
/**
|
|
737
1572
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
738
1573
|
*/
|
|
739
1574
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1575
|
+
/**
|
|
1576
|
+
* If specified, this request is related to the provided task.
|
|
1577
|
+
*/
|
|
1578
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1579
|
+
taskId: z.ZodString;
|
|
1580
|
+
}, z.core.$loose>>;
|
|
740
1581
|
}, z.core.$loose>>;
|
|
741
1582
|
uri: z.ZodString;
|
|
742
1583
|
}, z.core.$loose>;
|
|
@@ -745,7 +1586,11 @@ export declare const UnsubscribeRequestSchema: z.ZodObject<{
|
|
|
745
1586
|
* Parameters for a `notifications/resources/updated` notification.
|
|
746
1587
|
*/
|
|
747
1588
|
export declare const ResourceUpdatedNotificationParamsSchema: z.ZodObject<{
|
|
748
|
-
_meta: z.ZodOptional<z.
|
|
1589
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1590
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1591
|
+
taskId: z.ZodString;
|
|
1592
|
+
}, z.core.$loose>>;
|
|
1593
|
+
}, z.core.$loose>>;
|
|
749
1594
|
uri: z.ZodString;
|
|
750
1595
|
}, z.core.$loose>;
|
|
751
1596
|
/**
|
|
@@ -754,7 +1599,11 @@ export declare const ResourceUpdatedNotificationParamsSchema: z.ZodObject<{
|
|
|
754
1599
|
export declare const ResourceUpdatedNotificationSchema: z.ZodObject<{
|
|
755
1600
|
method: z.ZodLiteral<"notifications/resources/updated">;
|
|
756
1601
|
params: z.ZodObject<{
|
|
757
|
-
_meta: z.ZodOptional<z.
|
|
1602
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1603
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1604
|
+
taskId: z.ZodString;
|
|
1605
|
+
}, z.core.$loose>>;
|
|
1606
|
+
}, z.core.$loose>>;
|
|
758
1607
|
uri: z.ZodString;
|
|
759
1608
|
}, z.core.$loose>;
|
|
760
1609
|
}, z.core.$strip>;
|
|
@@ -790,11 +1639,28 @@ export declare const PromptSchema: z.ZodObject<{
|
|
|
790
1639
|
*/
|
|
791
1640
|
export declare const ListPromptsRequestSchema: z.ZodObject<{
|
|
792
1641
|
params: z.ZodOptional<z.ZodObject<{
|
|
1642
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1643
|
+
/**
|
|
1644
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1645
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1646
|
+
*/
|
|
1647
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1648
|
+
/**
|
|
1649
|
+
* Time in milliseconds to wait between task status requests.
|
|
1650
|
+
*/
|
|
1651
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1652
|
+
}, z.core.$loose>>;
|
|
793
1653
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
794
1654
|
/**
|
|
795
1655
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
796
1656
|
*/
|
|
797
1657
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1658
|
+
/**
|
|
1659
|
+
* If specified, this request is related to the provided task.
|
|
1660
|
+
*/
|
|
1661
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
taskId: z.ZodString;
|
|
1663
|
+
}, z.core.$loose>>;
|
|
798
1664
|
}, z.core.$loose>>;
|
|
799
1665
|
cursor: z.ZodOptional<z.ZodString>;
|
|
800
1666
|
}, z.core.$loose>>;
|
|
@@ -804,7 +1670,14 @@ export declare const ListPromptsRequestSchema: z.ZodObject<{
|
|
|
804
1670
|
* The server's response to a prompts/list request from the client.
|
|
805
1671
|
*/
|
|
806
1672
|
export declare const ListPromptsResultSchema: z.ZodObject<{
|
|
807
|
-
_meta: z.ZodOptional<z.
|
|
1673
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1674
|
+
/**
|
|
1675
|
+
* If specified, this result is related to the provided task.
|
|
1676
|
+
*/
|
|
1677
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1678
|
+
taskId: z.ZodString;
|
|
1679
|
+
}, z.core.$loose>>;
|
|
1680
|
+
}, z.core.$loose>>;
|
|
808
1681
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
809
1682
|
prompts: z.ZodArray<z.ZodObject<{
|
|
810
1683
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -827,11 +1700,28 @@ export declare const ListPromptsResultSchema: z.ZodObject<{
|
|
|
827
1700
|
* Parameters for a `prompts/get` request.
|
|
828
1701
|
*/
|
|
829
1702
|
export declare const GetPromptRequestParamsSchema: z.ZodObject<{
|
|
1703
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1704
|
+
/**
|
|
1705
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1706
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1707
|
+
*/
|
|
1708
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Time in milliseconds to wait between task status requests.
|
|
1711
|
+
*/
|
|
1712
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1713
|
+
}, z.core.$loose>>;
|
|
830
1714
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
831
1715
|
/**
|
|
832
1716
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
833
1717
|
*/
|
|
834
1718
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1719
|
+
/**
|
|
1720
|
+
* If specified, this request is related to the provided task.
|
|
1721
|
+
*/
|
|
1722
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1723
|
+
taskId: z.ZodString;
|
|
1724
|
+
}, z.core.$loose>>;
|
|
835
1725
|
}, z.core.$loose>>;
|
|
836
1726
|
name: z.ZodString;
|
|
837
1727
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -842,11 +1732,28 @@ export declare const GetPromptRequestParamsSchema: z.ZodObject<{
|
|
|
842
1732
|
export declare const GetPromptRequestSchema: z.ZodObject<{
|
|
843
1733
|
method: z.ZodLiteral<"prompts/get">;
|
|
844
1734
|
params: z.ZodObject<{
|
|
1735
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
1736
|
+
/**
|
|
1737
|
+
* Time in milliseconds to keep task results available after completion.
|
|
1738
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
1739
|
+
*/
|
|
1740
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
1741
|
+
/**
|
|
1742
|
+
* Time in milliseconds to wait between task status requests.
|
|
1743
|
+
*/
|
|
1744
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
1745
|
+
}, z.core.$loose>>;
|
|
845
1746
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
846
1747
|
/**
|
|
847
1748
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
848
1749
|
*/
|
|
849
1750
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1751
|
+
/**
|
|
1752
|
+
* If specified, this request is related to the provided task.
|
|
1753
|
+
*/
|
|
1754
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1755
|
+
taskId: z.ZodString;
|
|
1756
|
+
}, z.core.$loose>>;
|
|
850
1757
|
}, z.core.$loose>>;
|
|
851
1758
|
name: z.ZodString;
|
|
852
1759
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1026,7 +1933,14 @@ export declare const PromptMessageSchema: z.ZodObject<{
|
|
|
1026
1933
|
* The server's response to a prompts/get request from the client.
|
|
1027
1934
|
*/
|
|
1028
1935
|
export declare const GetPromptResultSchema: z.ZodObject<{
|
|
1029
|
-
_meta: z.ZodOptional<z.
|
|
1936
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
1937
|
+
/**
|
|
1938
|
+
* If specified, this result is related to the provided task.
|
|
1939
|
+
*/
|
|
1940
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
1941
|
+
taskId: z.ZodString;
|
|
1942
|
+
}, z.core.$loose>>;
|
|
1943
|
+
}, z.core.$loose>>;
|
|
1030
1944
|
description: z.ZodOptional<z.ZodString>;
|
|
1031
1945
|
messages: z.ZodArray<z.ZodObject<{
|
|
1032
1946
|
role: z.ZodEnum<{
|
|
@@ -1086,7 +2000,11 @@ export declare const PromptListChangedNotificationSchema: z.ZodObject<{
|
|
|
1086
2000
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1087
2001
|
* for notes on _meta usage.
|
|
1088
2002
|
*/
|
|
1089
|
-
_meta: z.ZodOptional<z.
|
|
2003
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2004
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2005
|
+
taskId: z.ZodString;
|
|
2006
|
+
}, z.core.$loose>>;
|
|
2007
|
+
}, z.core.$loose>>;
|
|
1090
2008
|
}, z.core.$loose>>;
|
|
1091
2009
|
method: z.ZodLiteral<"notifications/prompts/list_changed">;
|
|
1092
2010
|
}, z.core.$strip>;
|
|
@@ -1107,6 +2025,16 @@ export declare const ToolAnnotationsSchema: z.ZodObject<{
|
|
|
1107
2025
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1108
2026
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1109
2027
|
}, z.core.$strip>;
|
|
2028
|
+
/**
|
|
2029
|
+
* Execution-related properties for a tool.
|
|
2030
|
+
*/
|
|
2031
|
+
export declare const ToolExecutionSchema: z.ZodObject<{
|
|
2032
|
+
taskSupport: z.ZodOptional<z.ZodEnum<{
|
|
2033
|
+
optional: "optional";
|
|
2034
|
+
required: "required";
|
|
2035
|
+
forbidden: "forbidden";
|
|
2036
|
+
}>>;
|
|
2037
|
+
}, z.core.$strip>;
|
|
1110
2038
|
/**
|
|
1111
2039
|
* Definition for a tool the client can call.
|
|
1112
2040
|
*/
|
|
@@ -1129,6 +2057,13 @@ export declare const ToolSchema: z.ZodObject<{
|
|
|
1129
2057
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1130
2058
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1131
2059
|
}, z.core.$strip>>;
|
|
2060
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
2061
|
+
taskSupport: z.ZodOptional<z.ZodEnum<{
|
|
2062
|
+
optional: "optional";
|
|
2063
|
+
required: "required";
|
|
2064
|
+
forbidden: "forbidden";
|
|
2065
|
+
}>>;
|
|
2066
|
+
}, z.core.$strip>>;
|
|
1132
2067
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1133
2068
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1134
2069
|
src: z.ZodString;
|
|
@@ -1143,11 +2078,28 @@ export declare const ToolSchema: z.ZodObject<{
|
|
|
1143
2078
|
*/
|
|
1144
2079
|
export declare const ListToolsRequestSchema: z.ZodObject<{
|
|
1145
2080
|
params: z.ZodOptional<z.ZodObject<{
|
|
2081
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
2082
|
+
/**
|
|
2083
|
+
* Time in milliseconds to keep task results available after completion.
|
|
2084
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
2085
|
+
*/
|
|
2086
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2087
|
+
/**
|
|
2088
|
+
* Time in milliseconds to wait between task status requests.
|
|
2089
|
+
*/
|
|
2090
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
2091
|
+
}, z.core.$loose>>;
|
|
1146
2092
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1147
2093
|
/**
|
|
1148
2094
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1149
2095
|
*/
|
|
1150
2096
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2097
|
+
/**
|
|
2098
|
+
* If specified, this request is related to the provided task.
|
|
2099
|
+
*/
|
|
2100
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2101
|
+
taskId: z.ZodString;
|
|
2102
|
+
}, z.core.$loose>>;
|
|
1151
2103
|
}, z.core.$loose>>;
|
|
1152
2104
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1153
2105
|
}, z.core.$loose>>;
|
|
@@ -1157,7 +2109,14 @@ export declare const ListToolsRequestSchema: z.ZodObject<{
|
|
|
1157
2109
|
* The server's response to a tools/list request from the client.
|
|
1158
2110
|
*/
|
|
1159
2111
|
export declare const ListToolsResultSchema: z.ZodObject<{
|
|
1160
|
-
_meta: z.ZodOptional<z.
|
|
2112
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2113
|
+
/**
|
|
2114
|
+
* If specified, this result is related to the provided task.
|
|
2115
|
+
*/
|
|
2116
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2117
|
+
taskId: z.ZodString;
|
|
2118
|
+
}, z.core.$loose>>;
|
|
2119
|
+
}, z.core.$loose>>;
|
|
1161
2120
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1162
2121
|
tools: z.ZodArray<z.ZodObject<{
|
|
1163
2122
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1178,6 +2137,13 @@ export declare const ListToolsResultSchema: z.ZodObject<{
|
|
|
1178
2137
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1179
2138
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1180
2139
|
}, z.core.$strip>>;
|
|
2140
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
2141
|
+
taskSupport: z.ZodOptional<z.ZodEnum<{
|
|
2142
|
+
optional: "optional";
|
|
2143
|
+
required: "required";
|
|
2144
|
+
forbidden: "forbidden";
|
|
2145
|
+
}>>;
|
|
2146
|
+
}, z.core.$strip>>;
|
|
1181
2147
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1182
2148
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1183
2149
|
src: z.ZodString;
|
|
@@ -1192,7 +2158,14 @@ export declare const ListToolsResultSchema: z.ZodObject<{
|
|
|
1192
2158
|
* The server's response to a tool call.
|
|
1193
2159
|
*/
|
|
1194
2160
|
export declare const CallToolResultSchema: z.ZodObject<{
|
|
1195
|
-
_meta: z.ZodOptional<z.
|
|
2161
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2162
|
+
/**
|
|
2163
|
+
* If specified, this result is related to the provided task.
|
|
2164
|
+
*/
|
|
2165
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2166
|
+
taskId: z.ZodString;
|
|
2167
|
+
}, z.core.$loose>>;
|
|
2168
|
+
}, z.core.$loose>>;
|
|
1196
2169
|
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1197
2170
|
type: z.ZodLiteral<"text">;
|
|
1198
2171
|
text: z.ZodString;
|
|
@@ -1242,7 +2215,14 @@ export declare const CallToolResultSchema: z.ZodObject<{
|
|
|
1242
2215
|
* CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
|
|
1243
2216
|
*/
|
|
1244
2217
|
export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
1245
|
-
_meta: z.ZodOptional<z.
|
|
2218
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2219
|
+
/**
|
|
2220
|
+
* If specified, this result is related to the provided task.
|
|
2221
|
+
*/
|
|
2222
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2223
|
+
taskId: z.ZodString;
|
|
2224
|
+
}, z.core.$loose>>;
|
|
2225
|
+
}, z.core.$loose>>;
|
|
1246
2226
|
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1247
2227
|
type: z.ZodLiteral<"text">;
|
|
1248
2228
|
text: z.ZodString;
|
|
@@ -1288,18 +2268,42 @@ export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<
|
|
|
1288
2268
|
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1289
2269
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1290
2270
|
}, z.core.$loose>, z.ZodObject<{
|
|
1291
|
-
_meta: z.ZodOptional<z.
|
|
2271
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2272
|
+
/**
|
|
2273
|
+
* If specified, this result is related to the provided task.
|
|
2274
|
+
*/
|
|
2275
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2276
|
+
taskId: z.ZodString;
|
|
2277
|
+
}, z.core.$loose>>;
|
|
2278
|
+
}, z.core.$loose>>;
|
|
1292
2279
|
toolResult: z.ZodUnknown;
|
|
1293
2280
|
}, z.core.$loose>]>;
|
|
1294
2281
|
/**
|
|
1295
2282
|
* Parameters for a `tools/call` request.
|
|
1296
2283
|
*/
|
|
1297
2284
|
export declare const CallToolRequestParamsSchema: z.ZodObject<{
|
|
2285
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
2286
|
+
/**
|
|
2287
|
+
* Time in milliseconds to keep task results available after completion.
|
|
2288
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
2289
|
+
*/
|
|
2290
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Time in milliseconds to wait between task status requests.
|
|
2293
|
+
*/
|
|
2294
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
2295
|
+
}, z.core.$loose>>;
|
|
1298
2296
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1299
2297
|
/**
|
|
1300
2298
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1301
2299
|
*/
|
|
1302
2300
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2301
|
+
/**
|
|
2302
|
+
* If specified, this request is related to the provided task.
|
|
2303
|
+
*/
|
|
2304
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2305
|
+
taskId: z.ZodString;
|
|
2306
|
+
}, z.core.$loose>>;
|
|
1303
2307
|
}, z.core.$loose>>;
|
|
1304
2308
|
name: z.ZodString;
|
|
1305
2309
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1310,11 +2314,28 @@ export declare const CallToolRequestParamsSchema: z.ZodObject<{
|
|
|
1310
2314
|
export declare const CallToolRequestSchema: z.ZodObject<{
|
|
1311
2315
|
method: z.ZodLiteral<"tools/call">;
|
|
1312
2316
|
params: z.ZodObject<{
|
|
2317
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
2318
|
+
/**
|
|
2319
|
+
* Time in milliseconds to keep task results available after completion.
|
|
2320
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
2321
|
+
*/
|
|
2322
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2323
|
+
/**
|
|
2324
|
+
* Time in milliseconds to wait between task status requests.
|
|
2325
|
+
*/
|
|
2326
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
2327
|
+
}, z.core.$loose>>;
|
|
1313
2328
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1314
2329
|
/**
|
|
1315
2330
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1316
2331
|
*/
|
|
1317
2332
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2333
|
+
/**
|
|
2334
|
+
* If specified, this request is related to the provided task.
|
|
2335
|
+
*/
|
|
2336
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2337
|
+
taskId: z.ZodString;
|
|
2338
|
+
}, z.core.$loose>>;
|
|
1318
2339
|
}, z.core.$loose>>;
|
|
1319
2340
|
name: z.ZodString;
|
|
1320
2341
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1329,7 +2350,11 @@ export declare const ToolListChangedNotificationSchema: z.ZodObject<{
|
|
|
1329
2350
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1330
2351
|
* for notes on _meta usage.
|
|
1331
2352
|
*/
|
|
1332
|
-
_meta: z.ZodOptional<z.
|
|
2353
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2354
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2355
|
+
taskId: z.ZodString;
|
|
2356
|
+
}, z.core.$loose>>;
|
|
2357
|
+
}, z.core.$loose>>;
|
|
1333
2358
|
}, z.core.$loose>>;
|
|
1334
2359
|
method: z.ZodLiteral<"notifications/tools/list_changed">;
|
|
1335
2360
|
}, z.core.$strip>;
|
|
@@ -1350,11 +2375,28 @@ export declare const LoggingLevelSchema: z.ZodEnum<{
|
|
|
1350
2375
|
* Parameters for a `logging/setLevel` request.
|
|
1351
2376
|
*/
|
|
1352
2377
|
export declare const SetLevelRequestParamsSchema: z.ZodObject<{
|
|
2378
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
2379
|
+
/**
|
|
2380
|
+
* Time in milliseconds to keep task results available after completion.
|
|
2381
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
2382
|
+
*/
|
|
2383
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2384
|
+
/**
|
|
2385
|
+
* Time in milliseconds to wait between task status requests.
|
|
2386
|
+
*/
|
|
2387
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
2388
|
+
}, z.core.$loose>>;
|
|
1353
2389
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1354
2390
|
/**
|
|
1355
2391
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1356
2392
|
*/
|
|
1357
2393
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2394
|
+
/**
|
|
2395
|
+
* If specified, this request is related to the provided task.
|
|
2396
|
+
*/
|
|
2397
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2398
|
+
taskId: z.ZodString;
|
|
2399
|
+
}, z.core.$loose>>;
|
|
1358
2400
|
}, z.core.$loose>>;
|
|
1359
2401
|
level: z.ZodEnum<{
|
|
1360
2402
|
error: "error";
|
|
@@ -1373,11 +2415,28 @@ export declare const SetLevelRequestParamsSchema: z.ZodObject<{
|
|
|
1373
2415
|
export declare const SetLevelRequestSchema: z.ZodObject<{
|
|
1374
2416
|
method: z.ZodLiteral<"logging/setLevel">;
|
|
1375
2417
|
params: z.ZodObject<{
|
|
2418
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
2419
|
+
/**
|
|
2420
|
+
* Time in milliseconds to keep task results available after completion.
|
|
2421
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
2422
|
+
*/
|
|
2423
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2424
|
+
/**
|
|
2425
|
+
* Time in milliseconds to wait between task status requests.
|
|
2426
|
+
*/
|
|
2427
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
2428
|
+
}, z.core.$loose>>;
|
|
1376
2429
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1377
2430
|
/**
|
|
1378
2431
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1379
2432
|
*/
|
|
1380
2433
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2434
|
+
/**
|
|
2435
|
+
* If specified, this request is related to the provided task.
|
|
2436
|
+
*/
|
|
2437
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2438
|
+
taskId: z.ZodString;
|
|
2439
|
+
}, z.core.$loose>>;
|
|
1381
2440
|
}, z.core.$loose>>;
|
|
1382
2441
|
level: z.ZodEnum<{
|
|
1383
2442
|
error: "error";
|
|
@@ -1395,7 +2454,11 @@ export declare const SetLevelRequestSchema: z.ZodObject<{
|
|
|
1395
2454
|
* Parameters for a `notifications/message` notification.
|
|
1396
2455
|
*/
|
|
1397
2456
|
export declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{
|
|
1398
|
-
_meta: z.ZodOptional<z.
|
|
2457
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2458
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2459
|
+
taskId: z.ZodString;
|
|
2460
|
+
}, z.core.$loose>>;
|
|
2461
|
+
}, z.core.$loose>>;
|
|
1399
2462
|
level: z.ZodEnum<{
|
|
1400
2463
|
error: "error";
|
|
1401
2464
|
debug: "debug";
|
|
@@ -1415,7 +2478,11 @@ export declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{
|
|
|
1415
2478
|
export declare const LoggingMessageNotificationSchema: z.ZodObject<{
|
|
1416
2479
|
method: z.ZodLiteral<"notifications/message">;
|
|
1417
2480
|
params: z.ZodObject<{
|
|
1418
|
-
_meta: z.ZodOptional<z.
|
|
2481
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
2482
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2483
|
+
taskId: z.ZodString;
|
|
2484
|
+
}, z.core.$loose>>;
|
|
2485
|
+
}, z.core.$loose>>;
|
|
1419
2486
|
level: z.ZodEnum<{
|
|
1420
2487
|
error: "error";
|
|
1421
2488
|
debug: "debug";
|
|
@@ -1510,6 +2577,25 @@ export declare const ToolResultContentSchema: z.ZodObject<{
|
|
|
1510
2577
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1511
2578
|
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
1512
2579
|
}, z.core.$loose>;
|
|
2580
|
+
/**
|
|
2581
|
+
* Basic content types for sampling responses (without tool use).
|
|
2582
|
+
* Used for backwards-compatible CreateMessageResult when tools are not used.
|
|
2583
|
+
*/
|
|
2584
|
+
export declare const SamplingContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2585
|
+
type: z.ZodLiteral<"text">;
|
|
2586
|
+
text: z.ZodString;
|
|
2587
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2588
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2589
|
+
type: z.ZodLiteral<"image">;
|
|
2590
|
+
data: z.ZodString;
|
|
2591
|
+
mimeType: z.ZodString;
|
|
2592
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2594
|
+
type: z.ZodLiteral<"audio">;
|
|
2595
|
+
data: z.ZodString;
|
|
2596
|
+
mimeType: z.ZodString;
|
|
2597
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2598
|
+
}, z.core.$strip>]>;
|
|
1513
2599
|
/**
|
|
1514
2600
|
* Content block types allowed in sampling messages.
|
|
1515
2601
|
* This includes text, image, audio, tool use requests, and tool results.
|
|
@@ -1734,11 +2820,28 @@ export declare const SamplingMessageSchema: z.ZodObject<{
|
|
|
1734
2820
|
* Parameters for a `sampling/createMessage` request.
|
|
1735
2821
|
*/
|
|
1736
2822
|
export declare const CreateMessageRequestParamsSchema: z.ZodObject<{
|
|
2823
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
2824
|
+
/**
|
|
2825
|
+
* Time in milliseconds to keep task results available after completion.
|
|
2826
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
2827
|
+
*/
|
|
2828
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
2829
|
+
/**
|
|
2830
|
+
* Time in milliseconds to wait between task status requests.
|
|
2831
|
+
*/
|
|
2832
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
2833
|
+
}, z.core.$loose>>;
|
|
1737
2834
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1738
2835
|
/**
|
|
1739
2836
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1740
2837
|
*/
|
|
1741
2838
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2839
|
+
/**
|
|
2840
|
+
* If specified, this request is related to the provided task.
|
|
2841
|
+
*/
|
|
2842
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
2843
|
+
taskId: z.ZodString;
|
|
2844
|
+
}, z.core.$loose>>;
|
|
1742
2845
|
}, z.core.$loose>>;
|
|
1743
2846
|
messages: z.ZodArray<z.ZodObject<{
|
|
1744
2847
|
role: z.ZodEnum<{
|
|
@@ -1921,6 +3024,13 @@ export declare const CreateMessageRequestParamsSchema: z.ZodObject<{
|
|
|
1921
3024
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1922
3025
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1923
3026
|
}, z.core.$strip>>;
|
|
3027
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
3028
|
+
taskSupport: z.ZodOptional<z.ZodEnum<{
|
|
3029
|
+
optional: "optional";
|
|
3030
|
+
required: "required";
|
|
3031
|
+
forbidden: "forbidden";
|
|
3032
|
+
}>>;
|
|
3033
|
+
}, z.core.$strip>>;
|
|
1924
3034
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1925
3035
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1926
3036
|
src: z.ZodString;
|
|
@@ -1944,11 +3054,28 @@ export declare const CreateMessageRequestParamsSchema: z.ZodObject<{
|
|
|
1944
3054
|
export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
1945
3055
|
method: z.ZodLiteral<"sampling/createMessage">;
|
|
1946
3056
|
params: z.ZodObject<{
|
|
3057
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
3058
|
+
/**
|
|
3059
|
+
* Time in milliseconds to keep task results available after completion.
|
|
3060
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
3061
|
+
*/
|
|
3062
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3063
|
+
/**
|
|
3064
|
+
* Time in milliseconds to wait between task status requests.
|
|
3065
|
+
*/
|
|
3066
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
3067
|
+
}, z.core.$loose>>;
|
|
1947
3068
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1948
3069
|
/**
|
|
1949
3070
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
1950
3071
|
*/
|
|
1951
3072
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
3073
|
+
/**
|
|
3074
|
+
* If specified, this request is related to the provided task.
|
|
3075
|
+
*/
|
|
3076
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
3077
|
+
taskId: z.ZodString;
|
|
3078
|
+
}, z.core.$loose>>;
|
|
1952
3079
|
}, z.core.$loose>>;
|
|
1953
3080
|
messages: z.ZodArray<z.ZodObject<{
|
|
1954
3081
|
role: z.ZodEnum<{
|
|
@@ -2131,6 +3258,13 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
|
2131
3258
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
2132
3259
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
2133
3260
|
}, z.core.$strip>>;
|
|
3261
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
3262
|
+
taskSupport: z.ZodOptional<z.ZodEnum<{
|
|
3263
|
+
optional: "optional";
|
|
3264
|
+
required: "required";
|
|
3265
|
+
forbidden: "forbidden";
|
|
3266
|
+
}>>;
|
|
3267
|
+
}, z.core.$strip>>;
|
|
2134
3268
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2135
3269
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2136
3270
|
src: z.ZodString;
|
|
@@ -2150,10 +3284,58 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
|
2150
3284
|
}, z.core.$loose>;
|
|
2151
3285
|
}, z.core.$strip>;
|
|
2152
3286
|
/**
|
|
2153
|
-
* The client's response to a sampling/create_message request from the server.
|
|
3287
|
+
* The client's response to a sampling/create_message request from the server.
|
|
3288
|
+
* This is the backwards-compatible version that returns single content (no arrays).
|
|
3289
|
+
* Used when the request does not include tools.
|
|
2154
3290
|
*/
|
|
2155
3291
|
export declare const CreateMessageResultSchema: z.ZodObject<{
|
|
2156
|
-
_meta: z.ZodOptional<z.
|
|
3292
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
3293
|
+
/**
|
|
3294
|
+
* If specified, this result is related to the provided task.
|
|
3295
|
+
*/
|
|
3296
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
3297
|
+
taskId: z.ZodString;
|
|
3298
|
+
}, z.core.$loose>>;
|
|
3299
|
+
}, z.core.$loose>>;
|
|
3300
|
+
model: z.ZodString;
|
|
3301
|
+
stopReason: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
3302
|
+
maxTokens: "maxTokens";
|
|
3303
|
+
endTurn: "endTurn";
|
|
3304
|
+
stopSequence: "stopSequence";
|
|
3305
|
+
}>, z.ZodString]>>;
|
|
3306
|
+
role: z.ZodEnum<{
|
|
3307
|
+
user: "user";
|
|
3308
|
+
assistant: "assistant";
|
|
3309
|
+
}>;
|
|
3310
|
+
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3311
|
+
type: z.ZodLiteral<"text">;
|
|
3312
|
+
text: z.ZodString;
|
|
3313
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3315
|
+
type: z.ZodLiteral<"image">;
|
|
3316
|
+
data: z.ZodString;
|
|
3317
|
+
mimeType: z.ZodString;
|
|
3318
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3319
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3320
|
+
type: z.ZodLiteral<"audio">;
|
|
3321
|
+
data: z.ZodString;
|
|
3322
|
+
mimeType: z.ZodString;
|
|
3323
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3324
|
+
}, z.core.$strip>]>;
|
|
3325
|
+
}, z.core.$loose>;
|
|
3326
|
+
/**
|
|
3327
|
+
* The client's response to a sampling/create_message request when tools were provided.
|
|
3328
|
+
* This version supports array content for tool use flows.
|
|
3329
|
+
*/
|
|
3330
|
+
export declare const CreateMessageResultWithToolsSchema: z.ZodObject<{
|
|
3331
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
3332
|
+
/**
|
|
3333
|
+
* If specified, this result is related to the provided task.
|
|
3334
|
+
*/
|
|
3335
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
3336
|
+
taskId: z.ZodString;
|
|
3337
|
+
}, z.core.$loose>>;
|
|
3338
|
+
}, z.core.$loose>>;
|
|
2157
3339
|
model: z.ZodString;
|
|
2158
3340
|
stopReason: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
2159
3341
|
maxTokens: "maxTokens";
|
|
@@ -2586,11 +3768,28 @@ export declare const PrimitiveSchemaDefinitionSchema: z.ZodUnion<readonly [z.Zod
|
|
|
2586
3768
|
* Parameters for an `elicitation/create` request for form-based elicitation.
|
|
2587
3769
|
*/
|
|
2588
3770
|
export declare const ElicitRequestFormParamsSchema: z.ZodObject<{
|
|
3771
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
3772
|
+
/**
|
|
3773
|
+
* Time in milliseconds to keep task results available after completion.
|
|
3774
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
3775
|
+
*/
|
|
3776
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3777
|
+
/**
|
|
3778
|
+
* Time in milliseconds to wait between task status requests.
|
|
3779
|
+
*/
|
|
3780
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
3781
|
+
}, z.core.$loose>>;
|
|
2589
3782
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2590
3783
|
/**
|
|
2591
3784
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2592
3785
|
*/
|
|
2593
3786
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
3787
|
+
/**
|
|
3788
|
+
* If specified, this request is related to the provided task.
|
|
3789
|
+
*/
|
|
3790
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
3791
|
+
taskId: z.ZodString;
|
|
3792
|
+
}, z.core.$loose>>;
|
|
2594
3793
|
}, z.core.$loose>>;
|
|
2595
3794
|
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
2596
3795
|
message: z.ZodString;
|
|
@@ -2678,11 +3877,28 @@ export declare const ElicitRequestFormParamsSchema: z.ZodObject<{
|
|
|
2678
3877
|
* Parameters for an `elicitation/create` request for URL-based elicitation.
|
|
2679
3878
|
*/
|
|
2680
3879
|
export declare const ElicitRequestURLParamsSchema: z.ZodObject<{
|
|
3880
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
3881
|
+
/**
|
|
3882
|
+
* Time in milliseconds to keep task results available after completion.
|
|
3883
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
3884
|
+
*/
|
|
3885
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3886
|
+
/**
|
|
3887
|
+
* Time in milliseconds to wait between task status requests.
|
|
3888
|
+
*/
|
|
3889
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
3890
|
+
}, z.core.$loose>>;
|
|
2681
3891
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2682
3892
|
/**
|
|
2683
3893
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2684
3894
|
*/
|
|
2685
3895
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
3896
|
+
/**
|
|
3897
|
+
* If specified, this request is related to the provided task.
|
|
3898
|
+
*/
|
|
3899
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
3900
|
+
taskId: z.ZodString;
|
|
3901
|
+
}, z.core.$loose>>;
|
|
2686
3902
|
}, z.core.$loose>>;
|
|
2687
3903
|
mode: z.ZodLiteral<"url">;
|
|
2688
3904
|
message: z.ZodString;
|
|
@@ -2693,11 +3909,28 @@ export declare const ElicitRequestURLParamsSchema: z.ZodObject<{
|
|
|
2693
3909
|
* The parameters for a request to elicit additional information from the user via the client.
|
|
2694
3910
|
*/
|
|
2695
3911
|
export declare const ElicitRequestParamsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3912
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
3913
|
+
/**
|
|
3914
|
+
* Time in milliseconds to keep task results available after completion.
|
|
3915
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
3916
|
+
*/
|
|
3917
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3918
|
+
/**
|
|
3919
|
+
* Time in milliseconds to wait between task status requests.
|
|
3920
|
+
*/
|
|
3921
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
3922
|
+
}, z.core.$loose>>;
|
|
2696
3923
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2697
3924
|
/**
|
|
2698
3925
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2699
3926
|
*/
|
|
2700
3927
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
3928
|
+
/**
|
|
3929
|
+
* If specified, this request is related to the provided task.
|
|
3930
|
+
*/
|
|
3931
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
3932
|
+
taskId: z.ZodString;
|
|
3933
|
+
}, z.core.$loose>>;
|
|
2701
3934
|
}, z.core.$loose>>;
|
|
2702
3935
|
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
2703
3936
|
message: z.ZodString;
|
|
@@ -2781,11 +4014,28 @@ export declare const ElicitRequestParamsSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
2781
4014
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2782
4015
|
}, z.core.$strip>;
|
|
2783
4016
|
}, z.core.$loose>, z.ZodObject<{
|
|
4017
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4018
|
+
/**
|
|
4019
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4020
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4021
|
+
*/
|
|
4022
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4023
|
+
/**
|
|
4024
|
+
* Time in milliseconds to wait between task status requests.
|
|
4025
|
+
*/
|
|
4026
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4027
|
+
}, z.core.$loose>>;
|
|
2784
4028
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2785
4029
|
/**
|
|
2786
4030
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2787
4031
|
*/
|
|
2788
4032
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4033
|
+
/**
|
|
4034
|
+
* If specified, this request is related to the provided task.
|
|
4035
|
+
*/
|
|
4036
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4037
|
+
taskId: z.ZodString;
|
|
4038
|
+
}, z.core.$loose>>;
|
|
2789
4039
|
}, z.core.$loose>>;
|
|
2790
4040
|
mode: z.ZodLiteral<"url">;
|
|
2791
4041
|
message: z.ZodString;
|
|
@@ -2800,11 +4050,28 @@ export declare const ElicitRequestParamsSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
2800
4050
|
export declare const ElicitRequestSchema: z.ZodObject<{
|
|
2801
4051
|
method: z.ZodLiteral<"elicitation/create">;
|
|
2802
4052
|
params: z.ZodUnion<readonly [z.ZodObject<{
|
|
4053
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4054
|
+
/**
|
|
4055
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4056
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4057
|
+
*/
|
|
4058
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4059
|
+
/**
|
|
4060
|
+
* Time in milliseconds to wait between task status requests.
|
|
4061
|
+
*/
|
|
4062
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4063
|
+
}, z.core.$loose>>;
|
|
2803
4064
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2804
4065
|
/**
|
|
2805
4066
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2806
4067
|
*/
|
|
2807
4068
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4069
|
+
/**
|
|
4070
|
+
* If specified, this request is related to the provided task.
|
|
4071
|
+
*/
|
|
4072
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4073
|
+
taskId: z.ZodString;
|
|
4074
|
+
}, z.core.$loose>>;
|
|
2808
4075
|
}, z.core.$loose>>;
|
|
2809
4076
|
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
2810
4077
|
message: z.ZodString;
|
|
@@ -2888,11 +4155,28 @@ export declare const ElicitRequestSchema: z.ZodObject<{
|
|
|
2888
4155
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2889
4156
|
}, z.core.$strip>;
|
|
2890
4157
|
}, z.core.$loose>, z.ZodObject<{
|
|
4158
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4159
|
+
/**
|
|
4160
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4161
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4162
|
+
*/
|
|
4163
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4164
|
+
/**
|
|
4165
|
+
* Time in milliseconds to wait between task status requests.
|
|
4166
|
+
*/
|
|
4167
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4168
|
+
}, z.core.$loose>>;
|
|
2891
4169
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2892
4170
|
/**
|
|
2893
4171
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2894
4172
|
*/
|
|
2895
4173
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4174
|
+
/**
|
|
4175
|
+
* If specified, this request is related to the provided task.
|
|
4176
|
+
*/
|
|
4177
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4178
|
+
taskId: z.ZodString;
|
|
4179
|
+
}, z.core.$loose>>;
|
|
2896
4180
|
}, z.core.$loose>>;
|
|
2897
4181
|
mode: z.ZodLiteral<"url">;
|
|
2898
4182
|
message: z.ZodString;
|
|
@@ -2906,7 +4190,11 @@ export declare const ElicitRequestSchema: z.ZodObject<{
|
|
|
2906
4190
|
* @category notifications/elicitation/complete
|
|
2907
4191
|
*/
|
|
2908
4192
|
export declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{
|
|
2909
|
-
_meta: z.ZodOptional<z.
|
|
4193
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4194
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4195
|
+
taskId: z.ZodString;
|
|
4196
|
+
}, z.core.$loose>>;
|
|
4197
|
+
}, z.core.$loose>>;
|
|
2910
4198
|
elicitationId: z.ZodString;
|
|
2911
4199
|
}, z.core.$loose>;
|
|
2912
4200
|
/**
|
|
@@ -2917,7 +4205,11 @@ export declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{
|
|
|
2917
4205
|
export declare const ElicitationCompleteNotificationSchema: z.ZodObject<{
|
|
2918
4206
|
method: z.ZodLiteral<"notifications/elicitation/complete">;
|
|
2919
4207
|
params: z.ZodObject<{
|
|
2920
|
-
_meta: z.ZodOptional<z.
|
|
4208
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4209
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4210
|
+
taskId: z.ZodString;
|
|
4211
|
+
}, z.core.$loose>>;
|
|
4212
|
+
}, z.core.$loose>>;
|
|
2921
4213
|
elicitationId: z.ZodString;
|
|
2922
4214
|
}, z.core.$loose>;
|
|
2923
4215
|
}, z.core.$strip>;
|
|
@@ -2925,13 +4217,20 @@ export declare const ElicitationCompleteNotificationSchema: z.ZodObject<{
|
|
|
2925
4217
|
* The client's response to an elicitation/create request from the server.
|
|
2926
4218
|
*/
|
|
2927
4219
|
export declare const ElicitResultSchema: z.ZodObject<{
|
|
2928
|
-
_meta: z.ZodOptional<z.
|
|
4220
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4221
|
+
/**
|
|
4222
|
+
* If specified, this result is related to the provided task.
|
|
4223
|
+
*/
|
|
4224
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4225
|
+
taskId: z.ZodString;
|
|
4226
|
+
}, z.core.$loose>>;
|
|
4227
|
+
}, z.core.$loose>>;
|
|
2929
4228
|
action: z.ZodEnum<{
|
|
4229
|
+
cancel: "cancel";
|
|
2930
4230
|
accept: "accept";
|
|
2931
4231
|
decline: "decline";
|
|
2932
|
-
cancel: "cancel";
|
|
2933
4232
|
}>;
|
|
2934
|
-
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]
|
|
4233
|
+
content: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>>;
|
|
2935
4234
|
}, z.core.$loose>;
|
|
2936
4235
|
/**
|
|
2937
4236
|
* A reference to a resource or resource template definition.
|
|
@@ -2958,11 +4257,28 @@ export declare const PromptReferenceSchema: z.ZodObject<{
|
|
|
2958
4257
|
* Parameters for a `completion/complete` request.
|
|
2959
4258
|
*/
|
|
2960
4259
|
export declare const CompleteRequestParamsSchema: z.ZodObject<{
|
|
4260
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4261
|
+
/**
|
|
4262
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4263
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4264
|
+
*/
|
|
4265
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4266
|
+
/**
|
|
4267
|
+
* Time in milliseconds to wait between task status requests.
|
|
4268
|
+
*/
|
|
4269
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4270
|
+
}, z.core.$loose>>;
|
|
2961
4271
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2962
4272
|
/**
|
|
2963
4273
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2964
4274
|
*/
|
|
2965
4275
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4276
|
+
/**
|
|
4277
|
+
* If specified, this request is related to the provided task.
|
|
4278
|
+
*/
|
|
4279
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4280
|
+
taskId: z.ZodString;
|
|
4281
|
+
}, z.core.$loose>>;
|
|
2966
4282
|
}, z.core.$loose>>;
|
|
2967
4283
|
ref: z.ZodUnion<readonly [z.ZodObject<{
|
|
2968
4284
|
type: z.ZodLiteral<"ref/prompt">;
|
|
@@ -2985,11 +4301,28 @@ export declare const CompleteRequestParamsSchema: z.ZodObject<{
|
|
|
2985
4301
|
export declare const CompleteRequestSchema: z.ZodObject<{
|
|
2986
4302
|
method: z.ZodLiteral<"completion/complete">;
|
|
2987
4303
|
params: z.ZodObject<{
|
|
4304
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4305
|
+
/**
|
|
4306
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4307
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4308
|
+
*/
|
|
4309
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4310
|
+
/**
|
|
4311
|
+
* Time in milliseconds to wait between task status requests.
|
|
4312
|
+
*/
|
|
4313
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4314
|
+
}, z.core.$loose>>;
|
|
2988
4315
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2989
4316
|
/**
|
|
2990
4317
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
2991
4318
|
*/
|
|
2992
4319
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4320
|
+
/**
|
|
4321
|
+
* If specified, this request is related to the provided task.
|
|
4322
|
+
*/
|
|
4323
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4324
|
+
taskId: z.ZodString;
|
|
4325
|
+
}, z.core.$loose>>;
|
|
2993
4326
|
}, z.core.$loose>>;
|
|
2994
4327
|
ref: z.ZodUnion<readonly [z.ZodObject<{
|
|
2995
4328
|
type: z.ZodLiteral<"ref/prompt">;
|
|
@@ -3013,7 +4346,14 @@ export declare function assertCompleteRequestResourceTemplate(request: CompleteR
|
|
|
3013
4346
|
* The server's response to a completion/complete request
|
|
3014
4347
|
*/
|
|
3015
4348
|
export declare const CompleteResultSchema: z.ZodObject<{
|
|
3016
|
-
_meta: z.ZodOptional<z.
|
|
4349
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4350
|
+
/**
|
|
4351
|
+
* If specified, this result is related to the provided task.
|
|
4352
|
+
*/
|
|
4353
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4354
|
+
taskId: z.ZodString;
|
|
4355
|
+
}, z.core.$loose>>;
|
|
4356
|
+
}, z.core.$loose>>;
|
|
3017
4357
|
completion: z.ZodObject<{
|
|
3018
4358
|
/**
|
|
3019
4359
|
* An array of completion values. Must not exceed 100 items.
|
|
@@ -3042,6 +4382,21 @@ export declare const RootSchema: z.ZodObject<{
|
|
|
3042
4382
|
*/
|
|
3043
4383
|
export declare const ListRootsRequestSchema: z.ZodObject<{
|
|
3044
4384
|
params: z.ZodOptional<z.ZodObject<{
|
|
4385
|
+
/**
|
|
4386
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
4387
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
4388
|
+
*/
|
|
4389
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4390
|
+
/**
|
|
4391
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4392
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4393
|
+
*/
|
|
4394
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4395
|
+
/**
|
|
4396
|
+
* Time in milliseconds to wait between task status requests.
|
|
4397
|
+
*/
|
|
4398
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4399
|
+
}, z.core.$loose>>;
|
|
3045
4400
|
/**
|
|
3046
4401
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3047
4402
|
*/
|
|
@@ -3050,6 +4405,12 @@ export declare const ListRootsRequestSchema: z.ZodObject<{
|
|
|
3050
4405
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3051
4406
|
*/
|
|
3052
4407
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4408
|
+
/**
|
|
4409
|
+
* If specified, this request is related to the provided task.
|
|
4410
|
+
*/
|
|
4411
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4412
|
+
taskId: z.ZodString;
|
|
4413
|
+
}, z.core.$loose>>;
|
|
3053
4414
|
}, z.core.$loose>>;
|
|
3054
4415
|
}, z.core.$loose>>;
|
|
3055
4416
|
method: z.ZodLiteral<"roots/list">;
|
|
@@ -3058,7 +4419,14 @@ export declare const ListRootsRequestSchema: z.ZodObject<{
|
|
|
3058
4419
|
* The client's response to a roots/list request from the server.
|
|
3059
4420
|
*/
|
|
3060
4421
|
export declare const ListRootsResultSchema: z.ZodObject<{
|
|
3061
|
-
_meta: z.ZodOptional<z.
|
|
4422
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4423
|
+
/**
|
|
4424
|
+
* If specified, this result is related to the provided task.
|
|
4425
|
+
*/
|
|
4426
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4427
|
+
taskId: z.ZodString;
|
|
4428
|
+
}, z.core.$loose>>;
|
|
4429
|
+
}, z.core.$loose>>;
|
|
3062
4430
|
roots: z.ZodArray<z.ZodObject<{
|
|
3063
4431
|
uri: z.ZodString;
|
|
3064
4432
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3074,12 +4442,31 @@ export declare const RootsListChangedNotificationSchema: z.ZodObject<{
|
|
|
3074
4442
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3075
4443
|
* for notes on _meta usage.
|
|
3076
4444
|
*/
|
|
3077
|
-
_meta: z.ZodOptional<z.
|
|
4445
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4446
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4447
|
+
taskId: z.ZodString;
|
|
4448
|
+
}, z.core.$loose>>;
|
|
4449
|
+
}, z.core.$loose>>;
|
|
3078
4450
|
}, z.core.$loose>>;
|
|
3079
4451
|
method: z.ZodLiteral<"notifications/roots/list_changed">;
|
|
3080
4452
|
}, z.core.$strip>;
|
|
3081
4453
|
export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3082
4454
|
params: z.ZodOptional<z.ZodObject<{
|
|
4455
|
+
/**
|
|
4456
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
4457
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
4458
|
+
*/
|
|
4459
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4460
|
+
/**
|
|
4461
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4462
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4463
|
+
*/
|
|
4464
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4465
|
+
/**
|
|
4466
|
+
* Time in milliseconds to wait between task status requests.
|
|
4467
|
+
*/
|
|
4468
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4469
|
+
}, z.core.$loose>>;
|
|
3083
4470
|
/**
|
|
3084
4471
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3085
4472
|
*/
|
|
@@ -3088,17 +4475,40 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3088
4475
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3089
4476
|
*/
|
|
3090
4477
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4478
|
+
/**
|
|
4479
|
+
* If specified, this request is related to the provided task.
|
|
4480
|
+
*/
|
|
4481
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4482
|
+
taskId: z.ZodString;
|
|
4483
|
+
}, z.core.$loose>>;
|
|
3091
4484
|
}, z.core.$loose>>;
|
|
3092
4485
|
}, z.core.$loose>>;
|
|
3093
4486
|
method: z.ZodLiteral<"ping">;
|
|
3094
4487
|
}, z.core.$strip>, z.ZodObject<{
|
|
3095
4488
|
method: z.ZodLiteral<"initialize">;
|
|
3096
4489
|
params: z.ZodObject<{
|
|
4490
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4491
|
+
/**
|
|
4492
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4493
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4494
|
+
*/
|
|
4495
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4496
|
+
/**
|
|
4497
|
+
* Time in milliseconds to wait between task status requests.
|
|
4498
|
+
*/
|
|
4499
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4500
|
+
}, z.core.$loose>>;
|
|
3097
4501
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3098
4502
|
/**
|
|
3099
4503
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3100
4504
|
*/
|
|
3101
4505
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4506
|
+
/**
|
|
4507
|
+
* If specified, this request is related to the provided task.
|
|
4508
|
+
*/
|
|
4509
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4510
|
+
taskId: z.ZodString;
|
|
4511
|
+
}, z.core.$loose>>;
|
|
3102
4512
|
}, z.core.$loose>>;
|
|
3103
4513
|
protocolVersion: z.ZodString;
|
|
3104
4514
|
capabilities: z.ZodObject<{
|
|
@@ -3116,6 +4526,18 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3116
4526
|
roots: z.ZodOptional<z.ZodObject<{
|
|
3117
4527
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
3118
4528
|
}, z.core.$strip>>;
|
|
4529
|
+
tasks: z.ZodOptional<z.ZodObject<{
|
|
4530
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
4531
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
4532
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
4533
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
4534
|
+
createMessage: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
4535
|
+
}, z.core.$loose>>;
|
|
4536
|
+
elicitation: z.ZodOptional<z.ZodObject<{
|
|
4537
|
+
create: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
4538
|
+
}, z.core.$loose>>;
|
|
4539
|
+
}, z.core.$loose>>;
|
|
4540
|
+
}, z.core.$loose>>;
|
|
3119
4541
|
}, z.core.$strip>;
|
|
3120
4542
|
clientInfo: z.ZodObject<{
|
|
3121
4543
|
version: z.ZodString;
|
|
@@ -3132,11 +4554,28 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3132
4554
|
}, z.core.$strip>, z.ZodObject<{
|
|
3133
4555
|
method: z.ZodLiteral<"completion/complete">;
|
|
3134
4556
|
params: z.ZodObject<{
|
|
4557
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4558
|
+
/**
|
|
4559
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4560
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4561
|
+
*/
|
|
4562
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4563
|
+
/**
|
|
4564
|
+
* Time in milliseconds to wait between task status requests.
|
|
4565
|
+
*/
|
|
4566
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4567
|
+
}, z.core.$loose>>;
|
|
3135
4568
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3136
4569
|
/**
|
|
3137
4570
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3138
4571
|
*/
|
|
3139
4572
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4573
|
+
/**
|
|
4574
|
+
* If specified, this request is related to the provided task.
|
|
4575
|
+
*/
|
|
4576
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4577
|
+
taskId: z.ZodString;
|
|
4578
|
+
}, z.core.$loose>>;
|
|
3140
4579
|
}, z.core.$loose>>;
|
|
3141
4580
|
ref: z.ZodUnion<readonly [z.ZodObject<{
|
|
3142
4581
|
type: z.ZodLiteral<"ref/prompt">;
|
|
@@ -3156,11 +4595,28 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3156
4595
|
}, z.core.$strip>, z.ZodObject<{
|
|
3157
4596
|
method: z.ZodLiteral<"logging/setLevel">;
|
|
3158
4597
|
params: z.ZodObject<{
|
|
4598
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4599
|
+
/**
|
|
4600
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4601
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4602
|
+
*/
|
|
4603
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4604
|
+
/**
|
|
4605
|
+
* Time in milliseconds to wait between task status requests.
|
|
4606
|
+
*/
|
|
4607
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4608
|
+
}, z.core.$loose>>;
|
|
3159
4609
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3160
4610
|
/**
|
|
3161
4611
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3162
4612
|
*/
|
|
3163
4613
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4614
|
+
/**
|
|
4615
|
+
* If specified, this request is related to the provided task.
|
|
4616
|
+
*/
|
|
4617
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4618
|
+
taskId: z.ZodString;
|
|
4619
|
+
}, z.core.$loose>>;
|
|
3164
4620
|
}, z.core.$loose>>;
|
|
3165
4621
|
level: z.ZodEnum<{
|
|
3166
4622
|
error: "error";
|
|
@@ -3176,44 +4632,112 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3176
4632
|
}, z.core.$strip>, z.ZodObject<{
|
|
3177
4633
|
method: z.ZodLiteral<"prompts/get">;
|
|
3178
4634
|
params: z.ZodObject<{
|
|
4635
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4636
|
+
/**
|
|
4637
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4638
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4639
|
+
*/
|
|
4640
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4641
|
+
/**
|
|
4642
|
+
* Time in milliseconds to wait between task status requests.
|
|
4643
|
+
*/
|
|
4644
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4645
|
+
}, z.core.$loose>>;
|
|
3179
4646
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3180
4647
|
/**
|
|
3181
4648
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3182
4649
|
*/
|
|
3183
4650
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4651
|
+
/**
|
|
4652
|
+
* If specified, this request is related to the provided task.
|
|
4653
|
+
*/
|
|
4654
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4655
|
+
taskId: z.ZodString;
|
|
4656
|
+
}, z.core.$loose>>;
|
|
3184
4657
|
}, z.core.$loose>>;
|
|
3185
4658
|
name: z.ZodString;
|
|
3186
4659
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3187
4660
|
}, z.core.$loose>;
|
|
3188
4661
|
}, z.core.$strip>, z.ZodObject<{
|
|
3189
4662
|
params: z.ZodOptional<z.ZodObject<{
|
|
4663
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4664
|
+
/**
|
|
4665
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4666
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4667
|
+
*/
|
|
4668
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4669
|
+
/**
|
|
4670
|
+
* Time in milliseconds to wait between task status requests.
|
|
4671
|
+
*/
|
|
4672
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4673
|
+
}, z.core.$loose>>;
|
|
3190
4674
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3191
4675
|
/**
|
|
3192
4676
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3193
4677
|
*/
|
|
3194
4678
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4679
|
+
/**
|
|
4680
|
+
* If specified, this request is related to the provided task.
|
|
4681
|
+
*/
|
|
4682
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4683
|
+
taskId: z.ZodString;
|
|
4684
|
+
}, z.core.$loose>>;
|
|
3195
4685
|
}, z.core.$loose>>;
|
|
3196
4686
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3197
4687
|
}, z.core.$loose>>;
|
|
3198
4688
|
method: z.ZodLiteral<"prompts/list">;
|
|
3199
4689
|
}, z.core.$strip>, z.ZodObject<{
|
|
3200
4690
|
params: z.ZodOptional<z.ZodObject<{
|
|
4691
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4692
|
+
/**
|
|
4693
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4694
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4695
|
+
*/
|
|
4696
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4697
|
+
/**
|
|
4698
|
+
* Time in milliseconds to wait between task status requests.
|
|
4699
|
+
*/
|
|
4700
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4701
|
+
}, z.core.$loose>>;
|
|
3201
4702
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3202
4703
|
/**
|
|
3203
4704
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3204
4705
|
*/
|
|
3205
4706
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4707
|
+
/**
|
|
4708
|
+
* If specified, this request is related to the provided task.
|
|
4709
|
+
*/
|
|
4710
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4711
|
+
taskId: z.ZodString;
|
|
4712
|
+
}, z.core.$loose>>;
|
|
3206
4713
|
}, z.core.$loose>>;
|
|
3207
4714
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3208
4715
|
}, z.core.$loose>>;
|
|
3209
4716
|
method: z.ZodLiteral<"resources/list">;
|
|
3210
4717
|
}, z.core.$strip>, z.ZodObject<{
|
|
3211
4718
|
params: z.ZodOptional<z.ZodObject<{
|
|
4719
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4720
|
+
/**
|
|
4721
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4722
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4723
|
+
*/
|
|
4724
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4725
|
+
/**
|
|
4726
|
+
* Time in milliseconds to wait between task status requests.
|
|
4727
|
+
*/
|
|
4728
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4729
|
+
}, z.core.$loose>>;
|
|
3212
4730
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3213
4731
|
/**
|
|
3214
4732
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3215
4733
|
*/
|
|
3216
4734
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4735
|
+
/**
|
|
4736
|
+
* If specified, this request is related to the provided task.
|
|
4737
|
+
*/
|
|
4738
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4739
|
+
taskId: z.ZodString;
|
|
4740
|
+
}, z.core.$loose>>;
|
|
3217
4741
|
}, z.core.$loose>>;
|
|
3218
4742
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3219
4743
|
}, z.core.$loose>>;
|
|
@@ -3221,64 +4745,237 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3221
4745
|
}, z.core.$strip>, z.ZodObject<{
|
|
3222
4746
|
method: z.ZodLiteral<"resources/read">;
|
|
3223
4747
|
params: z.ZodObject<{
|
|
4748
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4749
|
+
/**
|
|
4750
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4751
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4752
|
+
*/
|
|
4753
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4754
|
+
/**
|
|
4755
|
+
* Time in milliseconds to wait between task status requests.
|
|
4756
|
+
*/
|
|
4757
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4758
|
+
}, z.core.$loose>>;
|
|
3224
4759
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3225
4760
|
/**
|
|
3226
4761
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3227
4762
|
*/
|
|
3228
4763
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4764
|
+
/**
|
|
4765
|
+
* If specified, this request is related to the provided task.
|
|
4766
|
+
*/
|
|
4767
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4768
|
+
taskId: z.ZodString;
|
|
4769
|
+
}, z.core.$loose>>;
|
|
3229
4770
|
}, z.core.$loose>>;
|
|
3230
4771
|
uri: z.ZodString;
|
|
3231
4772
|
}, z.core.$loose>;
|
|
3232
4773
|
}, z.core.$strip>, z.ZodObject<{
|
|
3233
4774
|
method: z.ZodLiteral<"resources/subscribe">;
|
|
3234
4775
|
params: z.ZodObject<{
|
|
4776
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4777
|
+
/**
|
|
4778
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4779
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4780
|
+
*/
|
|
4781
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4782
|
+
/**
|
|
4783
|
+
* Time in milliseconds to wait between task status requests.
|
|
4784
|
+
*/
|
|
4785
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4786
|
+
}, z.core.$loose>>;
|
|
3235
4787
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3236
4788
|
/**
|
|
3237
4789
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3238
4790
|
*/
|
|
3239
4791
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4792
|
+
/**
|
|
4793
|
+
* If specified, this request is related to the provided task.
|
|
4794
|
+
*/
|
|
4795
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4796
|
+
taskId: z.ZodString;
|
|
4797
|
+
}, z.core.$loose>>;
|
|
3240
4798
|
}, z.core.$loose>>;
|
|
3241
4799
|
uri: z.ZodString;
|
|
3242
4800
|
}, z.core.$loose>;
|
|
3243
4801
|
}, z.core.$strip>, z.ZodObject<{
|
|
3244
4802
|
method: z.ZodLiteral<"resources/unsubscribe">;
|
|
3245
4803
|
params: z.ZodObject<{
|
|
4804
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4805
|
+
/**
|
|
4806
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4807
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4808
|
+
*/
|
|
4809
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4810
|
+
/**
|
|
4811
|
+
* Time in milliseconds to wait between task status requests.
|
|
4812
|
+
*/
|
|
4813
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4814
|
+
}, z.core.$loose>>;
|
|
3246
4815
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3247
4816
|
/**
|
|
3248
4817
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3249
4818
|
*/
|
|
3250
4819
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4820
|
+
/**
|
|
4821
|
+
* If specified, this request is related to the provided task.
|
|
4822
|
+
*/
|
|
4823
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4824
|
+
taskId: z.ZodString;
|
|
4825
|
+
}, z.core.$loose>>;
|
|
3251
4826
|
}, z.core.$loose>>;
|
|
3252
4827
|
uri: z.ZodString;
|
|
3253
4828
|
}, z.core.$loose>;
|
|
3254
4829
|
}, z.core.$strip>, z.ZodObject<{
|
|
3255
4830
|
method: z.ZodLiteral<"tools/call">;
|
|
3256
4831
|
params: z.ZodObject<{
|
|
4832
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4833
|
+
/**
|
|
4834
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4835
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4836
|
+
*/
|
|
4837
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4838
|
+
/**
|
|
4839
|
+
* Time in milliseconds to wait between task status requests.
|
|
4840
|
+
*/
|
|
4841
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4842
|
+
}, z.core.$loose>>;
|
|
3257
4843
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3258
4844
|
/**
|
|
3259
4845
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3260
4846
|
*/
|
|
3261
4847
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4848
|
+
/**
|
|
4849
|
+
* If specified, this request is related to the provided task.
|
|
4850
|
+
*/
|
|
4851
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4852
|
+
taskId: z.ZodString;
|
|
4853
|
+
}, z.core.$loose>>;
|
|
3262
4854
|
}, z.core.$loose>>;
|
|
3263
4855
|
name: z.ZodString;
|
|
3264
4856
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3265
4857
|
}, z.core.$loose>;
|
|
3266
4858
|
}, z.core.$strip>, z.ZodObject<{
|
|
3267
4859
|
params: z.ZodOptional<z.ZodObject<{
|
|
4860
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4861
|
+
/**
|
|
4862
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4863
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4864
|
+
*/
|
|
4865
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4866
|
+
/**
|
|
4867
|
+
* Time in milliseconds to wait between task status requests.
|
|
4868
|
+
*/
|
|
4869
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4870
|
+
}, z.core.$loose>>;
|
|
3268
4871
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3269
4872
|
/**
|
|
3270
4873
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3271
4874
|
*/
|
|
3272
4875
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4876
|
+
/**
|
|
4877
|
+
* If specified, this request is related to the provided task.
|
|
4878
|
+
*/
|
|
4879
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4880
|
+
taskId: z.ZodString;
|
|
4881
|
+
}, z.core.$loose>>;
|
|
3273
4882
|
}, z.core.$loose>>;
|
|
3274
4883
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3275
4884
|
}, z.core.$loose>>;
|
|
3276
4885
|
method: z.ZodLiteral<"tools/list">;
|
|
4886
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4887
|
+
method: z.ZodLiteral<"tasks/get">;
|
|
4888
|
+
params: z.ZodObject<{
|
|
4889
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4890
|
+
/**
|
|
4891
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4892
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4893
|
+
*/
|
|
4894
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4895
|
+
/**
|
|
4896
|
+
* Time in milliseconds to wait between task status requests.
|
|
4897
|
+
*/
|
|
4898
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4899
|
+
}, z.core.$loose>>;
|
|
4900
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4901
|
+
/**
|
|
4902
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
4903
|
+
*/
|
|
4904
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4905
|
+
/**
|
|
4906
|
+
* If specified, this request is related to the provided task.
|
|
4907
|
+
*/
|
|
4908
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4909
|
+
taskId: z.ZodString;
|
|
4910
|
+
}, z.core.$loose>>;
|
|
4911
|
+
}, z.core.$loose>>;
|
|
4912
|
+
taskId: z.ZodString;
|
|
4913
|
+
}, z.core.$loose>;
|
|
4914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4915
|
+
method: z.ZodLiteral<"tasks/result">;
|
|
4916
|
+
params: z.ZodObject<{
|
|
4917
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4918
|
+
/**
|
|
4919
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4920
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4921
|
+
*/
|
|
4922
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4923
|
+
/**
|
|
4924
|
+
* Time in milliseconds to wait between task status requests.
|
|
4925
|
+
*/
|
|
4926
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4927
|
+
}, z.core.$loose>>;
|
|
4928
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4929
|
+
/**
|
|
4930
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
4931
|
+
*/
|
|
4932
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4933
|
+
/**
|
|
4934
|
+
* If specified, this request is related to the provided task.
|
|
4935
|
+
*/
|
|
4936
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4937
|
+
taskId: z.ZodString;
|
|
4938
|
+
}, z.core.$loose>>;
|
|
4939
|
+
}, z.core.$loose>>;
|
|
4940
|
+
taskId: z.ZodString;
|
|
4941
|
+
}, z.core.$loose>;
|
|
4942
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4943
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
4944
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
4945
|
+
/**
|
|
4946
|
+
* Time in milliseconds to keep task results available after completion.
|
|
4947
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
4948
|
+
*/
|
|
4949
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4950
|
+
/**
|
|
4951
|
+
* Time in milliseconds to wait between task status requests.
|
|
4952
|
+
*/
|
|
4953
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
4954
|
+
}, z.core.$loose>>;
|
|
4955
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4956
|
+
/**
|
|
4957
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
4958
|
+
*/
|
|
4959
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
4960
|
+
/**
|
|
4961
|
+
* If specified, this request is related to the provided task.
|
|
4962
|
+
*/
|
|
4963
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4964
|
+
taskId: z.ZodString;
|
|
4965
|
+
}, z.core.$loose>>;
|
|
4966
|
+
}, z.core.$loose>>;
|
|
4967
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4968
|
+
}, z.core.$loose>>;
|
|
4969
|
+
method: z.ZodLiteral<"tasks/list">;
|
|
3277
4970
|
}, z.core.$strip>]>;
|
|
3278
4971
|
export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3279
4972
|
method: z.ZodLiteral<"notifications/cancelled">;
|
|
3280
4973
|
params: z.ZodObject<{
|
|
3281
|
-
_meta: z.ZodOptional<z.
|
|
4974
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4975
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4976
|
+
taskId: z.ZodString;
|
|
4977
|
+
}, z.core.$loose>>;
|
|
4978
|
+
}, z.core.$loose>>;
|
|
3282
4979
|
requestId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3283
4980
|
reason: z.ZodOptional<z.ZodString>;
|
|
3284
4981
|
}, z.core.$loose>;
|
|
@@ -3289,7 +4986,11 @@ export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3289
4986
|
progress: z.ZodNumber;
|
|
3290
4987
|
total: z.ZodOptional<z.ZodNumber>;
|
|
3291
4988
|
message: z.ZodOptional<z.ZodString>;
|
|
3292
|
-
_meta: z.ZodOptional<z.
|
|
4989
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
4990
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
4991
|
+
taskId: z.ZodString;
|
|
4992
|
+
}, z.core.$loose>>;
|
|
4993
|
+
}, z.core.$loose>>;
|
|
3293
4994
|
}, z.core.$strip>;
|
|
3294
4995
|
}, z.core.$strip>, z.ZodObject<{
|
|
3295
4996
|
params: z.ZodOptional<z.ZodObject<{
|
|
@@ -3297,7 +4998,11 @@ export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3297
4998
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3298
4999
|
* for notes on _meta usage.
|
|
3299
5000
|
*/
|
|
3300
|
-
_meta: z.ZodOptional<z.
|
|
5001
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5002
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5003
|
+
taskId: z.ZodString;
|
|
5004
|
+
}, z.core.$loose>>;
|
|
5005
|
+
}, z.core.$loose>>;
|
|
3301
5006
|
}, z.core.$loose>>;
|
|
3302
5007
|
method: z.ZodLiteral<"notifications/initialized">;
|
|
3303
5008
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3306,18 +5011,92 @@ export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3306
5011
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3307
5012
|
* for notes on _meta usage.
|
|
3308
5013
|
*/
|
|
3309
|
-
_meta: z.ZodOptional<z.
|
|
5014
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5015
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5016
|
+
taskId: z.ZodString;
|
|
5017
|
+
}, z.core.$loose>>;
|
|
5018
|
+
}, z.core.$loose>>;
|
|
3310
5019
|
}, z.core.$loose>>;
|
|
3311
5020
|
method: z.ZodLiteral<"notifications/roots/list_changed">;
|
|
5021
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5022
|
+
method: z.ZodLiteral<"notifications/tasks/status">;
|
|
5023
|
+
params: z.ZodObject<{
|
|
5024
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5025
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5026
|
+
taskId: z.ZodString;
|
|
5027
|
+
}, z.core.$loose>>;
|
|
5028
|
+
}, z.core.$loose>>;
|
|
5029
|
+
taskId: z.ZodString;
|
|
5030
|
+
status: z.ZodEnum<{
|
|
5031
|
+
working: "working";
|
|
5032
|
+
input_required: "input_required";
|
|
5033
|
+
completed: "completed";
|
|
5034
|
+
failed: "failed";
|
|
5035
|
+
cancelled: "cancelled";
|
|
5036
|
+
}>;
|
|
5037
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
5038
|
+
createdAt: z.ZodString;
|
|
5039
|
+
lastUpdatedAt: z.ZodString;
|
|
5040
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5041
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
5042
|
+
}, z.core.$strip>;
|
|
3312
5043
|
}, z.core.$strip>]>;
|
|
3313
5044
|
export declare const ClientResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3314
5045
|
/**
|
|
3315
5046
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3316
5047
|
* for notes on _meta usage.
|
|
3317
5048
|
*/
|
|
3318
|
-
_meta: z.ZodOptional<z.
|
|
5049
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5050
|
+
/**
|
|
5051
|
+
* If specified, this result is related to the provided task.
|
|
5052
|
+
*/
|
|
5053
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5054
|
+
taskId: z.ZodString;
|
|
5055
|
+
}, z.core.$loose>>;
|
|
5056
|
+
}, z.core.$loose>>;
|
|
3319
5057
|
}, z.core.$strict>, z.ZodObject<{
|
|
3320
|
-
_meta: z.ZodOptional<z.
|
|
5058
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5059
|
+
/**
|
|
5060
|
+
* If specified, this result is related to the provided task.
|
|
5061
|
+
*/
|
|
5062
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5063
|
+
taskId: z.ZodString;
|
|
5064
|
+
}, z.core.$loose>>;
|
|
5065
|
+
}, z.core.$loose>>;
|
|
5066
|
+
model: z.ZodString;
|
|
5067
|
+
stopReason: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
5068
|
+
maxTokens: "maxTokens";
|
|
5069
|
+
endTurn: "endTurn";
|
|
5070
|
+
stopSequence: "stopSequence";
|
|
5071
|
+
}>, z.ZodString]>>;
|
|
5072
|
+
role: z.ZodEnum<{
|
|
5073
|
+
user: "user";
|
|
5074
|
+
assistant: "assistant";
|
|
5075
|
+
}>;
|
|
5076
|
+
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5077
|
+
type: z.ZodLiteral<"text">;
|
|
5078
|
+
text: z.ZodString;
|
|
5079
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5080
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5081
|
+
type: z.ZodLiteral<"image">;
|
|
5082
|
+
data: z.ZodString;
|
|
5083
|
+
mimeType: z.ZodString;
|
|
5084
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5085
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5086
|
+
type: z.ZodLiteral<"audio">;
|
|
5087
|
+
data: z.ZodString;
|
|
5088
|
+
mimeType: z.ZodString;
|
|
5089
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5090
|
+
}, z.core.$strip>]>;
|
|
5091
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
5092
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5093
|
+
/**
|
|
5094
|
+
* If specified, this result is related to the provided task.
|
|
5095
|
+
*/
|
|
5096
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5097
|
+
taskId: z.ZodString;
|
|
5098
|
+
}, z.core.$loose>>;
|
|
5099
|
+
}, z.core.$loose>>;
|
|
3321
5100
|
model: z.ZodString;
|
|
3322
5101
|
stopReason: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
3323
5102
|
maxTokens: "maxTokens";
|
|
@@ -3467,23 +5246,123 @@ export declare const ClientResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3467
5246
|
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
3468
5247
|
}, z.core.$loose>]>>]>;
|
|
3469
5248
|
}, z.core.$loose>, z.ZodObject<{
|
|
3470
|
-
_meta: z.ZodOptional<z.
|
|
5249
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5250
|
+
/**
|
|
5251
|
+
* If specified, this result is related to the provided task.
|
|
5252
|
+
*/
|
|
5253
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5254
|
+
taskId: z.ZodString;
|
|
5255
|
+
}, z.core.$loose>>;
|
|
5256
|
+
}, z.core.$loose>>;
|
|
3471
5257
|
action: z.ZodEnum<{
|
|
5258
|
+
cancel: "cancel";
|
|
3472
5259
|
accept: "accept";
|
|
3473
5260
|
decline: "decline";
|
|
3474
|
-
cancel: "cancel";
|
|
3475
5261
|
}>;
|
|
3476
|
-
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]
|
|
5262
|
+
content: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>>;
|
|
3477
5263
|
}, z.core.$loose>, z.ZodObject<{
|
|
3478
|
-
_meta: z.ZodOptional<z.
|
|
5264
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5265
|
+
/**
|
|
5266
|
+
* If specified, this result is related to the provided task.
|
|
5267
|
+
*/
|
|
5268
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5269
|
+
taskId: z.ZodString;
|
|
5270
|
+
}, z.core.$loose>>;
|
|
5271
|
+
}, z.core.$loose>>;
|
|
3479
5272
|
roots: z.ZodArray<z.ZodObject<{
|
|
3480
5273
|
uri: z.ZodString;
|
|
3481
5274
|
name: z.ZodOptional<z.ZodString>;
|
|
3482
5275
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3483
5276
|
}, z.core.$strip>>;
|
|
5277
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
5278
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5279
|
+
/**
|
|
5280
|
+
* If specified, this result is related to the provided task.
|
|
5281
|
+
*/
|
|
5282
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5283
|
+
taskId: z.ZodString;
|
|
5284
|
+
}, z.core.$loose>>;
|
|
5285
|
+
}, z.core.$loose>>;
|
|
5286
|
+
taskId: z.ZodString;
|
|
5287
|
+
status: z.ZodEnum<{
|
|
5288
|
+
working: "working";
|
|
5289
|
+
input_required: "input_required";
|
|
5290
|
+
completed: "completed";
|
|
5291
|
+
failed: "failed";
|
|
5292
|
+
cancelled: "cancelled";
|
|
5293
|
+
}>;
|
|
5294
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
5295
|
+
createdAt: z.ZodString;
|
|
5296
|
+
lastUpdatedAt: z.ZodString;
|
|
5297
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5298
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
5299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5300
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5301
|
+
/**
|
|
5302
|
+
* If specified, this result is related to the provided task.
|
|
5303
|
+
*/
|
|
5304
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5305
|
+
taskId: z.ZodString;
|
|
5306
|
+
}, z.core.$loose>>;
|
|
5307
|
+
}, z.core.$loose>>;
|
|
5308
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
5309
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
5310
|
+
taskId: z.ZodString;
|
|
5311
|
+
status: z.ZodEnum<{
|
|
5312
|
+
working: "working";
|
|
5313
|
+
input_required: "input_required";
|
|
5314
|
+
completed: "completed";
|
|
5315
|
+
failed: "failed";
|
|
5316
|
+
cancelled: "cancelled";
|
|
5317
|
+
}>;
|
|
5318
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
5319
|
+
createdAt: z.ZodString;
|
|
5320
|
+
lastUpdatedAt: z.ZodString;
|
|
5321
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5322
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
5323
|
+
}, z.core.$strip>>;
|
|
5324
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
5325
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5326
|
+
/**
|
|
5327
|
+
* If specified, this result is related to the provided task.
|
|
5328
|
+
*/
|
|
5329
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5330
|
+
taskId: z.ZodString;
|
|
5331
|
+
}, z.core.$loose>>;
|
|
5332
|
+
}, z.core.$loose>>;
|
|
5333
|
+
task: z.ZodObject<{
|
|
5334
|
+
taskId: z.ZodString;
|
|
5335
|
+
status: z.ZodEnum<{
|
|
5336
|
+
working: "working";
|
|
5337
|
+
input_required: "input_required";
|
|
5338
|
+
completed: "completed";
|
|
5339
|
+
failed: "failed";
|
|
5340
|
+
cancelled: "cancelled";
|
|
5341
|
+
}>;
|
|
5342
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
5343
|
+
createdAt: z.ZodString;
|
|
5344
|
+
lastUpdatedAt: z.ZodString;
|
|
5345
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5346
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
5347
|
+
}, z.core.$strip>;
|
|
3484
5348
|
}, z.core.$loose>]>;
|
|
3485
5349
|
export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3486
5350
|
params: z.ZodOptional<z.ZodObject<{
|
|
5351
|
+
/**
|
|
5352
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
5353
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
5354
|
+
*/
|
|
5355
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5356
|
+
/**
|
|
5357
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5358
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5359
|
+
*/
|
|
5360
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5361
|
+
/**
|
|
5362
|
+
* Time in milliseconds to wait between task status requests.
|
|
5363
|
+
*/
|
|
5364
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5365
|
+
}, z.core.$loose>>;
|
|
3487
5366
|
/**
|
|
3488
5367
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3489
5368
|
*/
|
|
@@ -3492,17 +5371,40 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3492
5371
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3493
5372
|
*/
|
|
3494
5373
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5374
|
+
/**
|
|
5375
|
+
* If specified, this request is related to the provided task.
|
|
5376
|
+
*/
|
|
5377
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5378
|
+
taskId: z.ZodString;
|
|
5379
|
+
}, z.core.$loose>>;
|
|
3495
5380
|
}, z.core.$loose>>;
|
|
3496
5381
|
}, z.core.$loose>>;
|
|
3497
5382
|
method: z.ZodLiteral<"ping">;
|
|
3498
5383
|
}, z.core.$strip>, z.ZodObject<{
|
|
3499
5384
|
method: z.ZodLiteral<"sampling/createMessage">;
|
|
3500
5385
|
params: z.ZodObject<{
|
|
5386
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5387
|
+
/**
|
|
5388
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5389
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5390
|
+
*/
|
|
5391
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5392
|
+
/**
|
|
5393
|
+
* Time in milliseconds to wait between task status requests.
|
|
5394
|
+
*/
|
|
5395
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5396
|
+
}, z.core.$loose>>;
|
|
3501
5397
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3502
5398
|
/**
|
|
3503
5399
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3504
5400
|
*/
|
|
3505
5401
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5402
|
+
/**
|
|
5403
|
+
* If specified, this request is related to the provided task.
|
|
5404
|
+
*/
|
|
5405
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5406
|
+
taskId: z.ZodString;
|
|
5407
|
+
}, z.core.$loose>>;
|
|
3506
5408
|
}, z.core.$loose>>;
|
|
3507
5409
|
messages: z.ZodArray<z.ZodObject<{
|
|
3508
5410
|
role: z.ZodEnum<{
|
|
@@ -3685,6 +5587,13 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3685
5587
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
3686
5588
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
3687
5589
|
}, z.core.$strip>>;
|
|
5590
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
5591
|
+
taskSupport: z.ZodOptional<z.ZodEnum<{
|
|
5592
|
+
optional: "optional";
|
|
5593
|
+
required: "required";
|
|
5594
|
+
forbidden: "forbidden";
|
|
5595
|
+
}>>;
|
|
5596
|
+
}, z.core.$strip>>;
|
|
3688
5597
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3689
5598
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3690
5599
|
src: z.ZodString;
|
|
@@ -3705,11 +5614,28 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3705
5614
|
}, z.core.$strip>, z.ZodObject<{
|
|
3706
5615
|
method: z.ZodLiteral<"elicitation/create">;
|
|
3707
5616
|
params: z.ZodUnion<readonly [z.ZodObject<{
|
|
5617
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5618
|
+
/**
|
|
5619
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5620
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5621
|
+
*/
|
|
5622
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5623
|
+
/**
|
|
5624
|
+
* Time in milliseconds to wait between task status requests.
|
|
5625
|
+
*/
|
|
5626
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5627
|
+
}, z.core.$loose>>;
|
|
3708
5628
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3709
5629
|
/**
|
|
3710
5630
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3711
5631
|
*/
|
|
3712
5632
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5633
|
+
/**
|
|
5634
|
+
* If specified, this request is related to the provided task.
|
|
5635
|
+
*/
|
|
5636
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5637
|
+
taskId: z.ZodString;
|
|
5638
|
+
}, z.core.$loose>>;
|
|
3713
5639
|
}, z.core.$loose>>;
|
|
3714
5640
|
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
3715
5641
|
message: z.ZodString;
|
|
@@ -3793,11 +5719,28 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3793
5719
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3794
5720
|
}, z.core.$strip>;
|
|
3795
5721
|
}, z.core.$loose>, z.ZodObject<{
|
|
5722
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5723
|
+
/**
|
|
5724
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5725
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5726
|
+
*/
|
|
5727
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5728
|
+
/**
|
|
5729
|
+
* Time in milliseconds to wait between task status requests.
|
|
5730
|
+
*/
|
|
5731
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5732
|
+
}, z.core.$loose>>;
|
|
3796
5733
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3797
5734
|
/**
|
|
3798
5735
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3799
5736
|
*/
|
|
3800
5737
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5738
|
+
/**
|
|
5739
|
+
* If specified, this request is related to the provided task.
|
|
5740
|
+
*/
|
|
5741
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5742
|
+
taskId: z.ZodString;
|
|
5743
|
+
}, z.core.$loose>>;
|
|
3801
5744
|
}, z.core.$loose>>;
|
|
3802
5745
|
mode: z.ZodLiteral<"url">;
|
|
3803
5746
|
message: z.ZodString;
|
|
@@ -3806,6 +5749,21 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3806
5749
|
}, z.core.$loose>]>;
|
|
3807
5750
|
}, z.core.$strip>, z.ZodObject<{
|
|
3808
5751
|
params: z.ZodOptional<z.ZodObject<{
|
|
5752
|
+
/**
|
|
5753
|
+
* If specified, the caller is requesting that the receiver create a task to represent the request.
|
|
5754
|
+
* Task creation parameters are now at the top level instead of in _meta.
|
|
5755
|
+
*/
|
|
5756
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5757
|
+
/**
|
|
5758
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5759
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5760
|
+
*/
|
|
5761
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5762
|
+
/**
|
|
5763
|
+
* Time in milliseconds to wait between task status requests.
|
|
5764
|
+
*/
|
|
5765
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5766
|
+
}, z.core.$loose>>;
|
|
3809
5767
|
/**
|
|
3810
5768
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3811
5769
|
*/
|
|
@@ -3814,14 +5772,108 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3814
5772
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
3815
5773
|
*/
|
|
3816
5774
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5775
|
+
/**
|
|
5776
|
+
* If specified, this request is related to the provided task.
|
|
5777
|
+
*/
|
|
5778
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5779
|
+
taskId: z.ZodString;
|
|
5780
|
+
}, z.core.$loose>>;
|
|
3817
5781
|
}, z.core.$loose>>;
|
|
3818
5782
|
}, z.core.$loose>>;
|
|
3819
5783
|
method: z.ZodLiteral<"roots/list">;
|
|
5784
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5785
|
+
method: z.ZodLiteral<"tasks/get">;
|
|
5786
|
+
params: z.ZodObject<{
|
|
5787
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5788
|
+
/**
|
|
5789
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5790
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5791
|
+
*/
|
|
5792
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5793
|
+
/**
|
|
5794
|
+
* Time in milliseconds to wait between task status requests.
|
|
5795
|
+
*/
|
|
5796
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5797
|
+
}, z.core.$loose>>;
|
|
5798
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5799
|
+
/**
|
|
5800
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
5801
|
+
*/
|
|
5802
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5803
|
+
/**
|
|
5804
|
+
* If specified, this request is related to the provided task.
|
|
5805
|
+
*/
|
|
5806
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5807
|
+
taskId: z.ZodString;
|
|
5808
|
+
}, z.core.$loose>>;
|
|
5809
|
+
}, z.core.$loose>>;
|
|
5810
|
+
taskId: z.ZodString;
|
|
5811
|
+
}, z.core.$loose>;
|
|
5812
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5813
|
+
method: z.ZodLiteral<"tasks/result">;
|
|
5814
|
+
params: z.ZodObject<{
|
|
5815
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5816
|
+
/**
|
|
5817
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5818
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5819
|
+
*/
|
|
5820
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5821
|
+
/**
|
|
5822
|
+
* Time in milliseconds to wait between task status requests.
|
|
5823
|
+
*/
|
|
5824
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5825
|
+
}, z.core.$loose>>;
|
|
5826
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5827
|
+
/**
|
|
5828
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
5829
|
+
*/
|
|
5830
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5831
|
+
/**
|
|
5832
|
+
* If specified, this request is related to the provided task.
|
|
5833
|
+
*/
|
|
5834
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5835
|
+
taskId: z.ZodString;
|
|
5836
|
+
}, z.core.$loose>>;
|
|
5837
|
+
}, z.core.$loose>>;
|
|
5838
|
+
taskId: z.ZodString;
|
|
5839
|
+
}, z.core.$loose>;
|
|
5840
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5841
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
5842
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
5843
|
+
/**
|
|
5844
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5845
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5846
|
+
*/
|
|
5847
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
5848
|
+
/**
|
|
5849
|
+
* Time in milliseconds to wait between task status requests.
|
|
5850
|
+
*/
|
|
5851
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5852
|
+
}, z.core.$loose>>;
|
|
5853
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5854
|
+
/**
|
|
5855
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
5856
|
+
*/
|
|
5857
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
5858
|
+
/**
|
|
5859
|
+
* If specified, this request is related to the provided task.
|
|
5860
|
+
*/
|
|
5861
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5862
|
+
taskId: z.ZodString;
|
|
5863
|
+
}, z.core.$loose>>;
|
|
5864
|
+
}, z.core.$loose>>;
|
|
5865
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5866
|
+
}, z.core.$loose>>;
|
|
5867
|
+
method: z.ZodLiteral<"tasks/list">;
|
|
3820
5868
|
}, z.core.$strip>]>;
|
|
3821
5869
|
export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3822
5870
|
method: z.ZodLiteral<"notifications/cancelled">;
|
|
3823
5871
|
params: z.ZodObject<{
|
|
3824
|
-
_meta: z.ZodOptional<z.
|
|
5872
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5873
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5874
|
+
taskId: z.ZodString;
|
|
5875
|
+
}, z.core.$loose>>;
|
|
5876
|
+
}, z.core.$loose>>;
|
|
3825
5877
|
requestId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3826
5878
|
reason: z.ZodOptional<z.ZodString>;
|
|
3827
5879
|
}, z.core.$loose>;
|
|
@@ -3832,12 +5884,20 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3832
5884
|
progress: z.ZodNumber;
|
|
3833
5885
|
total: z.ZodOptional<z.ZodNumber>;
|
|
3834
5886
|
message: z.ZodOptional<z.ZodString>;
|
|
3835
|
-
_meta: z.ZodOptional<z.
|
|
5887
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5888
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5889
|
+
taskId: z.ZodString;
|
|
5890
|
+
}, z.core.$loose>>;
|
|
5891
|
+
}, z.core.$loose>>;
|
|
3836
5892
|
}, z.core.$strip>;
|
|
3837
5893
|
}, z.core.$strip>, z.ZodObject<{
|
|
3838
5894
|
method: z.ZodLiteral<"notifications/message">;
|
|
3839
5895
|
params: z.ZodObject<{
|
|
3840
|
-
_meta: z.ZodOptional<z.
|
|
5896
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5897
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5898
|
+
taskId: z.ZodString;
|
|
5899
|
+
}, z.core.$loose>>;
|
|
5900
|
+
}, z.core.$loose>>;
|
|
3841
5901
|
level: z.ZodEnum<{
|
|
3842
5902
|
error: "error";
|
|
3843
5903
|
debug: "debug";
|
|
@@ -3854,7 +5914,11 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3854
5914
|
}, z.core.$strip>, z.ZodObject<{
|
|
3855
5915
|
method: z.ZodLiteral<"notifications/resources/updated">;
|
|
3856
5916
|
params: z.ZodObject<{
|
|
3857
|
-
_meta: z.ZodOptional<z.
|
|
5917
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5918
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5919
|
+
taskId: z.ZodString;
|
|
5920
|
+
}, z.core.$loose>>;
|
|
5921
|
+
}, z.core.$loose>>;
|
|
3858
5922
|
uri: z.ZodString;
|
|
3859
5923
|
}, z.core.$loose>;
|
|
3860
5924
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3863,7 +5927,11 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3863
5927
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3864
5928
|
* for notes on _meta usage.
|
|
3865
5929
|
*/
|
|
3866
|
-
_meta: z.ZodOptional<z.
|
|
5930
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5931
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5932
|
+
taskId: z.ZodString;
|
|
5933
|
+
}, z.core.$loose>>;
|
|
5934
|
+
}, z.core.$loose>>;
|
|
3867
5935
|
}, z.core.$loose>>;
|
|
3868
5936
|
method: z.ZodLiteral<"notifications/resources/list_changed">;
|
|
3869
5937
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3872,7 +5940,11 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3872
5940
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3873
5941
|
* for notes on _meta usage.
|
|
3874
5942
|
*/
|
|
3875
|
-
_meta: z.ZodOptional<z.
|
|
5943
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5944
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5945
|
+
taskId: z.ZodString;
|
|
5946
|
+
}, z.core.$loose>>;
|
|
5947
|
+
}, z.core.$loose>>;
|
|
3876
5948
|
}, z.core.$loose>>;
|
|
3877
5949
|
method: z.ZodLiteral<"notifications/tools/list_changed">;
|
|
3878
5950
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3881,13 +5953,43 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3881
5953
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3882
5954
|
* for notes on _meta usage.
|
|
3883
5955
|
*/
|
|
3884
|
-
_meta: z.ZodOptional<z.
|
|
5956
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5957
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5958
|
+
taskId: z.ZodString;
|
|
5959
|
+
}, z.core.$loose>>;
|
|
5960
|
+
}, z.core.$loose>>;
|
|
3885
5961
|
}, z.core.$loose>>;
|
|
3886
5962
|
method: z.ZodLiteral<"notifications/prompts/list_changed">;
|
|
5963
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5964
|
+
method: z.ZodLiteral<"notifications/tasks/status">;
|
|
5965
|
+
params: z.ZodObject<{
|
|
5966
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5967
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5968
|
+
taskId: z.ZodString;
|
|
5969
|
+
}, z.core.$loose>>;
|
|
5970
|
+
}, z.core.$loose>>;
|
|
5971
|
+
taskId: z.ZodString;
|
|
5972
|
+
status: z.ZodEnum<{
|
|
5973
|
+
working: "working";
|
|
5974
|
+
input_required: "input_required";
|
|
5975
|
+
completed: "completed";
|
|
5976
|
+
failed: "failed";
|
|
5977
|
+
cancelled: "cancelled";
|
|
5978
|
+
}>;
|
|
5979
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
5980
|
+
createdAt: z.ZodString;
|
|
5981
|
+
lastUpdatedAt: z.ZodString;
|
|
5982
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
5983
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
5984
|
+
}, z.core.$strip>;
|
|
3887
5985
|
}, z.core.$strip>, z.ZodObject<{
|
|
3888
5986
|
method: z.ZodLiteral<"notifications/elicitation/complete">;
|
|
3889
5987
|
params: z.ZodObject<{
|
|
3890
|
-
_meta: z.ZodOptional<z.
|
|
5988
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
5989
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
5990
|
+
taskId: z.ZodString;
|
|
5991
|
+
}, z.core.$loose>>;
|
|
5992
|
+
}, z.core.$loose>>;
|
|
3891
5993
|
elicitationId: z.ZodString;
|
|
3892
5994
|
}, z.core.$loose>;
|
|
3893
5995
|
}, z.core.$strip>]>;
|
|
@@ -3896,9 +5998,23 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3896
5998
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3897
5999
|
* for notes on _meta usage.
|
|
3898
6000
|
*/
|
|
3899
|
-
_meta: z.ZodOptional<z.
|
|
6001
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6002
|
+
/**
|
|
6003
|
+
* If specified, this result is related to the provided task.
|
|
6004
|
+
*/
|
|
6005
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6006
|
+
taskId: z.ZodString;
|
|
6007
|
+
}, z.core.$loose>>;
|
|
6008
|
+
}, z.core.$loose>>;
|
|
3900
6009
|
}, z.core.$strict>, z.ZodObject<{
|
|
3901
|
-
_meta: z.ZodOptional<z.
|
|
6010
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6011
|
+
/**
|
|
6012
|
+
* If specified, this result is related to the provided task.
|
|
6013
|
+
*/
|
|
6014
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6015
|
+
taskId: z.ZodString;
|
|
6016
|
+
}, z.core.$loose>>;
|
|
6017
|
+
}, z.core.$loose>>;
|
|
3902
6018
|
protocolVersion: z.ZodString;
|
|
3903
6019
|
capabilities: z.ZodObject<{
|
|
3904
6020
|
experimental: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
@@ -3914,7 +6030,16 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3914
6030
|
tools: z.ZodOptional<z.ZodObject<{
|
|
3915
6031
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
3916
6032
|
}, z.core.$strip>>;
|
|
3917
|
-
|
|
6033
|
+
tasks: z.ZodOptional<z.ZodObject<{
|
|
6034
|
+
list: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
6035
|
+
cancel: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
6036
|
+
requests: z.ZodOptional<z.ZodObject<{
|
|
6037
|
+
tools: z.ZodOptional<z.ZodObject<{
|
|
6038
|
+
call: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
6039
|
+
}, z.core.$loose>>;
|
|
6040
|
+
}, z.core.$loose>>;
|
|
6041
|
+
}, z.core.$loose>>;
|
|
6042
|
+
}, z.core.$loose>;
|
|
3918
6043
|
serverInfo: z.ZodObject<{
|
|
3919
6044
|
version: z.ZodString;
|
|
3920
6045
|
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -3928,7 +6053,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3928
6053
|
}, z.core.$strip>;
|
|
3929
6054
|
instructions: z.ZodOptional<z.ZodString>;
|
|
3930
6055
|
}, z.core.$loose>, z.ZodObject<{
|
|
3931
|
-
_meta: z.ZodOptional<z.
|
|
6056
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6057
|
+
/**
|
|
6058
|
+
* If specified, this result is related to the provided task.
|
|
6059
|
+
*/
|
|
6060
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6061
|
+
taskId: z.ZodString;
|
|
6062
|
+
}, z.core.$loose>>;
|
|
6063
|
+
}, z.core.$loose>>;
|
|
3932
6064
|
completion: z.ZodObject<{
|
|
3933
6065
|
/**
|
|
3934
6066
|
* An array of completion values. Must not exceed 100 items.
|
|
@@ -3944,7 +6076,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3944
6076
|
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
3945
6077
|
}, z.core.$loose>;
|
|
3946
6078
|
}, z.core.$loose>, z.ZodObject<{
|
|
3947
|
-
_meta: z.ZodOptional<z.
|
|
6079
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6080
|
+
/**
|
|
6081
|
+
* If specified, this result is related to the provided task.
|
|
6082
|
+
*/
|
|
6083
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6084
|
+
taskId: z.ZodString;
|
|
6085
|
+
}, z.core.$loose>>;
|
|
6086
|
+
}, z.core.$loose>>;
|
|
3948
6087
|
description: z.ZodOptional<z.ZodString>;
|
|
3949
6088
|
messages: z.ZodArray<z.ZodObject<{
|
|
3950
6089
|
role: z.ZodEnum<{
|
|
@@ -3995,7 +6134,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3995
6134
|
}, z.core.$strip>]>;
|
|
3996
6135
|
}, z.core.$strip>>;
|
|
3997
6136
|
}, z.core.$loose>, z.ZodObject<{
|
|
3998
|
-
_meta: z.ZodOptional<z.
|
|
6137
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6138
|
+
/**
|
|
6139
|
+
* If specified, this result is related to the provided task.
|
|
6140
|
+
*/
|
|
6141
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6142
|
+
taskId: z.ZodString;
|
|
6143
|
+
}, z.core.$loose>>;
|
|
6144
|
+
}, z.core.$loose>>;
|
|
3999
6145
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4000
6146
|
prompts: z.ZodArray<z.ZodObject<{
|
|
4001
6147
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4014,7 +6160,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4014
6160
|
title: z.ZodOptional<z.ZodString>;
|
|
4015
6161
|
}, z.core.$strip>>;
|
|
4016
6162
|
}, z.core.$loose>, z.ZodObject<{
|
|
4017
|
-
_meta: z.ZodOptional<z.
|
|
6163
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6164
|
+
/**
|
|
6165
|
+
* If specified, this result is related to the provided task.
|
|
6166
|
+
*/
|
|
6167
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6168
|
+
taskId: z.ZodString;
|
|
6169
|
+
}, z.core.$loose>>;
|
|
6170
|
+
}, z.core.$loose>>;
|
|
4018
6171
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4019
6172
|
resources: z.ZodArray<z.ZodObject<{
|
|
4020
6173
|
uri: z.ZodString;
|
|
@@ -4030,7 +6183,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4030
6183
|
title: z.ZodOptional<z.ZodString>;
|
|
4031
6184
|
}, z.core.$strip>>;
|
|
4032
6185
|
}, z.core.$loose>, z.ZodObject<{
|
|
4033
|
-
_meta: z.ZodOptional<z.
|
|
6186
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6187
|
+
/**
|
|
6188
|
+
* If specified, this result is related to the provided task.
|
|
6189
|
+
*/
|
|
6190
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6191
|
+
taskId: z.ZodString;
|
|
6192
|
+
}, z.core.$loose>>;
|
|
6193
|
+
}, z.core.$loose>>;
|
|
4034
6194
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4035
6195
|
resourceTemplates: z.ZodArray<z.ZodObject<{
|
|
4036
6196
|
uriTemplate: z.ZodString;
|
|
@@ -4046,7 +6206,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4046
6206
|
title: z.ZodOptional<z.ZodString>;
|
|
4047
6207
|
}, z.core.$strip>>;
|
|
4048
6208
|
}, z.core.$loose>, z.ZodObject<{
|
|
4049
|
-
_meta: z.ZodOptional<z.
|
|
6209
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6210
|
+
/**
|
|
6211
|
+
* If specified, this result is related to the provided task.
|
|
6212
|
+
*/
|
|
6213
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6214
|
+
taskId: z.ZodString;
|
|
6215
|
+
}, z.core.$loose>>;
|
|
6216
|
+
}, z.core.$loose>>;
|
|
4050
6217
|
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4051
6218
|
uri: z.ZodString;
|
|
4052
6219
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -4059,7 +6226,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4059
6226
|
blob: z.ZodString;
|
|
4060
6227
|
}, z.core.$strip>]>>;
|
|
4061
6228
|
}, z.core.$loose>, z.ZodObject<{
|
|
4062
|
-
_meta: z.ZodOptional<z.
|
|
6229
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6230
|
+
/**
|
|
6231
|
+
* If specified, this result is related to the provided task.
|
|
6232
|
+
*/
|
|
6233
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6234
|
+
taskId: z.ZodString;
|
|
6235
|
+
}, z.core.$loose>>;
|
|
6236
|
+
}, z.core.$loose>>;
|
|
4063
6237
|
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4064
6238
|
type: z.ZodLiteral<"text">;
|
|
4065
6239
|
text: z.ZodString;
|
|
@@ -4105,7 +6279,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4105
6279
|
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4106
6280
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
4107
6281
|
}, z.core.$loose>, z.ZodObject<{
|
|
4108
|
-
_meta: z.ZodOptional<z.
|
|
6282
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6283
|
+
/**
|
|
6284
|
+
* If specified, this result is related to the provided task.
|
|
6285
|
+
*/
|
|
6286
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6287
|
+
taskId: z.ZodString;
|
|
6288
|
+
}, z.core.$loose>>;
|
|
6289
|
+
}, z.core.$loose>>;
|
|
4109
6290
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4110
6291
|
tools: z.ZodArray<z.ZodObject<{
|
|
4111
6292
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4126,6 +6307,13 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4126
6307
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
4127
6308
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
4128
6309
|
}, z.core.$strip>>;
|
|
6310
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
6311
|
+
taskSupport: z.ZodOptional<z.ZodEnum<{
|
|
6312
|
+
optional: "optional";
|
|
6313
|
+
required: "required";
|
|
6314
|
+
forbidden: "forbidden";
|
|
6315
|
+
}>>;
|
|
6316
|
+
}, z.core.$strip>>;
|
|
4129
6317
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4130
6318
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4131
6319
|
src: z.ZodString;
|
|
@@ -4135,6 +6323,77 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4135
6323
|
name: z.ZodString;
|
|
4136
6324
|
title: z.ZodOptional<z.ZodString>;
|
|
4137
6325
|
}, z.core.$strip>>;
|
|
6326
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
6327
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6328
|
+
/**
|
|
6329
|
+
* If specified, this result is related to the provided task.
|
|
6330
|
+
*/
|
|
6331
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6332
|
+
taskId: z.ZodString;
|
|
6333
|
+
}, z.core.$loose>>;
|
|
6334
|
+
}, z.core.$loose>>;
|
|
6335
|
+
taskId: z.ZodString;
|
|
6336
|
+
status: z.ZodEnum<{
|
|
6337
|
+
working: "working";
|
|
6338
|
+
input_required: "input_required";
|
|
6339
|
+
completed: "completed";
|
|
6340
|
+
failed: "failed";
|
|
6341
|
+
cancelled: "cancelled";
|
|
6342
|
+
}>;
|
|
6343
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
6344
|
+
createdAt: z.ZodString;
|
|
6345
|
+
lastUpdatedAt: z.ZodString;
|
|
6346
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
6347
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
6348
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6349
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6350
|
+
/**
|
|
6351
|
+
* If specified, this result is related to the provided task.
|
|
6352
|
+
*/
|
|
6353
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6354
|
+
taskId: z.ZodString;
|
|
6355
|
+
}, z.core.$loose>>;
|
|
6356
|
+
}, z.core.$loose>>;
|
|
6357
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
6358
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
6359
|
+
taskId: z.ZodString;
|
|
6360
|
+
status: z.ZodEnum<{
|
|
6361
|
+
working: "working";
|
|
6362
|
+
input_required: "input_required";
|
|
6363
|
+
completed: "completed";
|
|
6364
|
+
failed: "failed";
|
|
6365
|
+
cancelled: "cancelled";
|
|
6366
|
+
}>;
|
|
6367
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
6368
|
+
createdAt: z.ZodString;
|
|
6369
|
+
lastUpdatedAt: z.ZodString;
|
|
6370
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
6371
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
6372
|
+
}, z.core.$strip>>;
|
|
6373
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
6374
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
6375
|
+
/**
|
|
6376
|
+
* If specified, this result is related to the provided task.
|
|
6377
|
+
*/
|
|
6378
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
6379
|
+
taskId: z.ZodString;
|
|
6380
|
+
}, z.core.$loose>>;
|
|
6381
|
+
}, z.core.$loose>>;
|
|
6382
|
+
task: z.ZodObject<{
|
|
6383
|
+
taskId: z.ZodString;
|
|
6384
|
+
status: z.ZodEnum<{
|
|
6385
|
+
working: "working";
|
|
6386
|
+
input_required: "input_required";
|
|
6387
|
+
completed: "completed";
|
|
6388
|
+
failed: "failed";
|
|
6389
|
+
cancelled: "cancelled";
|
|
6390
|
+
}>;
|
|
6391
|
+
ttl: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
6392
|
+
createdAt: z.ZodString;
|
|
6393
|
+
lastUpdatedAt: z.ZodString;
|
|
6394
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
6395
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
6396
|
+
}, z.core.$strip>;
|
|
4138
6397
|
}, z.core.$loose>]>;
|
|
4139
6398
|
export declare class McpError extends Error {
|
|
4140
6399
|
readonly code: number;
|
|
@@ -4183,6 +6442,16 @@ export interface MessageExtraInfo {
|
|
|
4183
6442
|
* The authentication information.
|
|
4184
6443
|
*/
|
|
4185
6444
|
authInfo?: AuthInfo;
|
|
6445
|
+
/**
|
|
6446
|
+
* Callback to close the SSE stream for this request, triggering client reconnection.
|
|
6447
|
+
* Only available when using StreamableHTTPServerTransport with eventStore configured.
|
|
6448
|
+
*/
|
|
6449
|
+
closeSSEStream?: () => void;
|
|
6450
|
+
/**
|
|
6451
|
+
* Callback to close the standalone GET SSE stream, triggering client reconnection.
|
|
6452
|
+
* Only available when using StreamableHTTPServerTransport with eventStore configured.
|
|
6453
|
+
*/
|
|
6454
|
+
closeStandaloneSSEStream?: () => void;
|
|
4186
6455
|
}
|
|
4187
6456
|
export type ProgressToken = Infer<typeof ProgressTokenSchema>;
|
|
4188
6457
|
export type Cursor = Infer<typeof CursorSchema>;
|
|
@@ -4215,6 +6484,19 @@ export type PingRequest = Infer<typeof PingRequestSchema>;
|
|
|
4215
6484
|
export type Progress = Infer<typeof ProgressSchema>;
|
|
4216
6485
|
export type ProgressNotificationParams = Infer<typeof ProgressNotificationParamsSchema>;
|
|
4217
6486
|
export type ProgressNotification = Infer<typeof ProgressNotificationSchema>;
|
|
6487
|
+
export type Task = Infer<typeof TaskSchema>;
|
|
6488
|
+
export type TaskCreationParams = Infer<typeof TaskCreationParamsSchema>;
|
|
6489
|
+
export type RelatedTaskMetadata = Infer<typeof RelatedTaskMetadataSchema>;
|
|
6490
|
+
export type CreateTaskResult = Infer<typeof CreateTaskResultSchema>;
|
|
6491
|
+
export type TaskStatusNotificationParams = Infer<typeof TaskStatusNotificationParamsSchema>;
|
|
6492
|
+
export type TaskStatusNotification = Infer<typeof TaskStatusNotificationSchema>;
|
|
6493
|
+
export type GetTaskRequest = Infer<typeof GetTaskRequestSchema>;
|
|
6494
|
+
export type GetTaskResult = Infer<typeof GetTaskResultSchema>;
|
|
6495
|
+
export type GetTaskPayloadRequest = Infer<typeof GetTaskPayloadRequestSchema>;
|
|
6496
|
+
export type ListTasksRequest = Infer<typeof ListTasksRequestSchema>;
|
|
6497
|
+
export type ListTasksResult = Infer<typeof ListTasksResultSchema>;
|
|
6498
|
+
export type CancelTaskRequest = Infer<typeof CancelTaskRequestSchema>;
|
|
6499
|
+
export type CancelTaskResult = Infer<typeof CancelTaskResultSchema>;
|
|
4218
6500
|
export type PaginatedRequestParams = Infer<typeof PaginatedRequestParamsSchema>;
|
|
4219
6501
|
export type PaginatedRequest = Infer<typeof PaginatedRequestSchema>;
|
|
4220
6502
|
export type PaginatedResult = Infer<typeof PaginatedResultSchema>;
|
|
@@ -4256,6 +6538,7 @@ export type PromptMessage = Infer<typeof PromptMessageSchema>;
|
|
|
4256
6538
|
export type GetPromptResult = Infer<typeof GetPromptResultSchema>;
|
|
4257
6539
|
export type PromptListChangedNotification = Infer<typeof PromptListChangedNotificationSchema>;
|
|
4258
6540
|
export type ToolAnnotations = Infer<typeof ToolAnnotationsSchema>;
|
|
6541
|
+
export type ToolExecution = Infer<typeof ToolExecutionSchema>;
|
|
4259
6542
|
export type Tool = Infer<typeof ToolSchema>;
|
|
4260
6543
|
export type ListToolsRequest = Infer<typeof ListToolsRequestSchema>;
|
|
4261
6544
|
export type ListToolsResult = Infer<typeof ListToolsResultSchema>;
|
|
@@ -4272,11 +6555,24 @@ export type LoggingMessageNotification = Infer<typeof LoggingMessageNotification
|
|
|
4272
6555
|
export type ToolChoice = Infer<typeof ToolChoiceSchema>;
|
|
4273
6556
|
export type ModelHint = Infer<typeof ModelHintSchema>;
|
|
4274
6557
|
export type ModelPreferences = Infer<typeof ModelPreferencesSchema>;
|
|
6558
|
+
export type SamplingContent = Infer<typeof SamplingContentSchema>;
|
|
4275
6559
|
export type SamplingMessageContentBlock = Infer<typeof SamplingMessageContentBlockSchema>;
|
|
4276
6560
|
export type SamplingMessage = Infer<typeof SamplingMessageSchema>;
|
|
4277
6561
|
export type CreateMessageRequestParams = Infer<typeof CreateMessageRequestParamsSchema>;
|
|
4278
6562
|
export type CreateMessageRequest = Infer<typeof CreateMessageRequestSchema>;
|
|
4279
6563
|
export type CreateMessageResult = Infer<typeof CreateMessageResultSchema>;
|
|
6564
|
+
export type CreateMessageResultWithTools = Infer<typeof CreateMessageResultWithToolsSchema>;
|
|
6565
|
+
/**
|
|
6566
|
+
* CreateMessageRequestParams without tools - for backwards-compatible overload.
|
|
6567
|
+
* Excludes tools/toolChoice to indicate they should not be provided.
|
|
6568
|
+
*/
|
|
6569
|
+
export type CreateMessageRequestParamsBase = Omit<CreateMessageRequestParams, 'tools' | 'toolChoice'>;
|
|
6570
|
+
/**
|
|
6571
|
+
* CreateMessageRequestParams with required tools - for tool-enabled overload.
|
|
6572
|
+
*/
|
|
6573
|
+
export interface CreateMessageRequestParamsWithTools extends CreateMessageRequestParams {
|
|
6574
|
+
tools: Tool[];
|
|
6575
|
+
}
|
|
4280
6576
|
export type BooleanSchema = Infer<typeof BooleanSchemaSchema>;
|
|
4281
6577
|
export type StringSchema = Infer<typeof StringSchemaSchema>;
|
|
4282
6578
|
export type NumberSchema = Infer<typeof NumberSchemaSchema>;
|