@modelcontextprotocol/sdk 1.23.0-beta.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 +124 -15
- package/dist/cjs/client/index.d.ts.map +1 -1
- package/dist/cjs/client/index.js +133 -10
- 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 +13 -1
- package/dist/cjs/client/streamableHttp.d.ts.map +1 -1
- package/dist/cjs/client/streamableHttp.js +78 -17
- 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/client/ssePollingClient.d.ts +2 -0
- package/dist/cjs/examples/client/ssePollingClient.d.ts.map +1 -0
- package/dist/cjs/examples/client/ssePollingClient.js +95 -0
- package/dist/cjs/examples/client/ssePollingClient.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.d.ts +2 -0
- package/dist/cjs/examples/server/ssePollingExample.d.ts.map +1 -0
- package/dist/cjs/examples/server/ssePollingExample.js +102 -0
- package/dist/cjs/examples/server/ssePollingExample.js.map +1 -0
- 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 +90 -183
- package/dist/cjs/server/index.d.ts.map +1 -1
- package/dist/cjs/server/index.js +211 -8
- 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 +38 -0
- package/dist/cjs/server/streamableHttp.d.ts.map +1 -1
- package/dist/cjs/server/streamableHttp.js +100 -12
- 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/spec.types.d.ts +12 -3
- package/dist/cjs/spec.types.d.ts.map +1 -1
- package/dist/cjs/spec.types.js +1 -1
- package/dist/cjs/types.d.ts +2384 -94
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js +325 -27
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/validation/cfworker-provider.d.ts +0 -1
- package/dist/cjs/validation/cfworker-provider.d.ts.map +1 -1
- package/dist/cjs/validation/cfworker-provider.js +0 -1
- package/dist/cjs/validation/cfworker-provider.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 +124 -15
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +134 -11
- 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 +13 -1
- package/dist/esm/client/streamableHttp.d.ts.map +1 -1
- package/dist/esm/client/streamableHttp.js +78 -17
- 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/client/ssePollingClient.d.ts +2 -0
- package/dist/esm/examples/client/ssePollingClient.d.ts.map +1 -0
- package/dist/esm/examples/client/ssePollingClient.js +93 -0
- package/dist/esm/examples/client/ssePollingClient.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.d.ts +2 -0
- package/dist/esm/examples/server/ssePollingExample.d.ts.map +1 -0
- package/dist/esm/examples/server/ssePollingExample.js +97 -0
- package/dist/esm/examples/server/ssePollingExample.js.map +1 -0
- 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 +90 -183
- package/dist/esm/server/index.d.ts.map +1 -1
- package/dist/esm/server/index.js +208 -9
- 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 +38 -0
- package/dist/esm/server/streamableHttp.d.ts.map +1 -1
- package/dist/esm/server/streamableHttp.js +100 -12
- 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/spec.types.d.ts +12 -3
- package/dist/esm/spec.types.d.ts.map +1 -1
- package/dist/esm/spec.types.js +1 -1
- package/dist/esm/types.d.ts +2384 -94
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +321 -24
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/validation/cfworker-provider.d.ts +0 -1
- package/dist/esm/validation/cfworker-provider.d.ts.map +1 -1
- package/dist/esm/validation/cfworker-provider.js +0 -1
- package/dist/esm/validation/cfworker-provider.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/esm/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
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
|
*/
|
|
@@ -1116,13 +2044,12 @@ export declare const ToolSchema: z.ZodObject<{
|
|
|
1116
2044
|
type: z.ZodLiteral<"object">;
|
|
1117
2045
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
1118
2046
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1119
|
-
}, z.core.$
|
|
2047
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1120
2048
|
outputSchema: z.ZodOptional<z.ZodObject<{
|
|
1121
2049
|
type: z.ZodLiteral<"object">;
|
|
1122
2050
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
1123
2051
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1124
|
-
|
|
1125
|
-
}, z.core.$strip>>;
|
|
2052
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1126
2053
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
1127
2054
|
title: z.ZodOptional<z.ZodString>;
|
|
1128
2055
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1130,6 +2057,13 @@ export declare const ToolSchema: z.ZodObject<{
|
|
|
1130
2057
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1131
2058
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1132
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>>;
|
|
1133
2067
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1134
2068
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1135
2069
|
src: z.ZodString;
|
|
@@ -1144,11 +2078,28 @@ export declare const ToolSchema: z.ZodObject<{
|
|
|
1144
2078
|
*/
|
|
1145
2079
|
export declare const ListToolsRequestSchema: z.ZodObject<{
|
|
1146
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>>;
|
|
1147
2092
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1148
2093
|
/**
|
|
1149
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.
|
|
1150
2095
|
*/
|
|
1151
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>>;
|
|
1152
2103
|
}, z.core.$loose>>;
|
|
1153
2104
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1154
2105
|
}, z.core.$loose>>;
|
|
@@ -1158,7 +2109,14 @@ export declare const ListToolsRequestSchema: z.ZodObject<{
|
|
|
1158
2109
|
* The server's response to a tools/list request from the client.
|
|
1159
2110
|
*/
|
|
1160
2111
|
export declare const ListToolsResultSchema: z.ZodObject<{
|
|
1161
|
-
_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>>;
|
|
1162
2120
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1163
2121
|
tools: z.ZodArray<z.ZodObject<{
|
|
1164
2122
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1166,13 +2124,12 @@ export declare const ListToolsResultSchema: z.ZodObject<{
|
|
|
1166
2124
|
type: z.ZodLiteral<"object">;
|
|
1167
2125
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
1168
2126
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1169
|
-
}, z.core.$
|
|
2127
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1170
2128
|
outputSchema: z.ZodOptional<z.ZodObject<{
|
|
1171
2129
|
type: z.ZodLiteral<"object">;
|
|
1172
2130
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
1173
2131
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1174
|
-
|
|
1175
|
-
}, z.core.$strip>>;
|
|
2132
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1176
2133
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
1177
2134
|
title: z.ZodOptional<z.ZodString>;
|
|
1178
2135
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1180,6 +2137,13 @@ export declare const ListToolsResultSchema: z.ZodObject<{
|
|
|
1180
2137
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1181
2138
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1182
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>>;
|
|
1183
2147
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1184
2148
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1185
2149
|
src: z.ZodString;
|
|
@@ -1194,7 +2158,14 @@ export declare const ListToolsResultSchema: z.ZodObject<{
|
|
|
1194
2158
|
* The server's response to a tool call.
|
|
1195
2159
|
*/
|
|
1196
2160
|
export declare const CallToolResultSchema: z.ZodObject<{
|
|
1197
|
-
_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>>;
|
|
1198
2169
|
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1199
2170
|
type: z.ZodLiteral<"text">;
|
|
1200
2171
|
text: z.ZodString;
|
|
@@ -1244,7 +2215,14 @@ export declare const CallToolResultSchema: z.ZodObject<{
|
|
|
1244
2215
|
* CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
|
|
1245
2216
|
*/
|
|
1246
2217
|
export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
1247
|
-
_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>>;
|
|
1248
2226
|
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1249
2227
|
type: z.ZodLiteral<"text">;
|
|
1250
2228
|
text: z.ZodString;
|
|
@@ -1290,18 +2268,42 @@ export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<
|
|
|
1290
2268
|
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1291
2269
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1292
2270
|
}, z.core.$loose>, z.ZodObject<{
|
|
1293
|
-
_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>>;
|
|
1294
2279
|
toolResult: z.ZodUnknown;
|
|
1295
2280
|
}, z.core.$loose>]>;
|
|
1296
2281
|
/**
|
|
1297
2282
|
* Parameters for a `tools/call` request.
|
|
1298
2283
|
*/
|
|
1299
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>>;
|
|
1300
2296
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1301
2297
|
/**
|
|
1302
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.
|
|
1303
2299
|
*/
|
|
1304
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>>;
|
|
1305
2307
|
}, z.core.$loose>>;
|
|
1306
2308
|
name: z.ZodString;
|
|
1307
2309
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1312,11 +2314,28 @@ export declare const CallToolRequestParamsSchema: z.ZodObject<{
|
|
|
1312
2314
|
export declare const CallToolRequestSchema: z.ZodObject<{
|
|
1313
2315
|
method: z.ZodLiteral<"tools/call">;
|
|
1314
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>>;
|
|
1315
2328
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1316
2329
|
/**
|
|
1317
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.
|
|
1318
2331
|
*/
|
|
1319
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>>;
|
|
1320
2339
|
}, z.core.$loose>>;
|
|
1321
2340
|
name: z.ZodString;
|
|
1322
2341
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1331,7 +2350,11 @@ export declare const ToolListChangedNotificationSchema: z.ZodObject<{
|
|
|
1331
2350
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1332
2351
|
* for notes on _meta usage.
|
|
1333
2352
|
*/
|
|
1334
|
-
_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>>;
|
|
1335
2358
|
}, z.core.$loose>>;
|
|
1336
2359
|
method: z.ZodLiteral<"notifications/tools/list_changed">;
|
|
1337
2360
|
}, z.core.$strip>;
|
|
@@ -1352,11 +2375,28 @@ export declare const LoggingLevelSchema: z.ZodEnum<{
|
|
|
1352
2375
|
* Parameters for a `logging/setLevel` request.
|
|
1353
2376
|
*/
|
|
1354
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>>;
|
|
1355
2389
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1356
2390
|
/**
|
|
1357
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.
|
|
1358
2392
|
*/
|
|
1359
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>>;
|
|
1360
2400
|
}, z.core.$loose>>;
|
|
1361
2401
|
level: z.ZodEnum<{
|
|
1362
2402
|
error: "error";
|
|
@@ -1375,11 +2415,28 @@ export declare const SetLevelRequestParamsSchema: z.ZodObject<{
|
|
|
1375
2415
|
export declare const SetLevelRequestSchema: z.ZodObject<{
|
|
1376
2416
|
method: z.ZodLiteral<"logging/setLevel">;
|
|
1377
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>>;
|
|
1378
2429
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1379
2430
|
/**
|
|
1380
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.
|
|
1381
2432
|
*/
|
|
1382
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>>;
|
|
1383
2440
|
}, z.core.$loose>>;
|
|
1384
2441
|
level: z.ZodEnum<{
|
|
1385
2442
|
error: "error";
|
|
@@ -1397,7 +2454,11 @@ export declare const SetLevelRequestSchema: z.ZodObject<{
|
|
|
1397
2454
|
* Parameters for a `notifications/message` notification.
|
|
1398
2455
|
*/
|
|
1399
2456
|
export declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{
|
|
1400
|
-
_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>>;
|
|
1401
2462
|
level: z.ZodEnum<{
|
|
1402
2463
|
error: "error";
|
|
1403
2464
|
debug: "debug";
|
|
@@ -1417,7 +2478,11 @@ export declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{
|
|
|
1417
2478
|
export declare const LoggingMessageNotificationSchema: z.ZodObject<{
|
|
1418
2479
|
method: z.ZodLiteral<"notifications/message">;
|
|
1419
2480
|
params: z.ZodObject<{
|
|
1420
|
-
_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>>;
|
|
1421
2486
|
level: z.ZodEnum<{
|
|
1422
2487
|
error: "error";
|
|
1423
2488
|
debug: "debug";
|
|
@@ -1512,6 +2577,25 @@ export declare const ToolResultContentSchema: z.ZodObject<{
|
|
|
1512
2577
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1513
2578
|
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
1514
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>]>;
|
|
1515
2599
|
/**
|
|
1516
2600
|
* Content block types allowed in sampling messages.
|
|
1517
2601
|
* This includes text, image, audio, tool use requests, and tool results.
|
|
@@ -1736,11 +2820,28 @@ export declare const SamplingMessageSchema: z.ZodObject<{
|
|
|
1736
2820
|
* Parameters for a `sampling/createMessage` request.
|
|
1737
2821
|
*/
|
|
1738
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>>;
|
|
1739
2834
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1740
2835
|
/**
|
|
1741
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.
|
|
1742
2837
|
*/
|
|
1743
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>>;
|
|
1744
2845
|
}, z.core.$loose>>;
|
|
1745
2846
|
messages: z.ZodArray<z.ZodObject<{
|
|
1746
2847
|
role: z.ZodEnum<{
|
|
@@ -1910,13 +3011,12 @@ export declare const CreateMessageRequestParamsSchema: z.ZodObject<{
|
|
|
1910
3011
|
type: z.ZodLiteral<"object">;
|
|
1911
3012
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
1912
3013
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1913
|
-
}, z.core.$
|
|
3014
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1914
3015
|
outputSchema: z.ZodOptional<z.ZodObject<{
|
|
1915
3016
|
type: z.ZodLiteral<"object">;
|
|
1916
3017
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
1917
3018
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1918
|
-
|
|
1919
|
-
}, z.core.$strip>>;
|
|
3019
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1920
3020
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
1921
3021
|
title: z.ZodOptional<z.ZodString>;
|
|
1922
3022
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1924,6 +3024,13 @@ export declare const CreateMessageRequestParamsSchema: z.ZodObject<{
|
|
|
1924
3024
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1925
3025
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1926
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>>;
|
|
1927
3034
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1928
3035
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1929
3036
|
src: z.ZodString;
|
|
@@ -1947,11 +3054,28 @@ export declare const CreateMessageRequestParamsSchema: z.ZodObject<{
|
|
|
1947
3054
|
export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
1948
3055
|
method: z.ZodLiteral<"sampling/createMessage">;
|
|
1949
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>>;
|
|
1950
3068
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
1951
3069
|
/**
|
|
1952
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.
|
|
1953
3071
|
*/
|
|
1954
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>>;
|
|
1955
3079
|
}, z.core.$loose>>;
|
|
1956
3080
|
messages: z.ZodArray<z.ZodObject<{
|
|
1957
3081
|
role: z.ZodEnum<{
|
|
@@ -2121,13 +3245,12 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
|
2121
3245
|
type: z.ZodLiteral<"object">;
|
|
2122
3246
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
2123
3247
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2124
|
-
}, z.core.$
|
|
3248
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
2125
3249
|
outputSchema: z.ZodOptional<z.ZodObject<{
|
|
2126
3250
|
type: z.ZodLiteral<"object">;
|
|
2127
3251
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
2128
3252
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2129
|
-
|
|
2130
|
-
}, z.core.$strip>>;
|
|
3253
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
2131
3254
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
2132
3255
|
title: z.ZodOptional<z.ZodString>;
|
|
2133
3256
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2135,6 +3258,13 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
|
2135
3258
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
2136
3259
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
2137
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>>;
|
|
2138
3268
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2139
3269
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2140
3270
|
src: z.ZodString;
|
|
@@ -2154,10 +3284,58 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
|
2154
3284
|
}, z.core.$loose>;
|
|
2155
3285
|
}, z.core.$strip>;
|
|
2156
3286
|
/**
|
|
2157
|
-
* 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.
|
|
2158
3290
|
*/
|
|
2159
3291
|
export declare const CreateMessageResultSchema: z.ZodObject<{
|
|
2160
|
-
_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>>;
|
|
2161
3339
|
model: z.ZodString;
|
|
2162
3340
|
stopReason: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
2163
3341
|
maxTokens: "maxTokens";
|
|
@@ -2590,13 +3768,30 @@ export declare const PrimitiveSchemaDefinitionSchema: z.ZodUnion<readonly [z.Zod
|
|
|
2590
3768
|
* Parameters for an `elicitation/create` request for form-based elicitation.
|
|
2591
3769
|
*/
|
|
2592
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>>;
|
|
2593
3782
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2594
3783
|
/**
|
|
2595
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.
|
|
2596
3785
|
*/
|
|
2597
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>>;
|
|
2598
3793
|
}, z.core.$loose>>;
|
|
2599
|
-
mode: z.ZodLiteral<"form"
|
|
3794
|
+
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
2600
3795
|
message: z.ZodString;
|
|
2601
3796
|
requestedSchema: z.ZodObject<{
|
|
2602
3797
|
type: z.ZodLiteral<"object">;
|
|
@@ -2682,11 +3877,28 @@ export declare const ElicitRequestFormParamsSchema: z.ZodObject<{
|
|
|
2682
3877
|
* Parameters for an `elicitation/create` request for URL-based elicitation.
|
|
2683
3878
|
*/
|
|
2684
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>>;
|
|
2685
3891
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2686
3892
|
/**
|
|
2687
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.
|
|
2688
3894
|
*/
|
|
2689
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>>;
|
|
2690
3902
|
}, z.core.$loose>>;
|
|
2691
3903
|
mode: z.ZodLiteral<"url">;
|
|
2692
3904
|
message: z.ZodString;
|
|
@@ -2697,13 +3909,30 @@ export declare const ElicitRequestURLParamsSchema: z.ZodObject<{
|
|
|
2697
3909
|
* The parameters for a request to elicit additional information from the user via the client.
|
|
2698
3910
|
*/
|
|
2699
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>>;
|
|
2700
3923
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2701
3924
|
/**
|
|
2702
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.
|
|
2703
3926
|
*/
|
|
2704
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>>;
|
|
2705
3934
|
}, z.core.$loose>>;
|
|
2706
|
-
mode: z.ZodLiteral<"form"
|
|
3935
|
+
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
2707
3936
|
message: z.ZodString;
|
|
2708
3937
|
requestedSchema: z.ZodObject<{
|
|
2709
3938
|
type: z.ZodLiteral<"object">;
|
|
@@ -2785,11 +4014,28 @@ export declare const ElicitRequestParamsSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
2785
4014
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2786
4015
|
}, z.core.$strip>;
|
|
2787
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>>;
|
|
2788
4028
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2789
4029
|
/**
|
|
2790
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.
|
|
2791
4031
|
*/
|
|
2792
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>>;
|
|
2793
4039
|
}, z.core.$loose>>;
|
|
2794
4040
|
mode: z.ZodLiteral<"url">;
|
|
2795
4041
|
message: z.ZodString;
|
|
@@ -2804,13 +4050,30 @@ export declare const ElicitRequestParamsSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
2804
4050
|
export declare const ElicitRequestSchema: z.ZodObject<{
|
|
2805
4051
|
method: z.ZodLiteral<"elicitation/create">;
|
|
2806
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>>;
|
|
2807
4064
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2808
4065
|
/**
|
|
2809
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.
|
|
2810
4067
|
*/
|
|
2811
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>>;
|
|
2812
4075
|
}, z.core.$loose>>;
|
|
2813
|
-
mode: z.ZodLiteral<"form"
|
|
4076
|
+
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
2814
4077
|
message: z.ZodString;
|
|
2815
4078
|
requestedSchema: z.ZodObject<{
|
|
2816
4079
|
type: z.ZodLiteral<"object">;
|
|
@@ -2892,11 +4155,28 @@ export declare const ElicitRequestSchema: z.ZodObject<{
|
|
|
2892
4155
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2893
4156
|
}, z.core.$strip>;
|
|
2894
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>>;
|
|
2895
4169
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2896
4170
|
/**
|
|
2897
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.
|
|
2898
4172
|
*/
|
|
2899
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>>;
|
|
2900
4180
|
}, z.core.$loose>>;
|
|
2901
4181
|
mode: z.ZodLiteral<"url">;
|
|
2902
4182
|
message: z.ZodString;
|
|
@@ -2910,7 +4190,11 @@ export declare const ElicitRequestSchema: z.ZodObject<{
|
|
|
2910
4190
|
* @category notifications/elicitation/complete
|
|
2911
4191
|
*/
|
|
2912
4192
|
export declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{
|
|
2913
|
-
_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>>;
|
|
2914
4198
|
elicitationId: z.ZodString;
|
|
2915
4199
|
}, z.core.$loose>;
|
|
2916
4200
|
/**
|
|
@@ -2921,7 +4205,11 @@ export declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{
|
|
|
2921
4205
|
export declare const ElicitationCompleteNotificationSchema: z.ZodObject<{
|
|
2922
4206
|
method: z.ZodLiteral<"notifications/elicitation/complete">;
|
|
2923
4207
|
params: z.ZodObject<{
|
|
2924
|
-
_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>>;
|
|
2925
4213
|
elicitationId: z.ZodString;
|
|
2926
4214
|
}, z.core.$loose>;
|
|
2927
4215
|
}, z.core.$strip>;
|
|
@@ -2929,13 +4217,20 @@ export declare const ElicitationCompleteNotificationSchema: z.ZodObject<{
|
|
|
2929
4217
|
* The client's response to an elicitation/create request from the server.
|
|
2930
4218
|
*/
|
|
2931
4219
|
export declare const ElicitResultSchema: z.ZodObject<{
|
|
2932
|
-
_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>>;
|
|
2933
4228
|
action: z.ZodEnum<{
|
|
4229
|
+
cancel: "cancel";
|
|
2934
4230
|
accept: "accept";
|
|
2935
4231
|
decline: "decline";
|
|
2936
|
-
cancel: "cancel";
|
|
2937
4232
|
}>;
|
|
2938
|
-
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>]>>>>;
|
|
2939
4234
|
}, z.core.$loose>;
|
|
2940
4235
|
/**
|
|
2941
4236
|
* A reference to a resource or resource template definition.
|
|
@@ -2962,11 +4257,28 @@ export declare const PromptReferenceSchema: z.ZodObject<{
|
|
|
2962
4257
|
* Parameters for a `completion/complete` request.
|
|
2963
4258
|
*/
|
|
2964
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>>;
|
|
2965
4271
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2966
4272
|
/**
|
|
2967
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.
|
|
2968
4274
|
*/
|
|
2969
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>>;
|
|
2970
4282
|
}, z.core.$loose>>;
|
|
2971
4283
|
ref: z.ZodUnion<readonly [z.ZodObject<{
|
|
2972
4284
|
type: z.ZodLiteral<"ref/prompt">;
|
|
@@ -2989,11 +4301,28 @@ export declare const CompleteRequestParamsSchema: z.ZodObject<{
|
|
|
2989
4301
|
export declare const CompleteRequestSchema: z.ZodObject<{
|
|
2990
4302
|
method: z.ZodLiteral<"completion/complete">;
|
|
2991
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>>;
|
|
2992
4315
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
2993
4316
|
/**
|
|
2994
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.
|
|
2995
4318
|
*/
|
|
2996
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>>;
|
|
2997
4326
|
}, z.core.$loose>>;
|
|
2998
4327
|
ref: z.ZodUnion<readonly [z.ZodObject<{
|
|
2999
4328
|
type: z.ZodLiteral<"ref/prompt">;
|
|
@@ -3017,7 +4346,14 @@ export declare function assertCompleteRequestResourceTemplate(request: CompleteR
|
|
|
3017
4346
|
* The server's response to a completion/complete request
|
|
3018
4347
|
*/
|
|
3019
4348
|
export declare const CompleteResultSchema: z.ZodObject<{
|
|
3020
|
-
_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>>;
|
|
3021
4357
|
completion: z.ZodObject<{
|
|
3022
4358
|
/**
|
|
3023
4359
|
* An array of completion values. Must not exceed 100 items.
|
|
@@ -3046,6 +4382,21 @@ export declare const RootSchema: z.ZodObject<{
|
|
|
3046
4382
|
*/
|
|
3047
4383
|
export declare const ListRootsRequestSchema: z.ZodObject<{
|
|
3048
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>>;
|
|
3049
4400
|
/**
|
|
3050
4401
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3051
4402
|
*/
|
|
@@ -3054,6 +4405,12 @@ export declare const ListRootsRequestSchema: z.ZodObject<{
|
|
|
3054
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.
|
|
3055
4406
|
*/
|
|
3056
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>>;
|
|
3057
4414
|
}, z.core.$loose>>;
|
|
3058
4415
|
}, z.core.$loose>>;
|
|
3059
4416
|
method: z.ZodLiteral<"roots/list">;
|
|
@@ -3062,7 +4419,14 @@ export declare const ListRootsRequestSchema: z.ZodObject<{
|
|
|
3062
4419
|
* The client's response to a roots/list request from the server.
|
|
3063
4420
|
*/
|
|
3064
4421
|
export declare const ListRootsResultSchema: z.ZodObject<{
|
|
3065
|
-
_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>>;
|
|
3066
4430
|
roots: z.ZodArray<z.ZodObject<{
|
|
3067
4431
|
uri: z.ZodString;
|
|
3068
4432
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3078,12 +4442,31 @@ export declare const RootsListChangedNotificationSchema: z.ZodObject<{
|
|
|
3078
4442
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3079
4443
|
* for notes on _meta usage.
|
|
3080
4444
|
*/
|
|
3081
|
-
_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>>;
|
|
3082
4450
|
}, z.core.$loose>>;
|
|
3083
4451
|
method: z.ZodLiteral<"notifications/roots/list_changed">;
|
|
3084
4452
|
}, z.core.$strip>;
|
|
3085
4453
|
export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3086
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>>;
|
|
3087
4470
|
/**
|
|
3088
4471
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3089
4472
|
*/
|
|
@@ -3092,17 +4475,40 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3092
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.
|
|
3093
4476
|
*/
|
|
3094
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>>;
|
|
3095
4484
|
}, z.core.$loose>>;
|
|
3096
4485
|
}, z.core.$loose>>;
|
|
3097
4486
|
method: z.ZodLiteral<"ping">;
|
|
3098
4487
|
}, z.core.$strip>, z.ZodObject<{
|
|
3099
4488
|
method: z.ZodLiteral<"initialize">;
|
|
3100
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>>;
|
|
3101
4501
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3102
4502
|
/**
|
|
3103
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.
|
|
3104
4504
|
*/
|
|
3105
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>>;
|
|
3106
4512
|
}, z.core.$loose>>;
|
|
3107
4513
|
protocolVersion: z.ZodString;
|
|
3108
4514
|
capabilities: z.ZodObject<{
|
|
@@ -3120,6 +4526,18 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3120
4526
|
roots: z.ZodOptional<z.ZodObject<{
|
|
3121
4527
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
3122
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>>;
|
|
3123
4541
|
}, z.core.$strip>;
|
|
3124
4542
|
clientInfo: z.ZodObject<{
|
|
3125
4543
|
version: z.ZodString;
|
|
@@ -3136,11 +4554,28 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3136
4554
|
}, z.core.$strip>, z.ZodObject<{
|
|
3137
4555
|
method: z.ZodLiteral<"completion/complete">;
|
|
3138
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>>;
|
|
3139
4568
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3140
4569
|
/**
|
|
3141
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.
|
|
3142
4571
|
*/
|
|
3143
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>>;
|
|
3144
4579
|
}, z.core.$loose>>;
|
|
3145
4580
|
ref: z.ZodUnion<readonly [z.ZodObject<{
|
|
3146
4581
|
type: z.ZodLiteral<"ref/prompt">;
|
|
@@ -3160,11 +4595,28 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3160
4595
|
}, z.core.$strip>, z.ZodObject<{
|
|
3161
4596
|
method: z.ZodLiteral<"logging/setLevel">;
|
|
3162
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>>;
|
|
3163
4609
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3164
4610
|
/**
|
|
3165
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.
|
|
3166
4612
|
*/
|
|
3167
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>>;
|
|
3168
4620
|
}, z.core.$loose>>;
|
|
3169
4621
|
level: z.ZodEnum<{
|
|
3170
4622
|
error: "error";
|
|
@@ -3180,44 +4632,112 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3180
4632
|
}, z.core.$strip>, z.ZodObject<{
|
|
3181
4633
|
method: z.ZodLiteral<"prompts/get">;
|
|
3182
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>>;
|
|
3183
4646
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3184
4647
|
/**
|
|
3185
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.
|
|
3186
4649
|
*/
|
|
3187
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>>;
|
|
3188
4657
|
}, z.core.$loose>>;
|
|
3189
4658
|
name: z.ZodString;
|
|
3190
4659
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3191
4660
|
}, z.core.$loose>;
|
|
3192
4661
|
}, z.core.$strip>, z.ZodObject<{
|
|
3193
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>>;
|
|
3194
4674
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3195
4675
|
/**
|
|
3196
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.
|
|
3197
4677
|
*/
|
|
3198
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>>;
|
|
3199
4685
|
}, z.core.$loose>>;
|
|
3200
4686
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3201
4687
|
}, z.core.$loose>>;
|
|
3202
4688
|
method: z.ZodLiteral<"prompts/list">;
|
|
3203
4689
|
}, z.core.$strip>, z.ZodObject<{
|
|
3204
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>>;
|
|
3205
4702
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3206
4703
|
/**
|
|
3207
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.
|
|
3208
4705
|
*/
|
|
3209
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>>;
|
|
3210
4713
|
}, z.core.$loose>>;
|
|
3211
4714
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3212
4715
|
}, z.core.$loose>>;
|
|
3213
4716
|
method: z.ZodLiteral<"resources/list">;
|
|
3214
4717
|
}, z.core.$strip>, z.ZodObject<{
|
|
3215
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>>;
|
|
3216
4730
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3217
4731
|
/**
|
|
3218
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.
|
|
3219
4733
|
*/
|
|
3220
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>>;
|
|
3221
4741
|
}, z.core.$loose>>;
|
|
3222
4742
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3223
4743
|
}, z.core.$loose>>;
|
|
@@ -3225,64 +4745,237 @@ export declare const ClientRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3225
4745
|
}, z.core.$strip>, z.ZodObject<{
|
|
3226
4746
|
method: z.ZodLiteral<"resources/read">;
|
|
3227
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>>;
|
|
3228
4759
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3229
4760
|
/**
|
|
3230
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.
|
|
3231
4762
|
*/
|
|
3232
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>>;
|
|
3233
4770
|
}, z.core.$loose>>;
|
|
3234
4771
|
uri: z.ZodString;
|
|
3235
4772
|
}, z.core.$loose>;
|
|
3236
4773
|
}, z.core.$strip>, z.ZodObject<{
|
|
3237
4774
|
method: z.ZodLiteral<"resources/subscribe">;
|
|
3238
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>>;
|
|
3239
4787
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3240
4788
|
/**
|
|
3241
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.
|
|
3242
4790
|
*/
|
|
3243
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>>;
|
|
3244
4798
|
}, z.core.$loose>>;
|
|
3245
4799
|
uri: z.ZodString;
|
|
3246
4800
|
}, z.core.$loose>;
|
|
3247
4801
|
}, z.core.$strip>, z.ZodObject<{
|
|
3248
4802
|
method: z.ZodLiteral<"resources/unsubscribe">;
|
|
3249
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>>;
|
|
3250
4815
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3251
4816
|
/**
|
|
3252
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.
|
|
3253
4818
|
*/
|
|
3254
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>>;
|
|
3255
4826
|
}, z.core.$loose>>;
|
|
3256
4827
|
uri: z.ZodString;
|
|
3257
4828
|
}, z.core.$loose>;
|
|
3258
4829
|
}, z.core.$strip>, z.ZodObject<{
|
|
3259
4830
|
method: z.ZodLiteral<"tools/call">;
|
|
3260
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>>;
|
|
3261
4843
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3262
4844
|
/**
|
|
3263
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.
|
|
3264
4846
|
*/
|
|
3265
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>>;
|
|
3266
4854
|
}, z.core.$loose>>;
|
|
3267
4855
|
name: z.ZodString;
|
|
3268
4856
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3269
4857
|
}, z.core.$loose>;
|
|
3270
4858
|
}, z.core.$strip>, z.ZodObject<{
|
|
3271
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>>;
|
|
3272
4871
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3273
4872
|
/**
|
|
3274
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.
|
|
3275
4874
|
*/
|
|
3276
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>>;
|
|
3277
4882
|
}, z.core.$loose>>;
|
|
3278
4883
|
cursor: z.ZodOptional<z.ZodString>;
|
|
3279
4884
|
}, z.core.$loose>>;
|
|
3280
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">;
|
|
3281
4970
|
}, z.core.$strip>]>;
|
|
3282
4971
|
export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3283
4972
|
method: z.ZodLiteral<"notifications/cancelled">;
|
|
3284
4973
|
params: z.ZodObject<{
|
|
3285
|
-
_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>>;
|
|
3286
4979
|
requestId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3287
4980
|
reason: z.ZodOptional<z.ZodString>;
|
|
3288
4981
|
}, z.core.$loose>;
|
|
@@ -3293,7 +4986,11 @@ export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3293
4986
|
progress: z.ZodNumber;
|
|
3294
4987
|
total: z.ZodOptional<z.ZodNumber>;
|
|
3295
4988
|
message: z.ZodOptional<z.ZodString>;
|
|
3296
|
-
_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>>;
|
|
3297
4994
|
}, z.core.$strip>;
|
|
3298
4995
|
}, z.core.$strip>, z.ZodObject<{
|
|
3299
4996
|
params: z.ZodOptional<z.ZodObject<{
|
|
@@ -3301,7 +4998,11 @@ export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3301
4998
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3302
4999
|
* for notes on _meta usage.
|
|
3303
5000
|
*/
|
|
3304
|
-
_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>>;
|
|
3305
5006
|
}, z.core.$loose>>;
|
|
3306
5007
|
method: z.ZodLiteral<"notifications/initialized">;
|
|
3307
5008
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3310,18 +5011,92 @@ export declare const ClientNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3310
5011
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3311
5012
|
* for notes on _meta usage.
|
|
3312
5013
|
*/
|
|
3313
|
-
_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>>;
|
|
3314
5019
|
}, z.core.$loose>>;
|
|
3315
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>;
|
|
3316
5043
|
}, z.core.$strip>]>;
|
|
3317
5044
|
export declare const ClientResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3318
5045
|
/**
|
|
3319
5046
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3320
5047
|
* for notes on _meta usage.
|
|
3321
5048
|
*/
|
|
3322
|
-
_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>>;
|
|
3323
5057
|
}, z.core.$strict>, z.ZodObject<{
|
|
3324
|
-
_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>>;
|
|
3325
5100
|
model: z.ZodString;
|
|
3326
5101
|
stopReason: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
3327
5102
|
maxTokens: "maxTokens";
|
|
@@ -3471,23 +5246,123 @@ export declare const ClientResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3471
5246
|
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
3472
5247
|
}, z.core.$loose>]>>]>;
|
|
3473
5248
|
}, z.core.$loose>, z.ZodObject<{
|
|
3474
|
-
_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>>;
|
|
3475
5257
|
action: z.ZodEnum<{
|
|
5258
|
+
cancel: "cancel";
|
|
3476
5259
|
accept: "accept";
|
|
3477
5260
|
decline: "decline";
|
|
3478
|
-
cancel: "cancel";
|
|
3479
5261
|
}>;
|
|
3480
|
-
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>]>>>>;
|
|
3481
5263
|
}, z.core.$loose>, z.ZodObject<{
|
|
3482
|
-
_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>>;
|
|
3483
5272
|
roots: z.ZodArray<z.ZodObject<{
|
|
3484
5273
|
uri: z.ZodString;
|
|
3485
5274
|
name: z.ZodOptional<z.ZodString>;
|
|
3486
5275
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3487
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>;
|
|
3488
5348
|
}, z.core.$loose>]>;
|
|
3489
5349
|
export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3490
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>>;
|
|
3491
5366
|
/**
|
|
3492
5367
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3493
5368
|
*/
|
|
@@ -3496,17 +5371,40 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3496
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.
|
|
3497
5372
|
*/
|
|
3498
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>>;
|
|
3499
5380
|
}, z.core.$loose>>;
|
|
3500
5381
|
}, z.core.$loose>>;
|
|
3501
5382
|
method: z.ZodLiteral<"ping">;
|
|
3502
5383
|
}, z.core.$strip>, z.ZodObject<{
|
|
3503
5384
|
method: z.ZodLiteral<"sampling/createMessage">;
|
|
3504
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>>;
|
|
3505
5397
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3506
5398
|
/**
|
|
3507
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.
|
|
3508
5400
|
*/
|
|
3509
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>>;
|
|
3510
5408
|
}, z.core.$loose>>;
|
|
3511
5409
|
messages: z.ZodArray<z.ZodObject<{
|
|
3512
5410
|
role: z.ZodEnum<{
|
|
@@ -3676,13 +5574,12 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3676
5574
|
type: z.ZodLiteral<"object">;
|
|
3677
5575
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
3678
5576
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3679
|
-
}, z.core.$
|
|
5577
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
3680
5578
|
outputSchema: z.ZodOptional<z.ZodObject<{
|
|
3681
5579
|
type: z.ZodLiteral<"object">;
|
|
3682
5580
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
3683
5581
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3684
|
-
|
|
3685
|
-
}, z.core.$strip>>;
|
|
5582
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
3686
5583
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
3687
5584
|
title: z.ZodOptional<z.ZodString>;
|
|
3688
5585
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3690,6 +5587,13 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3690
5587
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
3691
5588
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
3692
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>>;
|
|
3693
5597
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3694
5598
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3695
5599
|
src: z.ZodString;
|
|
@@ -3710,13 +5614,30 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3710
5614
|
}, z.core.$strip>, z.ZodObject<{
|
|
3711
5615
|
method: z.ZodLiteral<"elicitation/create">;
|
|
3712
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>>;
|
|
3713
5628
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3714
5629
|
/**
|
|
3715
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.
|
|
3716
5631
|
*/
|
|
3717
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>>;
|
|
3718
5639
|
}, z.core.$loose>>;
|
|
3719
|
-
mode: z.ZodLiteral<"form"
|
|
5640
|
+
mode: z.ZodOptional<z.ZodLiteral<"form">>;
|
|
3720
5641
|
message: z.ZodString;
|
|
3721
5642
|
requestedSchema: z.ZodObject<{
|
|
3722
5643
|
type: z.ZodLiteral<"object">;
|
|
@@ -3798,11 +5719,28 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3798
5719
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3799
5720
|
}, z.core.$strip>;
|
|
3800
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>>;
|
|
3801
5733
|
_meta: z.ZodOptional<z.ZodObject<{
|
|
3802
5734
|
/**
|
|
3803
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.
|
|
3804
5736
|
*/
|
|
3805
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>>;
|
|
3806
5744
|
}, z.core.$loose>>;
|
|
3807
5745
|
mode: z.ZodLiteral<"url">;
|
|
3808
5746
|
message: z.ZodString;
|
|
@@ -3811,6 +5749,21 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3811
5749
|
}, z.core.$loose>]>;
|
|
3812
5750
|
}, z.core.$strip>, z.ZodObject<{
|
|
3813
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>>;
|
|
3814
5767
|
/**
|
|
3815
5768
|
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
3816
5769
|
*/
|
|
@@ -3819,14 +5772,108 @@ export declare const ServerRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3819
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.
|
|
3820
5773
|
*/
|
|
3821
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>>;
|
|
3822
5781
|
}, z.core.$loose>>;
|
|
3823
5782
|
}, z.core.$loose>>;
|
|
3824
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">;
|
|
3825
5868
|
}, z.core.$strip>]>;
|
|
3826
5869
|
export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3827
5870
|
method: z.ZodLiteral<"notifications/cancelled">;
|
|
3828
5871
|
params: z.ZodObject<{
|
|
3829
|
-
_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>>;
|
|
3830
5877
|
requestId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3831
5878
|
reason: z.ZodOptional<z.ZodString>;
|
|
3832
5879
|
}, z.core.$loose>;
|
|
@@ -3837,12 +5884,20 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3837
5884
|
progress: z.ZodNumber;
|
|
3838
5885
|
total: z.ZodOptional<z.ZodNumber>;
|
|
3839
5886
|
message: z.ZodOptional<z.ZodString>;
|
|
3840
|
-
_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>>;
|
|
3841
5892
|
}, z.core.$strip>;
|
|
3842
5893
|
}, z.core.$strip>, z.ZodObject<{
|
|
3843
5894
|
method: z.ZodLiteral<"notifications/message">;
|
|
3844
5895
|
params: z.ZodObject<{
|
|
3845
|
-
_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>>;
|
|
3846
5901
|
level: z.ZodEnum<{
|
|
3847
5902
|
error: "error";
|
|
3848
5903
|
debug: "debug";
|
|
@@ -3859,7 +5914,11 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3859
5914
|
}, z.core.$strip>, z.ZodObject<{
|
|
3860
5915
|
method: z.ZodLiteral<"notifications/resources/updated">;
|
|
3861
5916
|
params: z.ZodObject<{
|
|
3862
|
-
_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>>;
|
|
3863
5922
|
uri: z.ZodString;
|
|
3864
5923
|
}, z.core.$loose>;
|
|
3865
5924
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3868,7 +5927,11 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3868
5927
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3869
5928
|
* for notes on _meta usage.
|
|
3870
5929
|
*/
|
|
3871
|
-
_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>>;
|
|
3872
5935
|
}, z.core.$loose>>;
|
|
3873
5936
|
method: z.ZodLiteral<"notifications/resources/list_changed">;
|
|
3874
5937
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3877,7 +5940,11 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3877
5940
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3878
5941
|
* for notes on _meta usage.
|
|
3879
5942
|
*/
|
|
3880
|
-
_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>>;
|
|
3881
5948
|
}, z.core.$loose>>;
|
|
3882
5949
|
method: z.ZodLiteral<"notifications/tools/list_changed">;
|
|
3883
5950
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3886,13 +5953,43 @@ export declare const ServerNotificationSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3886
5953
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3887
5954
|
* for notes on _meta usage.
|
|
3888
5955
|
*/
|
|
3889
|
-
_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>>;
|
|
3890
5961
|
}, z.core.$loose>>;
|
|
3891
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>;
|
|
3892
5985
|
}, z.core.$strip>, z.ZodObject<{
|
|
3893
5986
|
method: z.ZodLiteral<"notifications/elicitation/complete">;
|
|
3894
5987
|
params: z.ZodObject<{
|
|
3895
|
-
_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>>;
|
|
3896
5993
|
elicitationId: z.ZodString;
|
|
3897
5994
|
}, z.core.$loose>;
|
|
3898
5995
|
}, z.core.$strip>]>;
|
|
@@ -3901,9 +5998,23 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3901
5998
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
3902
5999
|
* for notes on _meta usage.
|
|
3903
6000
|
*/
|
|
3904
|
-
_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>>;
|
|
3905
6009
|
}, z.core.$strict>, z.ZodObject<{
|
|
3906
|
-
_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>>;
|
|
3907
6018
|
protocolVersion: z.ZodString;
|
|
3908
6019
|
capabilities: z.ZodObject<{
|
|
3909
6020
|
experimental: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
@@ -3919,7 +6030,16 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3919
6030
|
tools: z.ZodOptional<z.ZodObject<{
|
|
3920
6031
|
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
3921
6032
|
}, z.core.$strip>>;
|
|
3922
|
-
|
|
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>;
|
|
3923
6043
|
serverInfo: z.ZodObject<{
|
|
3924
6044
|
version: z.ZodString;
|
|
3925
6045
|
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -3933,7 +6053,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3933
6053
|
}, z.core.$strip>;
|
|
3934
6054
|
instructions: z.ZodOptional<z.ZodString>;
|
|
3935
6055
|
}, z.core.$loose>, z.ZodObject<{
|
|
3936
|
-
_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>>;
|
|
3937
6064
|
completion: z.ZodObject<{
|
|
3938
6065
|
/**
|
|
3939
6066
|
* An array of completion values. Must not exceed 100 items.
|
|
@@ -3949,7 +6076,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3949
6076
|
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
3950
6077
|
}, z.core.$loose>;
|
|
3951
6078
|
}, z.core.$loose>, z.ZodObject<{
|
|
3952
|
-
_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>>;
|
|
3953
6087
|
description: z.ZodOptional<z.ZodString>;
|
|
3954
6088
|
messages: z.ZodArray<z.ZodObject<{
|
|
3955
6089
|
role: z.ZodEnum<{
|
|
@@ -4000,7 +6134,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4000
6134
|
}, z.core.$strip>]>;
|
|
4001
6135
|
}, z.core.$strip>>;
|
|
4002
6136
|
}, z.core.$loose>, z.ZodObject<{
|
|
4003
|
-
_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>>;
|
|
4004
6145
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4005
6146
|
prompts: z.ZodArray<z.ZodObject<{
|
|
4006
6147
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4019,7 +6160,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4019
6160
|
title: z.ZodOptional<z.ZodString>;
|
|
4020
6161
|
}, z.core.$strip>>;
|
|
4021
6162
|
}, z.core.$loose>, z.ZodObject<{
|
|
4022
|
-
_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>>;
|
|
4023
6171
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4024
6172
|
resources: z.ZodArray<z.ZodObject<{
|
|
4025
6173
|
uri: z.ZodString;
|
|
@@ -4035,7 +6183,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4035
6183
|
title: z.ZodOptional<z.ZodString>;
|
|
4036
6184
|
}, z.core.$strip>>;
|
|
4037
6185
|
}, z.core.$loose>, z.ZodObject<{
|
|
4038
|
-
_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>>;
|
|
4039
6194
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4040
6195
|
resourceTemplates: z.ZodArray<z.ZodObject<{
|
|
4041
6196
|
uriTemplate: z.ZodString;
|
|
@@ -4051,7 +6206,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4051
6206
|
title: z.ZodOptional<z.ZodString>;
|
|
4052
6207
|
}, z.core.$strip>>;
|
|
4053
6208
|
}, z.core.$loose>, z.ZodObject<{
|
|
4054
|
-
_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>>;
|
|
4055
6217
|
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4056
6218
|
uri: z.ZodString;
|
|
4057
6219
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -4064,7 +6226,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4064
6226
|
blob: z.ZodString;
|
|
4065
6227
|
}, z.core.$strip>]>>;
|
|
4066
6228
|
}, z.core.$loose>, z.ZodObject<{
|
|
4067
|
-
_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>>;
|
|
4068
6237
|
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4069
6238
|
type: z.ZodLiteral<"text">;
|
|
4070
6239
|
text: z.ZodString;
|
|
@@ -4110,7 +6279,14 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4110
6279
|
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4111
6280
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
4112
6281
|
}, z.core.$loose>, z.ZodObject<{
|
|
4113
|
-
_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>>;
|
|
4114
6290
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4115
6291
|
tools: z.ZodArray<z.ZodObject<{
|
|
4116
6292
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4118,13 +6294,12 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4118
6294
|
type: z.ZodLiteral<"object">;
|
|
4119
6295
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
4120
6296
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4121
|
-
}, z.core.$
|
|
6297
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
4122
6298
|
outputSchema: z.ZodOptional<z.ZodObject<{
|
|
4123
6299
|
type: z.ZodLiteral<"object">;
|
|
4124
6300
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<object, object>>>;
|
|
4125
6301
|
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4126
|
-
|
|
4127
|
-
}, z.core.$strip>>;
|
|
6302
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
4128
6303
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
4129
6304
|
title: z.ZodOptional<z.ZodString>;
|
|
4130
6305
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4132,6 +6307,13 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4132
6307
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
4133
6308
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
4134
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>>;
|
|
4135
6317
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4136
6318
|
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4137
6319
|
src: z.ZodString;
|
|
@@ -4141,6 +6323,77 @@ export declare const ServerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
4141
6323
|
name: z.ZodString;
|
|
4142
6324
|
title: z.ZodOptional<z.ZodString>;
|
|
4143
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>;
|
|
4144
6397
|
}, z.core.$loose>]>;
|
|
4145
6398
|
export declare class McpError extends Error {
|
|
4146
6399
|
readonly code: number;
|
|
@@ -4189,6 +6442,16 @@ export interface MessageExtraInfo {
|
|
|
4189
6442
|
* The authentication information.
|
|
4190
6443
|
*/
|
|
4191
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;
|
|
4192
6455
|
}
|
|
4193
6456
|
export type ProgressToken = Infer<typeof ProgressTokenSchema>;
|
|
4194
6457
|
export type Cursor = Infer<typeof CursorSchema>;
|
|
@@ -4221,6 +6484,19 @@ export type PingRequest = Infer<typeof PingRequestSchema>;
|
|
|
4221
6484
|
export type Progress = Infer<typeof ProgressSchema>;
|
|
4222
6485
|
export type ProgressNotificationParams = Infer<typeof ProgressNotificationParamsSchema>;
|
|
4223
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>;
|
|
4224
6500
|
export type PaginatedRequestParams = Infer<typeof PaginatedRequestParamsSchema>;
|
|
4225
6501
|
export type PaginatedRequest = Infer<typeof PaginatedRequestSchema>;
|
|
4226
6502
|
export type PaginatedResult = Infer<typeof PaginatedResultSchema>;
|
|
@@ -4262,6 +6538,7 @@ export type PromptMessage = Infer<typeof PromptMessageSchema>;
|
|
|
4262
6538
|
export type GetPromptResult = Infer<typeof GetPromptResultSchema>;
|
|
4263
6539
|
export type PromptListChangedNotification = Infer<typeof PromptListChangedNotificationSchema>;
|
|
4264
6540
|
export type ToolAnnotations = Infer<typeof ToolAnnotationsSchema>;
|
|
6541
|
+
export type ToolExecution = Infer<typeof ToolExecutionSchema>;
|
|
4265
6542
|
export type Tool = Infer<typeof ToolSchema>;
|
|
4266
6543
|
export type ListToolsRequest = Infer<typeof ListToolsRequestSchema>;
|
|
4267
6544
|
export type ListToolsResult = Infer<typeof ListToolsResultSchema>;
|
|
@@ -4278,11 +6555,24 @@ export type LoggingMessageNotification = Infer<typeof LoggingMessageNotification
|
|
|
4278
6555
|
export type ToolChoice = Infer<typeof ToolChoiceSchema>;
|
|
4279
6556
|
export type ModelHint = Infer<typeof ModelHintSchema>;
|
|
4280
6557
|
export type ModelPreferences = Infer<typeof ModelPreferencesSchema>;
|
|
6558
|
+
export type SamplingContent = Infer<typeof SamplingContentSchema>;
|
|
4281
6559
|
export type SamplingMessageContentBlock = Infer<typeof SamplingMessageContentBlockSchema>;
|
|
4282
6560
|
export type SamplingMessage = Infer<typeof SamplingMessageSchema>;
|
|
4283
6561
|
export type CreateMessageRequestParams = Infer<typeof CreateMessageRequestParamsSchema>;
|
|
4284
6562
|
export type CreateMessageRequest = Infer<typeof CreateMessageRequestSchema>;
|
|
4285
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
|
+
}
|
|
4286
6576
|
export type BooleanSchema = Infer<typeof BooleanSchemaSchema>;
|
|
4287
6577
|
export type StringSchema = Infer<typeof StringSchemaSchema>;
|
|
4288
6578
|
export type NumberSchema = Infer<typeof NumberSchemaSchema>;
|