Skip to content

list_deploys MCP tool fails with Zod validation error when deployment runtime is null #3337

@simon-vincent

Description

@simon-vincent

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 runtime isn't explicitly set.

Error

200 Validation error: Expected string, received null at "data[0].runtime";
Expected string, received null at "data[1].runtime";
Expected string, received null at "data[2].runtime";
...

The error appears on every item in the response (data[N].runtime), so no deployment data is ever returned.

Reproduction

Call list_deploys against any project in any environment:

list_deploys({ projectRef: "proj_ltsvaqbswowasygnxbje", environment: "prod" })
list_deploys({ projectRef: "proj_rvvhjfapaptmblohgobv", environment: "prod" })
list_deploys({ projectRef: "proj_skckcxabaziwwsgbnljx", environment: "prod" })

All 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.

Expected behaviour

list_deploys returns the list of deployments with runtime: null treated as optional/nullable rather than a required string.

Environment

  • MCP server: Trigger.dev official MCP (connected via Claude Code)
  • SDK version: 4.4.3
  • All three projects are on cloud.trigger.dev

Workaround

None via MCP. Can fall back to the REST API directly, but this blocks using the MCP as a fleet monitoring tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions