Remote MCP: validate_graphql_codeblocks always returns success without validating

Abierto
#74 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
54/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
JavaScript
Estrellas
652
Forks
88
Merge medio
6 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Shopify/Shopify-AI-Toolkit

Todos los issues de Shopify/Shopify-AI-Toolkit

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.