Title: `list_deploys` MCP tool fails with Zod validation error when deployment `runtime` is null · Issue #3337 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: `list_deploys` MCP tool fails with Zod validation error when deployment `runtime` is null · Issue #3337 · triggerdotdev/trigger.dev
X Title: `list_deploys` MCP tool fails with Zod validation error when deployment `runtime` is null · Issue #3337 · triggerdotdev/trigger.dev
Description: Description The list_deploys MCP tool returns a Zod validation error for every project, making it completely unusable. The error occurs because the MCP schema expects runtime to be a string, but the API returns null for deployments where...
Open Graph Description: Description The list_deploys MCP tool returns a Zod validation error for every project, making it completely unusable. The error occurs because the MCP schema expects runtime to be a string, but th...
X Description: Description The list_deploys MCP tool returns a Zod validation error for every project, making it completely unusable. The error occurs because the MCP schema expects runtime to be a string, but th...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/3337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`list_deploys` MCP tool fails with Zod validation error when deployment `runtime` is null","articleBody":"## Description\n\nThe `list_deploys` MCP tool returns a Zod validation error for every project, making it completely unusable. The error occurs because the MCP schema expects `runtime` to be a `string`, but the API returns `null` for deployments where runtime isn't explicitly set.\n\n## Error\n\n```\n200 Validation error: Expected string, received null at \"data[0].runtime\";\nExpected string, received null at \"data[1].runtime\";\nExpected string, received null at \"data[2].runtime\";\n...\n```\n\nThe error appears on every item in the response (`data[N].runtime`), so no deployment data is ever returned.\n\n## Reproduction\n\nCall `list_deploys` against any project in any environment:\n\n```\nlist_deploys({ projectRef: \"proj_ltsvaqbswowasygnxbje\", environment: \"prod\" })\nlist_deploys({ projectRef: \"proj_rvvhjfapaptmblohgobv\", environment: \"prod\" })\nlist_deploys({ projectRef: \"proj_skckcxabaziwwsgbnljx\", environment: \"prod\" })\n```\n\nAll three return the same validation error. These are active projects with real deployments — the underlying API data exists, the MCP schema is just rejecting the null `runtime` field.\n\n## Expected behaviour\n\n`list_deploys` returns the list of deployments with `runtime: null` treated as optional/nullable rather than a required string.\n\n## Environment\n\n- MCP server: Trigger.dev official MCP (connected via Claude Code)\n- SDK version: 4.4.3\n- All three projects are on cloud.trigger.dev\n\n## Workaround\n\nNone via MCP. Can fall back to the REST API directly, but this blocks using the MCP as a fleet monitoring tool.","author":{"url":"https://github.com/simon-vincent","@type":"Person","name":"simon-vincent"},"datePublished":"2026-04-08T00:30:16Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/3337"}
| 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:ce5a1498-8e21-91f9-e479-ab7877734e22 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCC6:11998D:14D9D72:1D5D51E:6AFAEA38 |
| html-safe-nonce | 70620c67d8b3c29081400016b4427f344d2532245fe5113e3b1360ff8edcbfe0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0M2OjExOTk4RDoxNEQ5RDcyOjFENUQ1MUU6NkFGQUVBMzgiLCJ2aXNpdG9yX2lkIjoiODc0ODc3NzEwNDQ2OTU4NDQ0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 91b78c54508a574a41848897ed4760f235cbafc017daa692d279b253119d1883 |
| hovercard-subject-tag | issue:4221344840 |
| 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/3337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/422f157e501fa06312fd3dba5914c59d826a34f6a2ea488cf0901e6059630553/triggerdotdev/trigger.dev/issues/3337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/422f157e501fa06312fd3dba5914c59d826a34f6a2ea488cf0901e6059630553/triggerdotdev/trigger.dev/issues/3337 |
| og:image:alt | Description The list_deploys MCP tool returns a Zod validation error for every project, making it completely unusable. The error occurs because the MCP schema expects runtime to be a string, but th... |
| 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