@frontmcp/sdk 0.5.0 → 0.6.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.
Files changed (226) hide show
  1. package/README.md +3 -3
  2. package/package.json +8 -19
  3. package/src/adapter/adapter.instance.js +5 -0
  4. package/src/adapter/adapter.instance.js.map +1 -1
  5. package/src/auth/authorization/authorization.class.d.ts +1 -4
  6. package/src/auth/authorization/authorization.class.js +6 -13
  7. package/src/auth/authorization/authorization.class.js.map +1 -1
  8. package/src/auth/flows/session.verify.flow.d.ts +1 -0
  9. package/src/auth/flows/session.verify.flow.js +11 -1
  10. package/src/auth/flows/session.verify.flow.js.map +1 -1
  11. package/src/auth/flows/well-known.jwks.flow.js +2 -2
  12. package/src/auth/flows/well-known.jwks.flow.js.map +1 -1
  13. package/src/auth/jwks/dev-key-persistence.d.ts +63 -0
  14. package/src/auth/jwks/dev-key-persistence.js +219 -0
  15. package/src/auth/jwks/dev-key-persistence.js.map +1 -0
  16. package/src/auth/jwks/index.d.ts +1 -0
  17. package/src/auth/jwks/index.js +1 -0
  18. package/src/auth/jwks/index.js.map +1 -1
  19. package/src/auth/jwks/jwks.service.d.ts +7 -4
  20. package/src/auth/jwks/jwks.service.js +81 -12
  21. package/src/auth/jwks/jwks.service.js.map +1 -1
  22. package/src/auth/jwks/jwks.types.d.ts +7 -0
  23. package/src/auth/jwks/jwks.types.js.map +1 -1
  24. package/src/auth/machine-id.d.ts +5 -0
  25. package/src/auth/machine-id.js +32 -0
  26. package/src/auth/machine-id.js.map +1 -0
  27. package/src/auth/session/index.d.ts +1 -0
  28. package/src/auth/session/index.js +3 -1
  29. package/src/auth/session/index.js.map +1 -1
  30. package/src/auth/session/record/session.base.js +5 -3
  31. package/src/auth/session/record/session.base.js.map +1 -1
  32. package/src/auth/session/record/session.stateless.d.ts +2 -2
  33. package/src/auth/session/record/session.stateless.js +5 -3
  34. package/src/auth/session/record/session.stateless.js.map +1 -1
  35. package/src/auth/session/redis-session.store.d.ts +64 -0
  36. package/src/auth/session/redis-session.store.js +204 -0
  37. package/src/auth/session/redis-session.store.js.map +1 -0
  38. package/src/auth/session/session.service.d.ts +0 -2
  39. package/src/auth/session/session.service.js +1 -7
  40. package/src/auth/session/session.service.js.map +1 -1
  41. package/src/auth/session/transport-session.manager.js +3 -5
  42. package/src/auth/session/transport-session.manager.js.map +1 -1
  43. package/src/auth/session/transport-session.types.d.ts +4 -0
  44. package/src/auth/session/transport-session.types.js +4 -3
  45. package/src/auth/session/transport-session.types.js.map +1 -1
  46. package/src/auth/session/utils/session-id.utils.d.ts +12 -1
  47. package/src/auth/session/utils/session-id.utils.js +48 -9
  48. package/src/auth/session/utils/session-id.utils.js.map +1 -1
  49. package/src/auth/ui/base-layout.d.ts +0 -8
  50. package/src/auth/ui/base-layout.js +1 -14
  51. package/src/auth/ui/base-layout.js.map +1 -1
  52. package/src/auth/ui/index.d.ts +3 -4
  53. package/src/auth/ui/index.js +10 -11
  54. package/src/auth/ui/index.js.map +1 -1
  55. package/src/auth/ui/{htmx-templates.d.ts → templates.d.ts} +5 -6
  56. package/src/auth/ui/{htmx-templates.js → templates.js} +8 -15
  57. package/src/auth/ui/templates.js.map +1 -0
  58. package/src/common/decorators/decorator-utils.js.map +1 -1
  59. package/src/common/decorators/front-mcp.decorator.js +28 -2
  60. package/src/common/decorators/front-mcp.decorator.js.map +1 -1
  61. package/src/common/index.d.ts +0 -1
  62. package/src/common/index.js +0 -1
  63. package/src/common/index.js.map +1 -1
  64. package/src/common/interfaces/adapter.interface.d.ts +6 -0
  65. package/src/common/interfaces/adapter.interface.js.map +1 -1
  66. package/src/common/interfaces/execution-context.interface.d.ts +52 -3
  67. package/src/common/interfaces/execution-context.interface.js +88 -3
  68. package/src/common/interfaces/execution-context.interface.js.map +1 -1
  69. package/src/common/interfaces/flow.interface.d.ts +13 -0
  70. package/src/common/interfaces/flow.interface.js +24 -0
  71. package/src/common/interfaces/flow.interface.js.map +1 -1
  72. package/src/common/interfaces/server.interface.d.ts +9 -0
  73. package/src/common/interfaces/server.interface.js.map +1 -1
  74. package/src/common/metadata/app.metadata.d.ts +108 -0
  75. package/src/common/metadata/front-mcp.metadata.d.ts +659 -2
  76. package/src/common/metadata/front-mcp.metadata.js +3 -1
  77. package/src/common/metadata/front-mcp.metadata.js.map +1 -1
  78. package/src/common/metadata/provider.metadata.d.ts +14 -0
  79. package/src/common/metadata/provider.metadata.js +18 -2
  80. package/src/common/metadata/provider.metadata.js.map +1 -1
  81. package/src/common/metadata/tool.metadata.d.ts +33 -1
  82. package/src/common/metadata/tool.metadata.js.map +1 -1
  83. package/src/common/migrate/auth-transport.migrate.d.ts +62 -0
  84. package/src/common/migrate/auth-transport.migrate.js +140 -0
  85. package/src/common/migrate/auth-transport.migrate.js.map +1 -0
  86. package/src/common/migrate/index.d.ts +1 -0
  87. package/src/common/migrate/index.js +6 -0
  88. package/src/common/migrate/index.js.map +1 -0
  89. package/src/common/schemas/http-output.schema.d.ts +10 -2
  90. package/src/common/schemas/index.d.ts +1 -0
  91. package/src/common/schemas/index.js +1 -0
  92. package/src/common/schemas/index.js.map +1 -1
  93. package/src/common/schemas/session-header.schema.d.ts +16 -0
  94. package/src/common/schemas/session-header.schema.js +42 -0
  95. package/src/common/schemas/session-header.schema.js.map +1 -0
  96. package/src/common/tokens/front-mcp.tokens.js +3 -1
  97. package/src/common/tokens/front-mcp.tokens.js.map +1 -1
  98. package/src/common/types/options/auth.options.d.ts +233 -3
  99. package/src/common/types/options/auth.options.js +29 -40
  100. package/src/common/types/options/auth.options.js.map +1 -1
  101. package/src/common/types/options/index.d.ts +2 -0
  102. package/src/common/types/options/index.js +2 -0
  103. package/src/common/types/options/index.js.map +1 -1
  104. package/src/common/types/options/redis.options.d.ts +22 -0
  105. package/src/common/types/options/redis.options.js +45 -0
  106. package/src/common/types/options/redis.options.js.map +1 -0
  107. package/src/common/types/options/transport.options.d.ts +84 -0
  108. package/src/common/types/options/transport.options.js +121 -0
  109. package/src/common/types/options/transport.options.js.map +1 -0
  110. package/src/completion/flows/complete.flow.d.ts +17 -2
  111. package/src/context/frontmcp-context-storage.d.ts +94 -0
  112. package/src/context/frontmcp-context-storage.js +183 -0
  113. package/src/context/frontmcp-context-storage.js.map +1 -0
  114. package/src/context/frontmcp-context.d.ts +269 -0
  115. package/src/context/frontmcp-context.js +360 -0
  116. package/src/context/frontmcp-context.js.map +1 -0
  117. package/src/context/frontmcp-context.provider.d.ts +43 -0
  118. package/src/context/frontmcp-context.provider.js +61 -0
  119. package/src/context/frontmcp-context.provider.js.map +1 -0
  120. package/src/context/index.d.ts +34 -0
  121. package/src/context/index.js +64 -0
  122. package/src/context/index.js.map +1 -0
  123. package/src/context/request-context-storage.d.ts +89 -0
  124. package/src/context/request-context-storage.js +183 -0
  125. package/src/context/request-context-storage.js.map +1 -0
  126. package/src/context/request-context.d.ts +184 -0
  127. package/src/context/request-context.js +209 -0
  128. package/src/context/request-context.js.map +1 -0
  129. package/src/context/request-context.provider.d.ts +37 -0
  130. package/src/context/request-context.provider.js +51 -0
  131. package/src/context/request-context.provider.js.map +1 -0
  132. package/src/context/session-key.provider.d.ts +45 -0
  133. package/src/context/session-key.provider.js +65 -0
  134. package/src/context/session-key.provider.js.map +1 -0
  135. package/src/context/trace-context.d.ts +43 -0
  136. package/src/context/trace-context.js +142 -0
  137. package/src/context/trace-context.js.map +1 -0
  138. package/src/errors/index.d.ts +1 -1
  139. package/src/errors/index.js +3 -1
  140. package/src/errors/index.js.map +1 -1
  141. package/src/errors/mcp.error.d.ts +7 -0
  142. package/src/errors/mcp.error.js +11 -1
  143. package/src/errors/mcp.error.js.map +1 -1
  144. package/src/flows/flow.instance.d.ts +16 -0
  145. package/src/flows/flow.instance.js +166 -80
  146. package/src/flows/flow.instance.js.map +1 -1
  147. package/src/flows/flow.registry.d.ts +5 -0
  148. package/src/flows/flow.registry.js +45 -3
  149. package/src/flows/flow.registry.js.map +1 -1
  150. package/src/front-mcp/front-mcp.d.ts +12 -0
  151. package/src/front-mcp/front-mcp.js +22 -3
  152. package/src/front-mcp/front-mcp.js.map +1 -1
  153. package/src/front-mcp/front-mcp.providers.d.ts +266 -1
  154. package/src/front-mcp/front-mcp.providers.js +2 -1
  155. package/src/front-mcp/front-mcp.providers.js.map +1 -1
  156. package/src/front-mcp/serverless-handler.d.ts +28 -0
  157. package/src/front-mcp/serverless-handler.js +61 -0
  158. package/src/front-mcp/serverless-handler.js.map +1 -0
  159. package/src/hooks/hooks.utils.d.ts +1 -1
  160. package/src/hooks/hooks.utils.js +10 -3
  161. package/src/hooks/hooks.utils.js.map +1 -1
  162. package/src/index.d.ts +8 -4
  163. package/src/index.js +20 -1
  164. package/src/index.js.map +1 -1
  165. package/src/logger/instances/instance.logger.js +0 -1
  166. package/src/logger/instances/instance.logger.js.map +1 -1
  167. package/src/logging/flows/set-level.flow.d.ts +17 -2
  168. package/src/notification/notification.service.js +5 -1
  169. package/src/notification/notification.service.js.map +1 -1
  170. package/src/prompt/flows/get-prompt.flow.d.ts +97 -2
  171. package/src/prompt/flows/prompts-list.flow.d.ts +12 -1
  172. package/src/provider/provider.registry.d.ts +97 -5
  173. package/src/provider/provider.registry.js +306 -9
  174. package/src/provider/provider.registry.js.map +1 -1
  175. package/src/provider/provider.types.d.ts +21 -3
  176. package/src/provider/provider.types.js.map +1 -1
  177. package/src/resource/flows/read-resource.flow.d.ts +22 -3
  178. package/src/resource/flows/resource-templates-list.flow.d.ts +20 -1
  179. package/src/resource/flows/resources-list.flow.d.ts +20 -1
  180. package/src/resource/flows/subscribe-resource.flow.d.ts +17 -2
  181. package/src/resource/flows/unsubscribe-resource.flow.d.ts +17 -2
  182. package/src/scope/flows/http.request.flow.js +43 -7
  183. package/src/scope/flows/http.request.flow.js.map +1 -1
  184. package/src/scope/scope.instance.js +12 -5
  185. package/src/scope/scope.instance.js.map +1 -1
  186. package/src/server/adapters/base.host.adapter.d.ts +9 -0
  187. package/src/server/adapters/base.host.adapter.js.map +1 -1
  188. package/src/server/adapters/express.host.adapter.d.ts +12 -0
  189. package/src/server/adapters/express.host.adapter.js +21 -1
  190. package/src/server/adapters/express.host.adapter.js.map +1 -1
  191. package/src/server/server.instance.d.ts +3 -0
  192. package/src/server/server.instance.js +14 -7
  193. package/src/server/server.instance.js.map +1 -1
  194. package/src/tool/flows/call-tool.flow.d.ts +118 -13
  195. package/src/tool/flows/call-tool.flow.js +240 -194
  196. package/src/tool/flows/call-tool.flow.js.map +1 -1
  197. package/src/tool/flows/tools-list.flow.d.ts +25 -11
  198. package/src/tool/flows/tools-list.flow.js +82 -31
  199. package/src/tool/flows/tools-list.flow.js.map +1 -1
  200. package/src/tool/tool.instance.d.ts +1 -4
  201. package/src/transport/adapters/transport.streamable-http.adapter.js +1 -0
  202. package/src/transport/adapters/transport.streamable-http.adapter.js.map +1 -1
  203. package/src/transport/flows/handle.sse.flow.js +9 -2
  204. package/src/transport/flows/handle.sse.flow.js.map +1 -1
  205. package/src/transport/flows/handle.streamable-http.flow.js +63 -6
  206. package/src/transport/flows/handle.streamable-http.flow.js.map +1 -1
  207. package/src/transport/mcp-handlers/complete-request.handler.d.ts +27 -1
  208. package/src/transport/mcp-handlers/get-prompt-request.handler.d.ts +52 -1
  209. package/src/transport/mcp-handlers/index.d.ts +413 -7
  210. package/src/transport/mcp-handlers/initialize-request.handler.js +12 -2
  211. package/src/transport/mcp-handlers/initialize-request.handler.js.map +1 -1
  212. package/src/transport/mcp-handlers/list-prompts-request.handler.d.ts +27 -1
  213. package/src/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +32 -1
  214. package/src/transport/mcp-handlers/list-resources-request.handler.d.ts +32 -1
  215. package/src/transport/mcp-handlers/list-tools-request.handler.d.ts +30 -1
  216. package/src/transport/mcp-handlers/logging-set-level-request.handler.d.ts +20 -0
  217. package/src/transport/mcp-handlers/read-resource-request.handler.d.ts +27 -1
  218. package/src/transport/mcp-handlers/subscribe-request.handler.d.ts +20 -0
  219. package/src/transport/mcp-handlers/unsubscribe-request.handler.d.ts +20 -0
  220. package/src/transport/transport.registry.d.ts +68 -4
  221. package/src/transport/transport.registry.js +313 -11
  222. package/src/transport/transport.registry.js.map +1 -1
  223. package/src/auth/ui/htmx-templates.js.map +0 -1
  224. package/src/common/providers/session.provider.d.ts +0 -13
  225. package/src/common/providers/session.provider.js +0 -27
  226. package/src/common/providers/session.provider.js.map +0 -1
