You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: inject proper params typing into Request and Notification interfaces
Update pre-processing to transform Request.params and Notification.params:
- Request.params: { [key: string]: any } → RequestParams & { [key: string]: any }
- Notification.params: { [key: string]: any } → NotificationParams & { [key: string]: any }
This allows RequestSchema, NotificationSchema, and ResultSchema to be
re-exported from generated schemas with proper _meta typing.
Total schemas re-exported: 36
Lines saved: ~368 (2600 → 2232)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
54
+
*/
55
+
_meta: z
56
+
.looseObject({
57
+
/**
58
+
* 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.
59
+
*/
60
+
progressToken: ProgressTokenSchema.optional(),
61
+
/**
62
+
* If specified, this request is related to the provided task.
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
206
-
*/
207
-
_meta: z
208
-
.looseObject({
209
-
/**
210
-
* 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.
211
-
*/
212
-
progressToken: ProgressTokenSchema.optional(),
213
-
/**
214
-
* If specified, this request is related to the provided task.
* 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.
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
175
-
* for notes on _meta usage.
176
-
*/
177
-
_meta: RequestMetaSchema.optional()
178
-
});
165
+
// Note: RequestSchema, NotificationSchema, ResultSchema are re-exported from generated.
166
+
// They include proper _meta typing with RELATED_TASK_META_KEY.
0 commit comments