Title: MCP server: list_deploys fails with validation error on null runtime/runtimeVersion · Issue #3139 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: MCP server: list_deploys fails with validation error on null runtime/runtimeVersion · Issue #3139 · triggerdotdev/trigger.dev
X Title: MCP server: list_deploys fails with validation error on null runtime/runtimeVersion · Issue #3139 · triggerdotdev/trigger.dev
Description: Bug Description 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"; Expe...
Open Graph Description: Bug Description 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, ...
X Description: Bug Description 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, ...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/3139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MCP server: list_deploys fails with validation error on null runtime/runtimeVersion","articleBody":"## Bug Description\n\nThe `list_deploys` MCP tool fails with a Zod validation error when deployments have `null` values for `runtime` and/or `runtimeVersion` fields.\n\n## Error\n\n```\n200 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\"\n```\n\nThe API returns a 200 with valid data, but the MCP server's Zod schema expects `string` for these fields and rejects `null`.\n\n## Reproduction\n\n1. Configure MCP server: `npx trigger.dev@latest mcp --project-ref \u003cref>`\n2. Call `list_deploys` with any parameters (environment, limit, period — doesn't matter)\n3. If any deployment has `null` for `runtime` or `runtimeVersion`, the tool errors\n\n## Context\n\n- **trigger.dev version**: 4.4.1 (latest as of 2026-02-27)\n- **Environment**: prod\n- **All other MCP tools work fine**: `list_orgs`, `list_projects`, `get_current_worker`, `list_runs`, `get_run_details`, `list_preview_branches`, `search_docs`\n- Deployments were created via GitHub integration, which may not populate `runtime`/`runtimeVersion`\n\n## Expected Fix\n\nThe Zod schema for the deploy list response should use `.nullable()` or `.optional()` for `runtime` and `runtimeVersion` fields, e.g.:\n\n```ts\nruntime: z.string().nullable()\nruntimeVersion: z.string().nullable()\n```","author":{"url":"https://github.com/simon-vincent","@type":"Person","name":"simon-vincent"},"datePublished":"2026-02-26T20:44:49Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/3139"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a744c0f9-8e33-7289-ed59-ec2aae5e631f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D386:3B39F2:4D81EB:721DA9:6AFAEA1C |
| html-safe-nonce | a214e2b54d67e349756e671a0d0114ea2537fdb62f9d1752dd1de43e7ad93517 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzg2OjNCMzlGMjo0RDgxRUI6NzIxREE5OjZBRkFFQTFDIiwidmlzaXRvcl9pZCI6IjExMTI2NDQyOTk1MzIyMDA0NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 931bb067c230c7ddcab0368f8235b44ae8f774f7235b14952917aeafe596acfc |
| hovercard-subject-tag | issue:3997667994 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/3139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66fede9fa137f75c91d26478db81dcf22ba55169b1f1f5a5360c08b69c1c741b/triggerdotdev/trigger.dev/issues/3139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66fede9fa137f75c91d26478db81dcf22ba55169b1f1f5a5360c08b69c1c741b/triggerdotdev/trigger.dev/issues/3139 |
| og:image:alt | Bug Description 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, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | simon-vincent |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 12fff95459b24b0f882a66698ee6a36a5934d247 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width