@@ -23,6 +23,30 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
23
23
  roots?: {
24
24
  listChanged?: boolean | undefined;
25
25
  } | undefined;
26
+ tasks?: {
27
+ [x: string]: unknown;
28
+ list?: {
29
+ [x: string]: unknown;
30
+ } | undefined;
31
+ cancel?: {
32
+ [x: string]: unknown;
33
+ } | undefined;
34
+ requests?: {
35
+ [x: string]: unknown;
36
+ sampling?: {
37
+ [x: string]: unknown;
38
+ createMessage?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ } | undefined;
42
+ elicitation?: {
43
+ [x: string]: unknown;
44
+ create?: {
45
+ [x: string]: unknown;
46
+ } | undefined;
47
+ } | undefined;
48
+ } | undefined;
49
+ } | undefined;
26
50
  };
27
51
  clientInfo: {
28
52
  version: string;
@@ -35,15 +59,25 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
35
59
  }[] | undefined;
36
60
  title?: string | undefined;
37
61
  };
62
+ task?: {
63
+ [x: string]: unknown;
64
+ ttl?: number | null | undefined;
65
+ pollInterval?: number | undefined;
66
+ } | undefined;
38
67
  _meta?: {
39
68
  [x: string]: unknown;
40
69
  progressToken?: string | number | undefined;
70
+ "io.modelcontextprotocol/related-task"?: {
71
+ [x: string]: unknown;
72
+ taskId: string;
73
+ } | undefined;
41
74
  } | undefined;
