From 7be926e50a80dffdb1c767bcff4bcd79f8d19adc Mon Sep 17 00:00:00 2001 From: Matthew Weidner <17693586+mweidner037@users.noreply.github.com> Date: Tue, 15 Apr 2025 15:10:36 -0500 Subject: [PATCH] parse ALLOW_MUTATIONS as string --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e381a4b..379978b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ checkDeprecatedArguments(); const EnvSchema = z.object({ NAME: z.string().default("mcp-graphql"), ENDPOINT: z.string().url().default("http://localhost:4000/graphql"), - ALLOW_MUTATIONS: z.boolean().default(false), + ALLOW_MUTATIONS: z.enum(['true', 'false']).transform((value) => value === 'true').default("false"), HEADERS: z .string() .default("{}")