You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: remove per query endpoints and headers (#17)
This opens up the MCP server to lots of security issues by leaking headers and allowing endpoints and headers to be poisoned.
If you need this specific use case of allowing different endpoints and headers per query/introspection then please fork the latest v1.
Thanks @mweidner037 for notifying on this issue.
BREAKING RELEASE: Endpoints and headers input options removed due to inherent security vulnerabilities
"Introspect the GraphQL schema, use this tool before doing a query to get the schema information if you do not have it available as a resource already.",
68
-
{
69
-
endpoint: z
70
-
.string()
71
-
.url()
72
-
.optional()
73
-
.describe(
74
-
`Optional: Override the default endpoint, the already used endpoint is: ${env.ENDPOINT}`,
75
-
),
76
-
headers: z
77
-
.union([z.record(z.string()),z.string()])
78
-
.optional()
79
-
.describe(
80
-
`Optional: Add additional headers, the already used headers are: ${JSON.stringify(env.HEADERS)}`,
0 commit comments