42
75
  };
43
76
  }, {
44
77
  [x: string]: unknown;
45
78
  protocolVersion: string;
46
79
  capabilities: {
80
+ [x: string]: unknown;
47
81
  experimental?: {
48
82
  [x: string]: object;
49
83
  } | undefined;
@@ -59,6 +93,24 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
59
93
  tools?: {
60
94
  listChanged?: boolean | undefined;
61
95
  } | undefined;
96
+ tasks?: {
97
+ [x: string]: unknown;
98
+ list?: {
99
+ [x: string]: unknown;
100
+ } | undefined;
101
+ cancel?: {
102
+ [x: string]: unknown;
103
+ } | undefined;
104
+ requests?: {
105
+ [x: string]: unknown;
106
+ tools?: {
107
+ [x: string]: unknown;
108
+ call?: {
109
+ [x: string]: unknown;
110
+ } | undefined;
111
+ } | undefined;
112
+ } | undefined;
113
+ } | undefined;
62
114
  };
63
115
  serverInfo: {
64
116
  version: string;
@@ -73,6 +125,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
73
125
  };
74
126
  _meta?: {
75
127
  [x: string]: unknown;
128
+ "io.modelcontextprotocol/related-task"?: {
129
+ [x: string]: unknown;
130
+ taskId: string;
131
+ } | undefined;
76
132
  } | undefined;
77
133
  instructions?: string | undefined;
78
134
  }, import("zod").ZodObject<any, import("zod/v4/core").$strip>, import("zod").ZodObject<any, import("zod/v4/core").$strip>, {
@@ -81,6 +137,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
81
137
  [x: string]: unknown;
82
138
  _meta?: {
83
139
  [x: string]: unknown;
140
+ "io.modelcontextprotocol/related-task"?: {
141
+ [x: string]: unknown;
142
+ taskId: string;
143
+ } | undefined;
84
144
  } | undefined;
85
145
  } | undefined;
