Remote MCP: validate_graphql_codeblocks always returns success without validating

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

Start by reading .cursor-plugin/mcp.json and skills/shopify/SKILL.md:62, then locate the remote MCP server implementation that registers validate_graphql_codeblocks; the issue does not identify its source file. Check how the tool handles calls and reports results. Done means it either clearly reports that validation was not performed or is absent from tools/list, so clients cannot mistake its response for validation.

Written by the indexing model from the issue text.

Description

The remote MCP server at https://setup.shopify.com/mcp (shopify-mcp-server 1.0.0, shipped in .cursor-plugin/mcp.json since 2.1.0) lists a tool validate_graphql_codeblocks whose description reads:

Compatibility no-op for clients that still call this tool. It always returns success and does not validate GraphQL.

Observed in an unauthenticated tools/list on 2026-11-09.

Why it matters. Agents report validation to users. A validator that always succeeds makes unvalidated code look validated. The toolkit's own skills/shopify/SKILL.md:62 warns that "a wrong validator often returns VALID", and this tool returns VALID for every input. An agent that has both this server and older guidance that names this tool will call it and report success.

Suggested fix (either):

  1. Return an explicit not-validated result (for example isError: true with a message that points at the Dev MCP validate_graphql_codeblocks or the skill's scripts/validate.mjs), or
  2. Remove the tool from tools/list.
Dominant language
JavaScript
Stars
652
Forks
88
Avg merge
6m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shopify/Shopify-AI-Toolkit

All issues in Shopify/Shopify-AI-Toolkit

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.