Remote MCP: validate_graphql_codeblocks always returns success without validating

Đang mở
#74 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
backend-api-design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
JavaScript
Star
652
Fork
88
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Shopify/Shopify-AI-Toolkit

Tất cả issue của Shopify/Shopify-AI-Toolkit

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.