86
146
  }> | import("./mcp-handlers.types").McpHandler<{
@@ -89,12 +149,20 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
89
149
  [x: string]: unknown;
90
150
  _meta?: {
91
151
  [x: string]: unknown;
152
+ "io.modelcontextprotocol/related-task"?: {
153
+ [x: string]: unknown;
154
+ taskId: string;
155
+ } | undefined;
92
156
  } | undefined;
93
157
  } | undefined;
94
158
  }, {
95
159
  [x: string]: unknown;
96
160
  _meta?: {
97
161
  [x: string]: unknown;
162
+ "io.modelcontextprotocol/related-task"?: {
163
+ [x: string]: unknown;
164
+ taskId: string;
165
+ } | undefined;
98
166
  } | undefined;
99
167
  }, import("zod").ZodObject<any, import("zod/v4/core").$strip>, import("zod").ZodObject<any, import("zod/v4/core").$strip>, {
100
168
  method: string;
@@ -102,13 +170,24 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
102
170
  [x: string]: unknown;
103
171
  _meta?: {
104
172
  [x: string]: unknown;
173
+ "io.modelcontextprotocol/related-task"?: {
174
+ [x: string]: unknown;
175
+ taskId: string;
176
+ } | undefined;
105
177
  } | undefined;
106
178
  } | undefined;
107
179
  }> | {
108
180
  requestSchema: import("zod").ZodObject<{
109
181
  params: import("zod").ZodOptional<import("zod").ZodObject<{
182
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
183
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
184
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
185
+ }, import("zod/v4/core").$loose>>;
110
186
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
111
187
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
188
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
189
+ taskId: import("zod").ZodString;
190
+ }, import("zod/v4/core").$loose>>;
112
191
  }, import("zod/v4/core").$loose>>;
113
192
  cursor: import("zod").ZodOptional<import("zod").ZodString>;
114
193
  }, import("zod/v4/core").$loose>>;
@@ -118,9 +197,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
118
197
  method: "tools/list";
119
198
  params?: {
120
199
  [x: string]: unknown;
200
+ task?: {
201
+ [x: string]: unknown;
202
+ ttl?: number | null | undefined;
203
+ pollInterval?: number | undefined;
204
+ } | undefined;
121
205
  _meta?: {
122
206
  [x: string]: unknown;
123
207
  progressToken?: string | number | undefined;
208
+ "io.modelcontextprotocol/related-task"?: {
209
+ [x: string]: unknown;
210
+ taskId: string;
211
+ } | undefined;
124
212
  } | undefined;
125
213
  cursor?: string | undefined;
126
214
  } | undefined;
@@ -130,6 +218,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
130
218
  [x: string]: unknown;
131
219
  _meta?: {
132
220
  [x: string]: unknown;
221
+ "io.modelcontextprotocol/related-task"?: {
222
+ [x: string]: unknown;
223
+ taskId: string;
224
+ } | undefined;
133
225
  } | undefined;
134
226
  } | undefined;
135
227
  }>) => Promise<{
@@ -156,6 +248,9 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
156
248
  idempotentHint?: boolean | undefined;
157
249
  openWorldHint?: boolean | undefined;
158
250
  } | undefined;
251
+ execution?: {
252
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
253
+ } | undefined;
159
254
  _meta?: Record<string, unknown> | undefined;
160
255
  icons?: {
161
256
  src: string;
@@ -164,7 +259,13 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
164
259
  }[] | undefined;
165
260
  title?: string | undefined;
166
261
  }[];
167
- _meta?: Record<string, unknown> | undefined;
262
+ _meta?: {
263
+ [x: string]: unknown;
264
+ "io.modelcontextprotocol/related-task"?: {
265
+ [x: string]: unknown;
266
+ taskId: string;
267
+ } | undefined;
268
+ } | undefined;
168
269
  nextCursor?: string | undefined;
169
270
  }>;
170
271
  } | import("./mcp-handlers.types").McpHandler<{
@@ -172,9 +273,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
172
273
  params: {
173
274
  [x: string]: unknown;
174
275
  name: string;
276
+ task?: {
277
+ [x: string]: unknown;
278
+ ttl?: number | null | undefined;
279
+ pollInterval?: number | undefined;
280
+ } | undefined;
175
281
  _meta?: {
176
282
  [x: string]: unknown;
177
283
  progressToken?: string | number | undefined;
284
+ "io.modelcontextprotocol/related-task"?: {
285
+ [x: string]: unknown;
286
+ taskId: string;
287
+ } | undefined;
178
288
  } | undefined;
179
289
  arguments?: {
180
290
  [x: string]: unknown;
@@ -185,6 +295,11 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
185
295
  content: ({
186
296
  type: "text";
187
297
  text: string;
298
+ annotations?: {
299
+ audience?: ("user" | "assistant")[] | undefined;
300
+ priority?: number | undefined;
301
+ lastModified?: string | undefined;
302
+ } | undefined;
188
303
  _meta?: {
189
304
  [x: string]: unknown;
190
305
  } | undefined;
@@ -192,6 +307,11 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
192
307
  type: "image";
193
308
  data: string;
194
309
  mimeType: string;
310
+ annotations?: {
311
+ audience?: ("user" | "assistant")[] | undefined;
312
+ priority?: number | undefined;
313
+ lastModified?: string | undefined;
314
+ } | undefined;
195
315
  _meta?: {
196
316
  [x: string]: unknown;
197
317
  } | undefined;
@@ -199,6 +319,11 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
199
319
  type: "audio";
200
320
  data: string;
201
321
  mimeType: string;
322
+ annotations?: {
323
+ audience?: ("user" | "assistant")[] | undefined;
324
+ priority?: number | undefined;
325
+ lastModified?: string | undefined;
326
+ } | undefined;
202
327
  _meta?: {
203
328
  [x: string]: unknown;
204
329
  } | undefined;
@@ -208,6 +333,11 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
208
333
  type: "resource_link";
209
334
  description?: string | undefined;
210
335
  mimeType?: string | undefined;
336
+ annotations?: {
337
+ audience?: ("user" | "assistant")[] | undefined;
338
+ priority?: number | undefined;
339
+ lastModified?: string | undefined;
340
+ } | undefined;
211
341
  _meta?: {
212
342
  [x: string]: unknown;
213
343
  } | undefined;
@@ -234,12 +364,21 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
234
364
  [x: string]: unknown;
235
365
  } | undefined;
236
366
  };
367
+ annotations?: {
368
+ audience?: ("user" | "assistant")[] | undefined;
369
+ priority?: number | undefined;
370
+ lastModified?: string | undefined;
371
+ } | undefined;
237
372
  _meta?: {
238
373
  [x: string]: unknown;
239
374
  } | undefined;
240
375
  })[];
241
376
  _meta?: {
242
377
  [x: string]: unknown;
378
+ "io.modelcontextprotocol/related-task"?: {
379
+ [x: string]: unknown;
380
+ taskId: string;
381
+ } | undefined;
243
382
  } | undefined;
244
383
  structuredContent?: {
245
384
  [x: string]: unknown;
@@ -251,13 +390,24 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
251
390
  [x: string]: unknown;
252
391
  _meta?: {
253
392
  [x: string]: unknown;
393
+ "io.modelcontextprotocol/related-task"?: {
394
+ [x: string]: unknown;
395
+ taskId: string;
396
+ } | undefined;
254
397
  } | undefined;
255
398
  } | undefined;
256
399
  }> | {
257
400
  requestSchema: import("zod").ZodObject<{
258
401
  params: import("zod").ZodOptional<import("zod").ZodObject<{
402
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
403
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
404
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
405
+ }, import("zod/v4/core").$loose>>;
259
406
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
260
407
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
408
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
409
+ taskId: import("zod").ZodString;
410
+ }, import("zod/v4/core").$loose>>;
261
411
  }, import("zod/v4/core").$loose>>;
262
412
  cursor: import("zod").ZodOptional<import("zod").ZodString>;
263
413
  }, import("zod/v4/core").$loose>>;
@@ -267,9 +417,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
267
417
  method: "resources/list";
268
418
  params?: {
269
419
  [x: string]: unknown;
420
+ task?: {
421
+ [x: string]: unknown;
422
+ ttl?: number | null | undefined;
423
+ pollInterval?: number | undefined;
424
+ } | undefined;
270
425
  _meta?: {
271
426
  [x: string]: unknown;
272
427
  progressToken?: string | number | undefined;
428
+ "io.modelcontextprotocol/related-task"?: {
429
+ [x: string]: unknown;
430
+ taskId: string;
431
+ } | undefined;
273
432
  } | undefined;
274
433
  cursor?: string | undefined;
275
434
  } | undefined;
@@ -279,6 +438,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
279
438
  [x: string]: unknown;
280
439
  _meta?: {
281
440
  [x: string]: unknown;
441
+ "io.modelcontextprotocol/related-task"?: {
442
+ [x: string]: unknown;
443
+ taskId: string;
444
+ } | undefined;
282
445
  } | undefined;
283
446
  } | undefined;
284
447
  }>) => Promise<{
@@ -288,6 +451,11 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
288
451
  name: string;
289
452
  description?: string | undefined;
290
453
  mimeType?: string | undefined;
454
+ annotations?: {
455
+ audience?: ("user" | "assistant")[] | undefined;
456
+ priority?: number | undefined;
457
+ lastModified?: string | undefined;
458
+ } | undefined;
291
459
  _meta?: {
292
460
  [x: string]: unknown;
293
461
  } | undefined;
@@ -298,14 +466,27 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
298
466
  }[] | undefined;
299
467
  title?: string | undefined;
300
468
  }[];
301
- _meta?: Record<string, unknown> | undefined;
469
+ _meta?: {
470
+ [x: string]: unknown;
471
+ "io.modelcontextprotocol/related-task"?: {
472
+ [x: string]: unknown;
473
+ taskId: string;
474
+ } | undefined;
475
+ } | undefined;
302
476
  nextCursor?: string | undefined;
303
477
  }>;
304
478
  } | {
305
479
  requestSchema: import("zod").ZodObject<{
306
480
  params: import("zod").ZodOptional<import("zod").ZodObject<{
481
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
482
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
483
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
484
+ }, import("zod/v4/core").$loose>>;
307
485
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
308
486
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
487
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
488
+ taskId: import("zod").ZodString;
489
+ }, import("zod/v4/core").$loose>>;
309
490
  }, import("zod/v4/core").$loose>>;
310
491
  cursor: import("zod").ZodOptional<import("zod").ZodString>;
311
492
  }, import("zod/v4/core").$loose>>;
@@ -315,9 +496,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
315
496
  method: "resources/templates/list";
316
497
  params?: {
317
498
  [x: string]: unknown;
499
+ task?: {
500
+ [x: string]: unknown;
501
+ ttl?: number | null | undefined;
502
+ pollInterval?: number | undefined;
503
+ } | undefined;
318
504
  _meta?: {
319
505
  [x: string]: unknown;
320
506
  progressToken?: string | number | undefined;
507
+ "io.modelcontextprotocol/related-task"?: {
508
+ [x: string]: unknown;
509
+ taskId: string;
510
+ } | undefined;
321
511
  } | undefined;
322
512
  cursor?: string | undefined;
323
513
  } | undefined;
@@ -327,6 +517,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
327
517
  [x: string]: unknown;
328
518
  _meta?: {
329
519
  [x: string]: unknown;
520
+ "io.modelcontextprotocol/related-task"?: {
521
+ [x: string]: unknown;
522
+ taskId: string;
523
+ } | undefined;
330
524
  } | undefined;
331
525
  } | undefined;
