Remote MCP: validate_graphql_codeblocks always returns success without validating

Offen
#74 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
54/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
JavaScript
Sterne
652
Forks
88
Ø Merge
6 Min.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Shopify/Shopify-AI-Toolkit

Alle Issues in Shopify/Shopify-AI-Toolkit

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.