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
The list_deploys MCP tool fails with a Zod validation error when deployments have null values for runtime and/or runtimeVersion fields.
Error
200 Validation error: Expected string, received null at "data[0].runtime"; Expected string, received null at "data[0].runtimeVersion"; Expected string, received null at "data[1].runtime"; Expected string, received null at "data[1].runtimeVersion"
The API returns a 200 with valid data, but the MCP server's Zod schema expects string for these fields and rejects null.
Bug Description
The
list_deploysMCP tool fails with a Zod validation error when deployments havenullvalues forruntimeand/orruntimeVersionfields.Error
The API returns a 200 with valid data, but the MCP server's Zod schema expects
stringfor these fields and rejectsnull.Reproduction
npx trigger.dev@latest mcp --project-ref <ref>list_deployswith any parameters (environment, limit, period — doesn't matter)nullforruntimeorruntimeVersion, the tool errorsContext
list_orgs,list_projects,get_current_worker,list_runs,get_run_details,list_preview_branches,search_docsruntime/runtimeVersionExpected Fix
The Zod schema for the deploy list response should use
.nullable()or.optional()forruntimeandruntimeVersionfields, e.g.: