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
{{ message }}
Repository navigation
Check CLI output.schema for commands with jsonTransform #1860
#1854 makes buildCommand, buildListCommand, and buildDeleteCommand check output.schema against the data a command yields, but only when the output config has no jsonTransform. Commands that use jsonTransform can still document fields they don't emit, or emit them with a different type, and nothing catches it.
With jsonTransform, the schema describes the transform's item (what --fields operates on), not the yielded type T. For list commands, T is the ListResult envelope.
OutputConfig.jsonTransform is typed (data: T, fields?: string[]) => unknown (packages/cli/src/lib/formatters/output.ts), so the item type isn't visible to check the schema against.
In scope: the 33 command files under packages/cli/src/commands that set jsonTransform, plus the shared org-scoped list path that uses jsonTransformListResult (packages/cli/src/lib/list-command.ts).
Activity
linear-code commentedon Nov 3, 2026
MCP-1152
ref(cli): Type-check command yields against their output config (#1854)
ref(cli): Check output.schema for commands with jsonTransform (getsen…