332
526
  }>) => Promise<{
@@ -336,6 +530,11 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
336
530
  name: string;
337
531
  description?: string | undefined;
338
532
  mimeType?: string | undefined;
533
+ annotations?: {
534
+ audience?: ("user" | "assistant")[] | undefined;
535
+ priority?: number | undefined;
536
+ lastModified?: string | undefined;
537
+ } | undefined;
339
538
  _meta?: {
340
539
  [x: string]: unknown;
341
540
  } | undefined;
@@ -346,15 +545,28 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
346
545
  }[] | undefined;
347
546
  title?: string | undefined;
348
547
  }[];
349
- _meta?: Record<string, unknown> | undefined;
548
+ _meta?: {
549
+ [x: string]: unknown;
550
+ "io.modelcontextprotocol/related-task"?: {
551
+ [x: string]: unknown;
552
+ taskId: string;
553
+ } | undefined;
554
+ } | undefined;
350
555
  nextCursor?: string | undefined;
351
556
  }>;
352
557
  } | {
353
558
  requestSchema: import("zod").ZodObject<{
354
559
  method: import("zod").ZodLiteral<"resources/read">;
355
560
  params: import("zod").ZodObject<{
561
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
562
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
563
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
564
+ }, import("zod/v4/core").$loose>>;
356
565
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
357
566
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
567
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
568
+ taskId: import("zod").ZodString;
569
+ }, import("zod/v4/core").$loose>>;
358
570
  }, import("zod/v4/core").$loose>>;
359
571
  uri: import("zod").ZodString;
360
572
  }, import("zod/v4/core").$loose>;
@@ -364,9 +576,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
364
576
  params: {
365
577
  [x: string]: unknown;
366
578
  uri: string;
579
+ task?: {
580
+ [x: string]: unknown;
581
+ ttl?: number | null | undefined;
582
+ pollInterval?: number | undefined;
583
+ } | undefined;
367
584
  _meta?: {
368
585
  [x: string]: unknown;
369
586
  progressToken?: string | number | undefined;
587
+ "io.modelcontextprotocol/related-task"?: {
588
+ [x: string]: unknown;
589
+ taskId: string;
590
+ } | undefined;
370
591
  } | undefined;
371
592
  };
372
593
  }, {
@@ -375,6 +596,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
375
596
  [x: string]: unknown;
376
597
  _meta?: {
377
598
  [x: string]: unknown;
599
+ "io.modelcontextprotocol/related-task"?: {
600
+ [x: string]: unknown;
601
+ taskId: string;
602
+ } | undefined;
378
603
  } | undefined;
379
604
  } | undefined;
380
605
  }>) => Promise<{
@@ -390,14 +615,27 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
390
615
  mimeType?: string | undefined;
391
616
  _meta?: Record<string, unknown> | undefined;
392
617
  })[];
393
- _meta?: Record<string, unknown> | undefined;
618
+ _meta?: {
619
+ [x: string]: unknown;
620
+ "io.modelcontextprotocol/related-task"?: {
621
+ [x: string]: unknown;
622
+ taskId: string;
623
+ } | undefined;
624
+ } | undefined;
394
625
  }>;
395
626
  } | {
396
627
  requestSchema: import("zod").ZodObject<{
397
628
  method: import("zod").ZodLiteral<"resources/subscribe">;
398
629
  params: import("zod").ZodObject<{
630
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
631
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
632
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
633
+ }, import("zod/v4/core").$loose>>;
399
634
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
400
635
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
636
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
637
+ taskId: import("zod").ZodString;
638
+ }, import("zod/v4/core").$loose>>;
401
639
  }, import("zod/v4/core").$loose>>;
402
640
  uri: import("zod").ZodString;
403
641
  }, import("zod/v4/core").$loose>;
@@ -407,9 +645,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
407
645
  params: {
408
646
  [x: string]: unknown;
409
647
  uri: string;
648
+ task?: {
649
+ [x: string]: unknown;
650
+ ttl?: number | null | undefined;
651
+ pollInterval?: number | undefined;
652
+ } | undefined;
410
653
  _meta?: {
411
654
  [x: string]: unknown;
412
655
  progressToken?: string | number | undefined;
656
+ "io.modelcontextprotocol/related-task"?: {
657
+ [x: string]: unknown;
658
+ taskId: string;
659
+ } | undefined;
413
660
  } | undefined;
414
661
  };
415
662
  }, {
@@ -418,6 +665,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
418
665
  [x: string]: unknown;
419
666
  _meta?: {
420
667
  [x: string]: unknown;
668
+ "io.modelcontextprotocol/related-task"?: {
669
+ [x: string]: unknown;
670
+ taskId: string;
671
+ } | undefined;
421
672
  } | undefined;
422
673
  } | undefined;
423
674
  }>) => Promise<import("@modelcontextprotocol/sdk/types.js").EmptyResult>;
@@ -425,8 +676,15 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
425
676
  requestSchema: import("zod").ZodObject<{
426
677
  method: import("zod").ZodLiteral<"resources/unsubscribe">;
427
678
  params: import("zod").ZodObject<{
679
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
680
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
681
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
682
+ }, import("zod/v4/core").$loose>>;
428
683
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
429
684
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
685
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
686
+ taskId: import("zod").ZodString;
687
+ }, import("zod/v4/core").$loose>>;
430
688
  }, import("zod/v4/core").$loose>>;
431
689
  uri: import("zod").ZodString;
432
690
  }, import("zod/v4/core").$loose>;
@@ -436,9 +694,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
436
694
  params: {
437
695
  [x: string]: unknown;
438
696
  uri: string;
697
+ task?: {
698
+ [x: string]: unknown;
699
+ ttl?: number | null | undefined;
700
+ pollInterval?: number | undefined;
701
+ } | undefined;
439
702
  _meta?: {
440
703
  [x: string]: unknown;
441
704
  progressToken?: string | number | undefined;
705
+ "io.modelcontextprotocol/related-task"?: {
706
+ [x: string]: unknown;
707
+ taskId: string;
708
+ } | undefined;
442
709
  } | undefined;
443
710
  };
444
711
  }, {
@@ -447,14 +714,25 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
447
714
  [x: string]: unknown;
448
715
  _meta?: {
449
716
  [x: string]: unknown;
717
+ "io.modelcontextprotocol/related-task"?: {
718
+ [x: string]: unknown;
719
+ taskId: string;
720
+ } | undefined;
450
721
  } | undefined;
451
722
  } | undefined;
