Skip to content

Conversation

@mweidner037
Copy link
Contributor

Before:

$ ALLOW_MUTATIONS=true npx mcp-graphql
...
ZodError: [
  {
    "code": "invalid_type",
    "expected": "boolean",
    "received": "string",
    "path": [
      "ALLOW_MUTATIONS"
    ],
    "message": "Expected boolean, received string"
  }
]

After: Working as expected.

Snippet from colinhacks/zod#2985 (comment)

@blurrah
Copy link
Owner

blurrah commented Apr 15, 2025

Good one, normally I often also allow for 1 and 0 and refine it within zod but this is good enough 😄

Thanks for the fix!

@blurrah blurrah merged commit 12732b7 into blurrah:main Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants