@casys/mcp-server 0.26.1 → 0.27.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/CHANGELOG.md +1779 -0
- package/LICENSE +21 -0
- package/README.md +15 -4
- package/esm/_dnt.polyfills.d.ts +12 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +15 -0
- package/esm/_dnt.shims.d.ts +2 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +57 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_chars.d.ts +33 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_chars.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_chars.js +48 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_dumper_state.d.ts +106 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_dumper_state.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_dumper_state.js +636 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_loader_state.d.ts +67 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_loader_state.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_loader_state.js +1393 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_schema.d.ts +44 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_schema.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_schema.js +117 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/binary.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/binary.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/binary.js +103 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/bool.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/bool.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/bool.js +32 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/float.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/float.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/float.js +96 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/int.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/int.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/int.js +159 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/map.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/map.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/map.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/merge.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/merge.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/merge.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/nil.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/nil.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/nil.js +22 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/omap.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/omap.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/omap.js +29 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/pairs.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/pairs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/pairs.js +19 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/regexp.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/regexp.js +30 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/seq.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/seq.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/seq.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/set.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/set.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/set.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/str.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/str.js +9 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/timestamp.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/timestamp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/timestamp.js +81 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/undefined.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/undefined.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type/undefined.js +20 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type.d.ts +32 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_type.js +6 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_utils.d.ts +4 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/_utils.js +13 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/mod.d.ts +51 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/mod.js +53 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/parse.d.ts +79 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/parse.js +91 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/stringify.d.ts +100 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/stringify.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/stringify.js +33 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/types.d.ts +111 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.2.0/types.js +104 -0
- package/esm/mod.d.ts +102 -0
- package/esm/mod.d.ts.map +1 -0
- package/esm/mod.js +103 -0
- package/esm/package.json +3 -0
- package/esm/src/auth/as-metadata-proxy.d.ts +112 -0
- package/esm/src/auth/as-metadata-proxy.d.ts.map +1 -0
- package/esm/src/auth/as-metadata-proxy.js +171 -0
- package/esm/src/auth/config.d.ts +117 -0
- package/esm/src/auth/config.d.ts.map +1 -0
- package/esm/src/auth/config.js +219 -0
- package/esm/src/auth/jwt-provider.d.ts +157 -0
- package/esm/src/auth/jwt-provider.d.ts.map +1 -0
- package/esm/src/auth/jwt-provider.js +187 -0
- package/esm/src/auth/middleware.d.ts +61 -0
- package/esm/src/auth/middleware.d.ts.map +1 -0
- package/esm/src/auth/middleware.js +209 -0
- package/esm/src/auth/mod.d.ts +23 -0
- package/esm/src/auth/mod.d.ts.map +1 -0
- package/esm/src/auth/mod.js +27 -0
- package/esm/src/auth/multi-tenant-middleware.d.ts +131 -0
- package/esm/src/auth/multi-tenant-middleware.d.ts.map +1 -0
- package/esm/src/auth/multi-tenant-middleware.js +128 -0
- package/esm/src/auth/presets.d.ts +231 -0
- package/esm/src/auth/presets.d.ts.map +1 -0
- package/esm/src/auth/presets.js +223 -0
- package/{src/auth/provider.ts → esm/src/auth/provider.d.ts} +13 -15
- package/esm/src/auth/provider.d.ts.map +1 -0
- package/esm/src/auth/provider.js +34 -0
- package/esm/src/auth/scope-middleware.d.ts +30 -0
- package/esm/src/auth/scope-middleware.d.ts.map +1 -0
- package/esm/src/auth/scope-middleware.js +48 -0
- package/esm/src/auth/static-token-provider.d.ts +155 -0
- package/esm/src/auth/static-token-provider.d.ts.map +1 -0
- package/esm/src/auth/static-token-provider.js +256 -0
- package/esm/src/auth/types.d.ts +151 -0
- package/esm/src/auth/types.d.ts.map +1 -0
- package/esm/src/auth/types.js +64 -0
- package/esm/src/client-auth/callback-server.d.ts +34 -0
- package/esm/src/client-auth/callback-server.d.ts.map +1 -0
- package/esm/src/client-auth/callback-server.js +141 -0
- package/esm/src/client-auth/client-id-metadata.d.ts +29 -0
- package/esm/src/client-auth/client-id-metadata.d.ts.map +1 -0
- package/esm/src/client-auth/client-id-metadata.js +149 -0
- package/esm/src/client-auth/connect.d.ts +32 -0
- package/esm/src/client-auth/connect.d.ts.map +1 -0
- package/esm/src/client-auth/connect.js +47 -0
- package/esm/src/client-auth/mod.d.ts +19 -0
- package/esm/src/client-auth/mod.d.ts.map +1 -0
- package/{src/client-auth/mod.ts → esm/src/client-auth/mod.js} +1 -26
- package/esm/src/client-auth/provider.d.ts +78 -0
- package/esm/src/client-auth/provider.d.ts.map +1 -0
- package/esm/src/client-auth/provider.js +246 -0
- package/esm/src/client-auth/token-store/file-store.d.ts +20 -0
- package/esm/src/client-auth/token-store/file-store.d.ts.map +1 -0
- package/esm/src/client-auth/token-store/file-store.js +62 -0
- package/esm/src/client-auth/token-store/memory-store.d.ts +14 -0
- package/esm/src/client-auth/token-store/memory-store.d.ts.map +1 -0
- package/esm/src/client-auth/token-store/memory-store.js +25 -0
- package/esm/src/client-auth/types.d.ts +89 -0
- package/esm/src/client-auth/types.d.ts.map +1 -0
- package/esm/src/client-auth/types.js +10 -0
- package/esm/src/concurrency/rate-limiter.d.ts +87 -0
- package/esm/src/concurrency/rate-limiter.d.ts.map +1 -0
- package/esm/src/concurrency/rate-limiter.js +165 -0
- package/esm/src/concurrency/request-queue.d.ts +71 -0
- package/esm/src/concurrency/request-queue.d.ts.map +1 -0
- package/esm/src/concurrency/request-queue.js +128 -0
- package/esm/src/http/body.d.ts +20 -0
- package/esm/src/http/body.d.ts.map +1 -0
- package/esm/src/http/body.js +63 -0
- package/esm/src/http/request-guards.d.ts +54 -0
- package/esm/src/http/request-guards.d.ts.map +1 -0
- package/esm/src/http/request-guards.js +114 -0
- package/esm/src/http/wire.d.ts +26 -0
- package/esm/src/http/wire.d.ts.map +1 -0
- package/{src/http/wire.ts → esm/src/http/wire.js} +13 -19
- package/esm/src/inspector/launcher.d.ts +48 -0
- package/esm/src/inspector/launcher.d.ts.map +1 -0
- package/esm/src/inspector/launcher.js +100 -0
- package/esm/src/mcp-app.d.ts +728 -0
- package/esm/src/mcp-app.d.ts.map +1 -0
- package/esm/src/mcp-app.js +3530 -0
- package/{src/middleware/backpressure.ts → esm/src/middleware/backpressure.d.ts} +2 -14
- package/esm/src/middleware/backpressure.d.ts.map +1 -0
- package/esm/src/middleware/backpressure.js +31 -0
- package/esm/src/middleware/mod.d.ts +11 -0
- package/esm/src/middleware/mod.d.ts.map +1 -0
- package/{src/middleware/mod.ts → esm/src/middleware/mod.js} +0 -10
- package/{src/middleware/rate-limit.ts → esm/src/middleware/rate-limit.d.ts} +2 -25
- package/esm/src/middleware/rate-limit.d.ts.map +1 -0
- package/esm/src/middleware/rate-limit.js +33 -0
- package/esm/src/middleware/runner.d.ts +32 -0
- package/esm/src/middleware/runner.d.ts.map +1 -0
- package/esm/src/middleware/runner.js +49 -0
- package/esm/src/middleware/types.d.ts +76 -0
- package/esm/src/middleware/types.d.ts.map +1 -0
- package/esm/src/middleware/types.js +9 -0
- package/esm/src/middleware/validation.d.ts +24 -0
- package/esm/src/middleware/validation.d.ts.map +1 -0
- package/esm/src/middleware/validation.js +30 -0
- package/esm/src/mrtr/capability-check.d.ts +75 -0
- package/esm/src/mrtr/capability-check.d.ts.map +1 -0
- package/esm/src/mrtr/capability-check.js +233 -0
- package/esm/src/mrtr/mod.d.ts +18 -0
- package/esm/src/mrtr/mod.d.ts.map +1 -0
- package/esm/src/mrtr/mod.js +12 -0
- package/esm/src/mrtr/replay-store.d.ts +50 -0
- package/esm/src/mrtr/replay-store.d.ts.map +1 -0
- package/esm/src/mrtr/replay-store.js +61 -0
- package/esm/src/mrtr/request-state.d.ts +181 -0
- package/esm/src/mrtr/request-state.d.ts.map +1 -0
- package/esm/src/mrtr/request-state.js +313 -0
- package/esm/src/mrtr/retry-guard.d.ts +61 -0
- package/esm/src/mrtr/retry-guard.d.ts.map +1 -0
- package/esm/src/mrtr/retry-guard.js +53 -0
- package/esm/src/mrtr/types.d.ts +99 -0
- package/esm/src/mrtr/types.d.ts.map +1 -0
- package/esm/src/mrtr/types.js +14 -0
- package/esm/src/observability/metrics.d.ts +104 -0
- package/esm/src/observability/metrics.d.ts.map +1 -0
- package/esm/src/observability/metrics.js +207 -0
- package/{src/observability/mod.ts → esm/src/observability/mod.d.ts} +2 -11
- package/esm/src/observability/mod.d.ts.map +1 -0
- package/esm/src/observability/mod.js +11 -0
- package/esm/src/observability/otel.d.ts +73 -0
- package/esm/src/observability/otel.d.ts.map +1 -0
- package/esm/src/observability/otel.js +260 -0
- package/esm/src/runtime/runtime.d.ts +10 -0
- package/esm/src/runtime/runtime.d.ts.map +1 -0
- package/esm/src/runtime/runtime.deno.d.ts +50 -0
- package/esm/src/runtime/runtime.deno.d.ts.map +1 -0
- package/esm/src/runtime/runtime.deno.js +120 -0
- package/{src/runtime/runtime.ts → esm/src/runtime/runtime.js} +5 -14
- package/esm/src/runtime/runtime.node.d.ts +51 -0
- package/esm/src/runtime/runtime.node.d.ts.map +1 -0
- package/esm/src/runtime/runtime.node.js +268 -0
- package/{src/runtime/types.ts → esm/src/runtime/types.d.ts} +28 -51
- package/esm/src/runtime/types.d.ts.map +1 -0
- package/esm/src/runtime/types.js +12 -0
- package/esm/src/security/channel-hmac.d.ts +43 -0
- package/esm/src/security/channel-hmac.d.ts.map +1 -0
- package/{src/security/channel-hmac.ts → esm/src/security/channel-hmac.js} +12 -17
- package/esm/src/security/csp.d.ts +50 -0
- package/esm/src/security/csp.d.ts.map +1 -0
- package/esm/src/security/csp.js +63 -0
- package/esm/src/security/message-signer.d.ts +88 -0
- package/esm/src/security/message-signer.d.ts.map +1 -0
- package/esm/src/security/message-signer.js +166 -0
- package/esm/src/subscriptions/subscription-registry.d.ts +256 -0
- package/esm/src/subscriptions/subscription-registry.d.ts.map +1 -0
- package/esm/src/subscriptions/subscription-registry.js +406 -0
- package/{src/tasks/mod.ts → esm/src/tasks/mod.d.ts} +3 -23
- package/esm/src/tasks/mod.d.ts.map +1 -0
- package/esm/src/tasks/mod.js +11 -0
- package/esm/src/tasks/task-store.d.ts +342 -0
- package/esm/src/tasks/task-store.d.ts.map +1 -0
- package/esm/src/tasks/task-store.js +649 -0
- package/esm/src/transport/request-headers.d.ts +145 -0
- package/esm/src/transport/request-headers.d.ts.map +1 -0
- package/esm/src/transport/request-headers.js +525 -0
- package/esm/src/types.d.ts +776 -0
- package/esm/src/types.d.ts.map +1 -0
- package/esm/src/types.js +92 -0
- package/esm/src/ui/viewer-utils.d.ts +45 -0
- package/esm/src/ui/viewer-utils.d.ts.map +1 -0
- package/esm/src/ui/viewer-utils.js +97 -0
- package/esm/src/validation/schema-validator.d.ts +115 -0
- package/esm/src/validation/schema-validator.d.ts.map +1 -0
- package/esm/src/validation/schema-validator.js +249 -0
- package/package.json +35 -24
- package/mod.ts +0 -302
- package/src/auth/as-metadata-proxy.ts +0 -288
- package/src/auth/config.ts +0 -368
- package/src/auth/jwt-provider.ts +0 -327
- package/src/auth/middleware.ts +0 -257
- package/src/auth/mod.ts +0 -89
- package/src/auth/multi-tenant-middleware.ts +0 -236
- package/src/auth/presets.ts +0 -351
- package/src/auth/scope-middleware.ts +0 -59
- package/src/auth/static-token-provider.ts +0 -197
- package/src/auth/types.ts +0 -207
- package/src/client-auth/callback-server.ts +0 -166
- package/src/client-auth/client-id-metadata.ts +0 -260
- package/src/client-auth/connect.ts +0 -72
- package/src/client-auth/provider.ts +0 -300
- package/src/client-auth/token-store/file-store.ts +0 -73
- package/src/client-auth/token-store/memory-store.ts +0 -32
- package/src/client-auth/types.ts +0 -95
- package/src/concurrency/rate-limiter.ts +0 -190
- package/src/concurrency/request-queue.ts +0 -140
- package/src/http/body.ts +0 -72
- package/src/http/request-guards.ts +0 -137
- package/src/inspector/launcher.ts +0 -131
- package/src/mcp-app.ts +0 -4595
- package/src/middleware/runner.ts +0 -63
- package/src/middleware/types.ts +0 -104
- package/src/middleware/validation.ts +0 -28
- package/src/mrtr/capability-check.ts +0 -303
- package/src/mrtr/mod.ts +0 -54
- package/src/mrtr/replay-store.ts +0 -103
- package/src/mrtr/request-state.ts +0 -435
- package/src/mrtr/retry-guard.ts +0 -110
- package/src/mrtr/types.ts +0 -107
- package/src/observability/metrics.ts +0 -336
- package/src/observability/otel.ts +0 -330
- package/src/runtime/runtime.deno.ts +0 -149
- package/src/runtime/runtime.node.ts +0 -324
- package/src/security/csp.ts +0 -89
- package/src/security/message-signer.ts +0 -223
- package/src/subscriptions/subscription-registry.ts +0 -558
- package/src/tasks/task-store.ts +0 -1014
- package/src/transport/request-headers.ts +0 -661
- package/src/types.ts +0 -908
- package/src/ui/viewer-utils.ts +0 -117
- package/src/validation/schema-validator.ts +0 -307
|
@@ -8,26 +8,6 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module lib/server/tasks
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
CancelledTask,
|
|
15
|
-
CompletedTask,
|
|
16
|
-
CreateTaskOptions,
|
|
17
|
-
CreateTaskResultFields,
|
|
18
|
-
DetailedTask,
|
|
19
|
-
FailedTask,
|
|
20
|
-
InputRequest,
|
|
21
|
-
InputRequiredTask,
|
|
22
|
-
Task,
|
|
23
|
-
TaskController,
|
|
24
|
-
TaskStoreOptions,
|
|
25
|
-
WorkingTask,
|
|
26
|
-
} from "./task-store.js";
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
createTask,
|
|
30
|
-
generateTaskId,
|
|
31
|
-
isAsyncTaskDescriptor,
|
|
32
|
-
TaskStore,
|
|
33
|
-
} from "./task-store.js";
|
|
11
|
+
export type { AsyncTaskDescriptor, CancelledTask, CompletedTask, CreateTaskOptions, CreateTaskResultFields, DetailedTask, FailedTask, InputRequest, InputRequiredTask, Task, TaskController, TaskStoreOptions, WorkingTask, } from "./task-store.js";
|
|
12
|
+
export { createTask, generateTaskId, isAsyncTaskDescriptor, TaskStore, } from "./task-store.js";
|
|
13
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/tasks/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,YAAY,EACV,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,SAAS,GACV,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API for the Tasks extension (io.modelcontextprotocol/tasks, SEP-2663).
|
|
3
|
+
*
|
|
4
|
+
* Tool handlers use `createTask()` to opt into async-task mode.
|
|
5
|
+
* The transport layer uses `TaskStore` to manage task lifecycle.
|
|
6
|
+
* `isAsyncTaskDescriptor()` is the discriminant the framework uses at the
|
|
7
|
+
* tools/call boundary to decide whether to spawn a task or return a result.
|
|
8
|
+
*
|
|
9
|
+
* @module lib/server/tasks
|
|
10
|
+
*/
|
|
11
|
+
export { createTask, generateTaskId, isAsyncTaskDescriptor, TaskStore, } from "./task-store.js";
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Produce a cryptographically-random task ID.
|
|
3
|
+
*
|
|
4
|
+
* 128 bits of entropy (32 lowercase hex chars). Spec §Security Considerations:
|
|
5
|
+
* "Task IDs MUST be generated with sufficient entropy that a third party cannot
|
|
6
|
+
* enumerate or guess them." 128 bits satisfies that at the same level as a
|
|
7
|
+
* UUID v4 but without the version/variant bits that reduce its effective
|
|
8
|
+
* entropy to 122 bits.
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateTaskId(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Options a tool handler provides when opting into async-task mode.
|
|
13
|
+
*
|
|
14
|
+
* All fields are optional; `TaskStore` fills defaults from its own options.
|
|
15
|
+
*/
|
|
16
|
+
export interface CreateTaskOptions {
|
|
17
|
+
/**
|
|
18
|
+
* TTL in ms from creation. `null` = no expiry (held until maxTasks eviction).
|
|
19
|
+
* Spec is silent on a default — callers omit this to get the store default.
|
|
20
|
+
*/
|
|
21
|
+
ttlMs?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Hint to the client: how often to call tasks/get (ms).
|
|
24
|
+
* Spec §Task Polling: clients SHOULD respect this.
|
|
25
|
+
* Default chosen as 5 000 ms — practical minimum that avoids hammering the
|
|
26
|
+
* server without causing noticeable delays on human-facing workflows.
|
|
27
|
+
*/
|
|
28
|
+
pollIntervalMs?: number;
|
|
29
|
+
/** Human-readable description of the initial working state. */
|
|
30
|
+
statusMessage?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* One outstanding server-to-client request, registered in `inputRequests`.
|
|
34
|
+
*
|
|
35
|
+
* Shape is intentionally minimal: it mirrors the spec's `InputRequest` type
|
|
36
|
+
* (method + params). The protocol is open-ended — concrete method names are
|
|
37
|
+
* defined per-extension (e.g. `sampling/createMessage`).
|
|
38
|
+
*/
|
|
39
|
+
export interface InputRequest {
|
|
40
|
+
readonly method: string;
|
|
41
|
+
readonly params: Record<string, unknown>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Interface the running task's work function uses to interact with the store.
|
|
45
|
+
*
|
|
46
|
+
* Design rule: `TaskController` is never stored by the framework after the
|
|
47
|
+
* `run()` promise settles. Tool handlers MUST NOT hold it past the promise.
|
|
48
|
+
*/
|
|
49
|
+
export interface TaskController {
|
|
50
|
+
/**
|
|
51
|
+
* Block the running work until the client delivers a response for `key`.
|
|
52
|
+
*
|
|
53
|
+
* Registers the request under `key` in `inputRequests` (moves task to
|
|
54
|
+
* `input_required`) and resolves with the client-provided response when
|
|
55
|
+
* `tasks/update` carries that key.
|
|
56
|
+
*
|
|
57
|
+
* Rejects with `DOMException("Task was cancelled", "AbortError")` if the
|
|
58
|
+
* task is cancelled while waiting.
|
|
59
|
+
*
|
|
60
|
+
* Spec §Task Update Requests: "Each inputRequests key MUST be unique over
|
|
61
|
+
* the entire lifetime of a single task. Server MUST NOT reuse a key after
|
|
62
|
+
* a response for that key has been delivered."
|
|
63
|
+
*/
|
|
64
|
+
requireInput(key: string, request: InputRequest): Promise<Record<string, unknown>>;
|
|
65
|
+
/** Update the status message visible on the next tasks/get. */
|
|
66
|
+
setStatusMessage(msg: string): void;
|
|
67
|
+
/**
|
|
68
|
+
* AbortSignal that fires when tasks/cancel is received.
|
|
69
|
+
* Long-running work SHOULD check this to short-circuit early.
|
|
70
|
+
* Spec: cancellation is cooperative — the task may still finish normally.
|
|
71
|
+
*/
|
|
72
|
+
readonly signal: AbortSignal;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Discriminated return value: a tool handler returns this to ask the framework
|
|
76
|
+
* to materialise an async task instead of a synchronous result.
|
|
77
|
+
*
|
|
78
|
+
* Use `createTask()` to construct; do not build this object manually — the
|
|
79
|
+
* `_type` discriminant is what `isAsyncTaskDescriptor()` keys on.
|
|
80
|
+
*/
|
|
81
|
+
export interface AsyncTaskDescriptor {
|
|
82
|
+
readonly _type: "async-task";
|
|
83
|
+
readonly options: CreateTaskOptions;
|
|
84
|
+
/**
|
|
85
|
+
* Background work. Return value becomes `CompletedTask.result`.
|
|
86
|
+
*
|
|
87
|
+
* To signal a protocol-level failure (→ `FailedTask`), throw an object with
|
|
88
|
+
* `{ code: number; message: string }`. This mirrors JSON-RPC error shape and
|
|
89
|
+
* is the spec's definition of the `failed` status.
|
|
90
|
+
*
|
|
91
|
+
* A tool-level business error (the ERPNext equivalent of "order not found")
|
|
92
|
+
* MUST NOT throw — it should be returned as part of the normal result, which
|
|
93
|
+
* reaches `completed`. Spec: "The 'failed' status MUST NOT be used for
|
|
94
|
+
* non-JSON-RPC errors. A tool result with isError: true reaches 'completed',
|
|
95
|
+
* not 'failed'."
|
|
96
|
+
*/
|
|
97
|
+
readonly run: (ctrl: TaskController) => Promise<unknown>;
|
|
98
|
+
}
|
|
99
|
+
/** Base fields shared by every task shape. */
|
|
100
|
+
export interface Task {
|
|
101
|
+
taskId: string;
|
|
102
|
+
status: "working" | "input_required" | "completed" | "cancelled" | "failed";
|
|
103
|
+
statusMessage?: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
lastUpdatedAt: string;
|
|
106
|
+
ttlMs: number | null;
|
|
107
|
+
pollIntervalMs?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface WorkingTask extends Task {
|
|
110
|
+
status: "working";
|
|
111
|
+
}
|
|
112
|
+
export interface InputRequiredTask extends Task {
|
|
113
|
+
status: "input_required";
|
|
114
|
+
/** All outstanding server-to-client requests, keyed by a unique caller-chosen identifier. */
|
|
115
|
+
inputRequests: Record<string, InputRequest>;
|
|
116
|
+
}
|
|
117
|
+
export interface CompletedTask extends Task {
|
|
118
|
+
status: "completed";
|
|
119
|
+
result: Record<string, unknown>;
|
|
120
|
+
}
|
|
121
|
+
export interface FailedTask extends Task {
|
|
122
|
+
status: "failed";
|
|
123
|
+
error: Record<string, unknown>;
|
|
124
|
+
}
|
|
125
|
+
export interface CancelledTask extends Task {
|
|
126
|
+
status: "cancelled";
|
|
127
|
+
}
|
|
128
|
+
/** Discriminated union of all possible task states. */
|
|
129
|
+
export type DetailedTask = WorkingTask | InputRequiredTask | CompletedTask | FailedTask | CancelledTask;
|
|
130
|
+
/**
|
|
131
|
+
* Fields returned as the initial result when tools/call spawns a task.
|
|
132
|
+
*
|
|
133
|
+
* `resultType: "task"` is added by the transport layer (NOT by stampResult —
|
|
134
|
+
* stampResult always sets `"complete"`, and CreateTaskResult requires `"task"`.
|
|
135
|
+
* The caller builds the response manually; see integration instructions.)
|
|
136
|
+
*/
|
|
137
|
+
export type CreateTaskResultFields = Task;
|
|
138
|
+
export interface TaskStoreOptions {
|
|
139
|
+
/**
|
|
140
|
+
* Default TTL for tasks whose handler did not provide one.
|
|
141
|
+
*
|
|
142
|
+
* Spec is silent. 3 600 000 ms (1 h) chosen because it's long enough for
|
|
143
|
+
* realistic ERPNext whole-table scans (stock treemap, revenue aggregations)
|
|
144
|
+
* but short enough to bound memory in a long-running server.
|
|
145
|
+
*/
|
|
146
|
+
defaultTtlMs: number;
|
|
147
|
+
/**
|
|
148
|
+
* Hard cap on stored tasks (terminal + non-terminal combined).
|
|
149
|
+
*
|
|
150
|
+
* Spec is silent. 5 000 chosen as half the session cap (10 000) since each
|
|
151
|
+
* task can carry an arbitrarily large `result` payload, so the per-entry
|
|
152
|
+
* cost is higher than a session entry.
|
|
153
|
+
*
|
|
154
|
+
* Eviction order when the cap is reached: terminal tasks first (by
|
|
155
|
+
* `terminalAt`, oldest first), then oldest non-terminal by `createdAt`.
|
|
156
|
+
* Terminal tasks have already served their purpose; evicting them first is
|
|
157
|
+
* the least-harmful policy.
|
|
158
|
+
*/
|
|
159
|
+
maxTasks: number;
|
|
160
|
+
/**
|
|
161
|
+
* How often to sweep tasks for TTL expiry.
|
|
162
|
+
*
|
|
163
|
+
* Piggybacking on the same 5-minute rhythm as the session cleanup in
|
|
164
|
+
* McpApp keeps operational patterns consistent. Not exposed to callers
|
|
165
|
+
* as a tunable because the appropriate value tracks the session timer.
|
|
166
|
+
*/
|
|
167
|
+
cleanupIntervalMs: number;
|
|
168
|
+
/**
|
|
169
|
+
* Optional callback invoked on every status transition.
|
|
170
|
+
*
|
|
171
|
+
* Intended as the wiring point for Track G (subscriptions/listen): once
|
|
172
|
+
* that lands, the subscription layer registers here and the TaskStore
|
|
173
|
+
* drives notifications without knowing about SSE or HTTP. No-op until
|
|
174
|
+
* Track G ships.
|
|
175
|
+
*/
|
|
176
|
+
onNotification?: (task: DetailedTask) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Runtime hook to unref the sweep timer, so it cannot hold the process open.
|
|
179
|
+
*
|
|
180
|
+
* Injected rather than imported: the store is runtime-agnostic, and Deno and
|
|
181
|
+
* Node expose different mechanisms for this.
|
|
182
|
+
*/
|
|
183
|
+
unrefTimer?: (id: ReturnType<typeof setInterval>) => void;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Factory for tool handlers that want to run asynchronously.
|
|
187
|
+
*
|
|
188
|
+
* Returns an `AsyncTaskDescriptor` the framework detects and routes through
|
|
189
|
+
* the `TaskStore`. The handler never sees the store directly — it only receives
|
|
190
|
+
* the `TaskController` when `run()` is invoked.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* // Inside a tool handler:
|
|
195
|
+
* return createTask({ ttlMs: 60_000, pollIntervalMs: 3_000 }, async (ctrl) => {
|
|
196
|
+
* const rows = await scanWholeTable(args, ctrl.signal);
|
|
197
|
+
* return { rows };
|
|
198
|
+
* });
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
export declare function createTask(options: CreateTaskOptions, run: (ctrl: TaskController) => Promise<unknown>): AsyncTaskDescriptor;
|
|
202
|
+
/**
|
|
203
|
+
* Type guard used by the transport to distinguish an `AsyncTaskDescriptor`
|
|
204
|
+
* from an ordinary tool result.
|
|
205
|
+
*
|
|
206
|
+
* Checks the private `_type` discriminant rather than shape-matching public
|
|
207
|
+
* fields, so a tool result that happens to carry similar fields is never
|
|
208
|
+
* misidentified.
|
|
209
|
+
*/
|
|
210
|
+
export declare function isAsyncTaskDescriptor(v: unknown): v is AsyncTaskDescriptor;
|
|
211
|
+
/**
|
|
212
|
+
* Server-side store for background tasks spawned by the Tasks extension.
|
|
213
|
+
*
|
|
214
|
+
* Responsibilities:
|
|
215
|
+
* - Issue unique, unguessable task IDs.
|
|
216
|
+
* - Store task state and transition it as work progresses.
|
|
217
|
+
* - Route client input (tasks/update) to waiting requireInput() calls.
|
|
218
|
+
* - Enforce TTL expiry and a hard memory cap via eviction.
|
|
219
|
+
* - Surface a notification callback for Track G (subscriptions/listen).
|
|
220
|
+
*
|
|
221
|
+
* All public methods are synchronous (except the background work itself)
|
|
222
|
+
* to ensure the tasks/get → tasks/update → tasks/cancel request flow
|
|
223
|
+
* never blocks on I/O inside the store.
|
|
224
|
+
*/
|
|
225
|
+
export declare class TaskStore {
|
|
226
|
+
private readonly _options;
|
|
227
|
+
private readonly _tasks;
|
|
228
|
+
private _cleanupTimer;
|
|
229
|
+
constructor(options?: Partial<TaskStoreOptions>);
|
|
230
|
+
/**
|
|
231
|
+
* Spawn a background task from an `AsyncTaskDescriptor`.
|
|
232
|
+
*
|
|
233
|
+
* MUST be called after verifying the client declared the tasks capability.
|
|
234
|
+
*
|
|
235
|
+
* Returns the `CreateTaskResultFields` the transport should send as the
|
|
236
|
+
* result of the triggering tools/call, with `resultType: "task"` added by
|
|
237
|
+
* the caller. (stampResult() sets `"complete"` and must NOT be called here.)
|
|
238
|
+
*
|
|
239
|
+
* Spec §Task Creation: "Server MUST NOT return CreateTaskResult until the
|
|
240
|
+
* task is durably created — a subsequent tasks/get for the returned taskId
|
|
241
|
+
* must resolve immediately." Fulfilled: we insert into `_tasks` before
|
|
242
|
+
* returning.
|
|
243
|
+
*/
|
|
244
|
+
spawn(descriptor: AsyncTaskDescriptor, owner: string, formatResult?: (raw: unknown) => Record<string, unknown>): CreateTaskResultFields;
|
|
245
|
+
/**
|
|
246
|
+
* Service a tasks/get request.
|
|
247
|
+
*
|
|
248
|
+
* Returns `null` when the taskId is unknown or has been purged
|
|
249
|
+
* (caller returns -32602).
|
|
250
|
+
*
|
|
251
|
+
* Spec §Task Polling: "If status is 'working', return Task with status
|
|
252
|
+
* 'working'; if 'input_required', return Task with inputRequests containing
|
|
253
|
+
* all outstanding server-to-client requests; if 'completed', return Task
|
|
254
|
+
* with result; if 'cancelled', return Task with status 'cancelled'; if
|
|
255
|
+
* 'failed', return Task with error."
|
|
256
|
+
*/
|
|
257
|
+
get(taskId: string, caller: string): DetailedTask | null;
|
|
258
|
+
/**
|
|
259
|
+
* Service a tasks/update request.
|
|
260
|
+
*
|
|
261
|
+
* Delivers client responses to outstanding requireInput() calls.
|
|
262
|
+
*
|
|
263
|
+
* Returns `true` on success, `false` if the taskId is unknown
|
|
264
|
+
* (caller SHOULD return -32602 per spec §Task Update Requests).
|
|
265
|
+
*
|
|
266
|
+
* Spec §Task Update Requests:
|
|
267
|
+
* - "Server SHOULD ignore inputResponses mapped to unknown, already-answered,
|
|
268
|
+
* or superseded keys."
|
|
269
|
+
* - "Server MAY accept a partial set of responses."
|
|
270
|
+
*
|
|
271
|
+
* Silently ignores responses for unknown keys instead of erroring, because
|
|
272
|
+
* a stale retry from an impatient client must not break an otherwise healthy
|
|
273
|
+
* task.
|
|
274
|
+
*/
|
|
275
|
+
update(taskId: string, inputResponses: Record<string, unknown>, caller: string): boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Service a tasks/cancel request.
|
|
278
|
+
*
|
|
279
|
+
* Returns `true` if the task was found (regardless of whether the work
|
|
280
|
+
* actually stops). Returns `false` if unknown (caller SHOULD return -32602).
|
|
281
|
+
*
|
|
282
|
+
* Spec §Task Cancellation: "Cancellation is cooperative: the server is not
|
|
283
|
+
* obligated to actually stop the work; it only acknowledges intent. Eventual
|
|
284
|
+
* transition to 'cancelled' is not guaranteed."
|
|
285
|
+
*
|
|
286
|
+
* `notifications/cancelled` MUST NOT be used for task cancellation — the spec
|
|
287
|
+
* reserves a dedicated `notifications/tasks/statusChanged` notification for
|
|
288
|
+
* Track G instead.
|
|
289
|
+
*/
|
|
290
|
+
cancel(taskId: string, caller: string): boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Signal all in-flight AbortControllers.
|
|
293
|
+
*
|
|
294
|
+
* Called by McpApp.stop() before awaiting httpServer.shutdown(), giving
|
|
295
|
+
* background Promises a chance to observe the signal and exit early.
|
|
296
|
+
* Does NOT await completion — best-effort on graceful shutdown.
|
|
297
|
+
*/
|
|
298
|
+
drain(): void;
|
|
299
|
+
/**
|
|
300
|
+
* Clear the cleanup interval.
|
|
301
|
+
*
|
|
302
|
+
* Must be called after drain() in McpApp.stop() to release the timer
|
|
303
|
+
* and let the process exit cleanly.
|
|
304
|
+
*/
|
|
305
|
+
/** True once dispose() ran; suppresses any late notification. */
|
|
306
|
+
private _disposed;
|
|
307
|
+
/** Whether this store has been torn down and must not accept new work. */
|
|
308
|
+
get isDisposed(): boolean;
|
|
309
|
+
/**
|
|
310
|
+
* Emit a status change, unless the store was disposed.
|
|
311
|
+
*
|
|
312
|
+
* A drained task's `run()` promise can still settle after dispose() — abort is
|
|
313
|
+
* cooperative, so work that ignores the signal keeps going. Pushing that
|
|
314
|
+
* transition to a subscriber whose transport is already torn down is at best
|
|
315
|
+
* useless and at worst a write to a closed stream.
|
|
316
|
+
*/
|
|
317
|
+
private _notify;
|
|
318
|
+
dispose(): void;
|
|
319
|
+
/** Current number of tracked tasks (terminal + non-terminal). */
|
|
320
|
+
get size(): number;
|
|
321
|
+
/**
|
|
322
|
+
* Sweep for TTL-expired tasks and mark them failed.
|
|
323
|
+
*
|
|
324
|
+
* Spec §Task Polling: "Server MAY mark a task as 'failed' at any point
|
|
325
|
+
* after the TTL elapses, and subsequently delete it at any time. Returning
|
|
326
|
+
* -32602 for an expired deleted task is compliant."
|
|
327
|
+
*
|
|
328
|
+
* We mark `failed` immediately on expiry and let maxTasks eviction handle
|
|
329
|
+
* physical deletion — this avoids a second timestamp-based deletion pass.
|
|
330
|
+
*/
|
|
331
|
+
private _sweep;
|
|
332
|
+
/**
|
|
333
|
+
* Enforce the maxTasks cap before inserting a new task.
|
|
334
|
+
*
|
|
335
|
+
* Eviction order (spec is silent; justified in TaskStoreOptions.maxTasks):
|
|
336
|
+
* 1. Terminal tasks, oldest-terminalAt first (already served their purpose).
|
|
337
|
+
* 2. Non-terminal tasks, oldest-createdAt first (least likely to be polled
|
|
338
|
+
* soon), with abort signal sent to allow cooperative cleanup.
|
|
339
|
+
*/
|
|
340
|
+
private _maybeEvict;
|
|
341
|
+
}
|
|
342
|
+
//# sourceMappingURL=task-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-store.d.ts","sourceRoot":"","sources":["../../../src/src/tasks/task-store.ts"],"names":[],"mappings":"AAkBA;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAIvC;AAID;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;;;OAaG;IACH,YAAY,CACV,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,YAAY,GACpB,OA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