452
723
  }>) => Promise<import("@modelcontextprotocol/sdk/types.js").EmptyResult>;
453
724
  } | {
454
725
  requestSchema: import("zod").ZodObject<{
455
726
  params: import("zod").ZodOptional<import("zod").ZodObject<{
727
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
728
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
729
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
730
+ }, import("zod/v4/core").$loose>>;
456
731
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
457
732
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
733
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
734
+ taskId: import("zod").ZodString;
735
+ }, import("zod/v4/core").$loose>>;
458
736
  }, import("zod/v4/core").$loose>>;
459
737
  cursor: import("zod").ZodOptional<import("zod").ZodString>;
460
738
  }, import("zod/v4/core").$loose>>;
@@ -464,9 +742,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
464
742
  method: "prompts/list";
465
743
  params?: {
466
744
  [x: string]: unknown;
745
+ task?: {
746
+ [x: string]: unknown;
747
+ ttl?: number | null | undefined;
748
+ pollInterval?: number | undefined;
749
+ } | undefined;
467
750
  _meta?: {
468
751
  [x: string]: unknown;
469
752
  progressToken?: string | number | undefined;
753
+ "io.modelcontextprotocol/related-task"?: {
754
+ [x: string]: unknown;
755
+ taskId: string;
756
+ } | undefined;
470
757
  } | undefined;
471
758
  cursor?: string | undefined;
472
759
  } | undefined;
@@ -476,6 +763,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
476
763
  [x: string]: unknown;
477
764
  _meta?: {
478
765
  [x: string]: unknown;
766
+ "io.modelcontextprotocol/related-task"?: {
767
+ [x: string]: unknown;
768
+ taskId: string;
769
+ } | undefined;
479
770
  } | undefined;
480
771
  } | undefined;
481
772
  }>) => Promise<{
@@ -498,15 +789,28 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
498
789
  }[] | undefined;
499
790
  title?: string | undefined;
500
791
  }[];
501
- _meta?: Record<string, unknown> | undefined;
792
+ _meta?: {
793
+ [x: string]: unknown;
794
+ "io.modelcontextprotocol/related-task"?: {
795
+ [x: string]: unknown;
796
+ taskId: string;
797
+ } | undefined;
798
+ } | undefined;
502
799
  nextCursor?: string | undefined;
503
800
  }>;
504
801
  } | {
505
802
  requestSchema: import("zod").ZodObject<{
506
803
  method: import("zod").ZodLiteral<"prompts/get">;
507
804
  params: import("zod").ZodObject<{
805
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
806
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
807
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
808
+ }, import("zod/v4/core").$loose>>;
508
809
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
509
810
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
811
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
812
+ taskId: import("zod").ZodString;
813
+ }, import("zod/v4/core").$loose>>;
510
814
  }, import("zod/v4/core").$loose>>;
511
815
  name: import("zod").ZodString;
512
816
  arguments: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
@@ -517,9 +821,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
517
821
  params: {
518
822
  [x: string]: unknown;
519
823
  name: string;
824
+ task?: {
825
+ [x: string]: unknown;
826
+ ttl?: number | null | undefined;
827
+ pollInterval?: number | undefined;
828
+ } | undefined;
520
829
  _meta?: {
521
830
  [x: string]: unknown;
522
831
  progressToken?: string | number | undefined;
832
+ "io.modelcontextprotocol/related-task"?: {
833
+ [x: string]: unknown;
834
+ taskId: string;
835
+ } | undefined;
523
836
  } | undefined;
524
837
  arguments?: {
525
838
  [x: string]: string;
@@ -531,6 +844,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
531
844
  [x: string]: unknown;
532
845
  _meta?: {
533
846
  [x: string]: unknown;
847
+ "io.modelcontextprotocol/related-task"?: {
848
+ [x: string]: unknown;
849
+ taskId: string;
850
+ } | undefined;
534
851
  } | undefined;
535
852
  } | undefined;
536
853
  }>) => Promise<{
@@ -540,16 +857,31 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
540
857
  content: {
541
858
  type: "text";
542
859
  text: string;
860
+ annotations?: {
861
+ audience?: ("user" | "assistant")[] | undefined;
862
+ priority?: number | undefined;
863
+ lastModified?: string | undefined;
864
+ } | undefined;
543
865
  _meta?: Record<string, unknown> | undefined;
544
866
  } | {
545
867
  type: "image";
546
868
  data: string;
547
869
  mimeType: string;
870
+ annotations?: {
871
+ audience?: ("user" | "assistant")[] | undefined;
872
+ priority?: number | undefined;
873
+ lastModified?: string | undefined;
874
+ } | undefined;
548
875
  _meta?: Record<string, unknown> | undefined;
549
876
  } | {
550
877
  type: "audio";
551
878
  data: string;
552
879
  mimeType: string;
880
+ annotations?: {
881
+ audience?: ("user" | "assistant")[] | undefined;
882
+ priority?: number | undefined;
883
+ lastModified?: string | undefined;
884
+ } | undefined;
553
885
  _meta?: Record<string, unknown> | undefined;
554
886
  } | {
555
887
  uri: string;
@@ -557,6 +889,11 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
557
889
  type: "resource_link";
558
890
  description?: string | undefined;
559
891
  mimeType?: string | undefined;
892
+ annotations?: {
893
+ audience?: ("user" | "assistant")[] | undefined;
894
+ priority?: number | undefined;
895
+ lastModified?: string | undefined;
896
+ } | undefined;
560
897
  _meta?: {
561
898
  [x: string]: unknown;
562
899
  } | undefined;
@@ -579,18 +916,36 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
579
916
  mimeType?: string | undefined;
580
917
  _meta?: Record<string, unknown> | undefined;
581
918
  };
919
+ annotations?: {
920
+ audience?: ("user" | "assistant")[] | undefined;
921
+ priority?: number | undefined;
922
+ lastModified?: string | undefined;
923
+ } | undefined;
582
924
  _meta?: Record<string, unknown> | undefined;
583
925
  };
584
926
  }[];
585
- _meta?: Record<string, unknown> | undefined;
927
+ _meta?: {
928
+ [x: string]: unknown;
929
+ "io.modelcontextprotocol/related-task"?: {
930
+ [x: string]: unknown;
931
+ taskId: string;
932
+ } | undefined;
933
+ } | undefined;
586
934
  description?: string | undefined;
587
935
  }>;
588
936
  } | {
589
937
  requestSchema: import("zod").ZodObject<{
590
938
  method: import("zod").ZodLiteral<"completion/complete">;
591
939
  params: import("zod").ZodObject<{
940
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
941
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
942
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
943
+ }, import("zod/v4/core").$loose>>;
592
944
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
593
945
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
946
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
947
+ taskId: import("zod").ZodString;
948
+ }, import("zod/v4/core").$loose>>;
594
949
  }, import("zod/v4/core").$loose>>;
595
950
  ref: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
596
951
  type: import("zod").ZodLiteral<"ref/prompt">;
@@ -623,9 +978,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
623
978
  name: string;
624
979
  value: string;
625
980
  };
981
+ task?: {
982
+ [x: string]: unknown;
983
+ ttl?: number | null | undefined;
984
+ pollInterval?: number | undefined;
985
+ } | undefined;
626
986
  _meta?: {
627
987
  [x: string]: unknown;
628
988
  progressToken?: string | number | undefined;
989
+ "io.modelcontextprotocol/related-task"?: {
990
+ [x: string]: unknown;
991
+ taskId: string;
992
+ } | undefined;
629
993
  } | undefined;
630
994
  context?: {
631
995
  arguments?: {
@@ -639,6 +1003,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
639
1003
  [x: string]: unknown;
640
1004
  _meta?: {
641
1005
  [x: string]: unknown;
1006
+ "io.modelcontextprotocol/related-task"?: {
1007
+ [x: string]: unknown;
1008
+ taskId: string;
1009
+ } | undefined;
642
1010
  } | undefined;
643
1011
  } | undefined;
644
1012
  }>) => Promise<{
@@ -649,14 +1017,27 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
649
1017
  total?: number | undefined;
650
1018
  hasMore?: boolean | undefined;
651
1019
  };
652
- _meta?: Record<string, unknown> | undefined;
1020
+ _meta?: {
1021
+ [x: string]: unknown;
1022
+ "io.modelcontextprotocol/related-task"?: {
1023
+ [x: string]: unknown;
1024
+ taskId: string;
1025
+ } | undefined;
1026
+ } | undefined;
653
1027
  }>;
654
1028
  } | {
655
1029
  requestSchema: import("zod").ZodObject<{
656
1030
  method: import("zod").ZodLiteral<"logging/setLevel">;
657
1031
  params: import("zod").ZodObject<{
1032
+ task: import("zod").ZodOptional<import("zod").ZodObject<{
1033
+ ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodNull]>>;
1034
+ pollInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
1035
+ }, import("zod/v4/core").$loose>>;
658
1036
  _meta: import("zod").ZodOptional<import("zod").ZodObject<{
659
1037
  progressToken: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
1038
+ "io.modelcontextprotocol/related-task": import("zod").ZodOptional<import("zod").ZodObject<{
1039
+ taskId: import("zod").ZodString;
1040
+ }, import("zod/v4/core").$loose>>;
660
1041
  }, import("zod/v4/core").$loose>>;
661
1042
  level: import("zod").ZodEnum<{
662
1043
  error: "error";
@@ -675,9 +1056,18 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
675
1056
  params: {
676
1057
  [x: string]: unknown;
677
1058
  level: "error" | "debug" | "info" | "warning" | "notice" | "critical" | "alert" | "emergency";
1059
+ task?: {
1060
+ [x: string]: unknown;
1061
+ ttl?: number | null | undefined;
1062
+ pollInterval?: number | undefined;
1063
+ } | undefined;
678
1064
  _meta?: {
679
1065
  [x: string]: unknown;
680
1066
  progressToken?: string | number | undefined;
1067
+ "io.modelcontextprotocol/related-task"?: {
1068
+ [x: string]: unknown;
1069
+ taskId: string;
1070
+ } | undefined;
681
1071
  } | undefined;
682
1072
  };
683
1073
  }, {
@@ -686,6 +1076,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
686
1076
  [x: string]: unknown;
687
1077
  _meta?: {
688
1078
  [x: string]: unknown;
1079
+ "io.modelcontextprotocol/related-task"?: {
1080
+ [x: string]: unknown;
1081
+ taskId: string;
1082
+ } | undefined;
689
1083
  } | undefined;
690
1084
  } | undefined;
691
1085
  }>) => Promise<import("@modelcontextprotocol/sdk/types.js").EmptyResult>;
@@ -695,12 +1089,20 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
695
1089
  [x: string]: unknown;
696
1090
  _meta?: {
697
1091
  [x: string]: unknown;
1092
+ "io.modelcontextprotocol/related-task"?: {
1093
+ [x: string]: unknown;
1094
+ taskId: string;
1095
+ } | undefined;
698
1096
  } | undefined;
699
1097
  } | undefined;
700
1098
  }, {
701
1099
  [x: string]: unknown;
702
1100
  _meta?: {
703
1101
  [x: string]: unknown;
1102
+ "io.modelcontextprotocol/related-task"?: {
1103
+ [x: string]: unknown;
1104
+ taskId: string;
1105
+ } | undefined;
704
1106
  } | undefined;
705
1107
  }, import("zod").ZodObject<any, import("zod/v4/core").$strip>, import("zod").ZodObject<any, import("zod/v4/core").$strip>, {
706
1108
  method: string;
@@ -708,6 +1110,10 @@ export declare function createMcpHandlers(options: McpHandlerOptions): (import("
708
1110
  [x: string]: unknown;
709
1111
  _meta?: {
710
1112
  [x: string]: unknown;
1113
+ "io.modelcontextprotocol/related-task"?: {
1114
+ [x: string]: unknown;
1115
+ taskId: string;
1116
+ } | undefined;
711
1117
  } | undefined;
712
1118
  } | undefined;
713
1119
  }>)[];