← 返回
未分类 中文

Shopify Dev Mcp

Use when user wants to work with Shopify Admin API, Storefront API, validate Liquid code, explore GraphQL schemas, build Shopify apps, or inspect Shopify doc...
在用户需要使用 Shopify Admin API、Storefront API、验证 Liquid 代码、探索 GraphQL schema、构建 Shopify 应用或检查 Shopify 文档时使用。
simoncai519 simoncai519 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 465
下载
💾 1
安装
1
版本
#latest

概述

Shopify Development MCP (shopify-dev-mcp)

Provides a workflow to interact with Shopify's development ecosystem via the shopify-dev MCP server. It enables searching documentation, introspecting GraphQL schemas, validating Liquid/theme code, and building Shopify extensions while avoiding hallucinations.

Trigger Scenarios

  • "How do I create a product using the Admin API?"
  • "Show me the fields on the Order GraphQL type."
  • "Validate this Liquid snippet for a theme."
  • "I need to explore the Storefront API schema."
  • "Help me build a Shopify app that uses Polaris components."
  • "Debug a GraphQL error from Shopify."

Core Workflow

  1. Initialize – Call learn_shopify_api for the required technology (admin, storefront-graphql, liquid, polaris) and capture the returned conversationId.
  2. Search Documentation – Use search_docs_chunks for semantic search or fetch_full_docs for full pages.
  3. Introspect Schema – Run introspect_graphql_schema with the conversationId to get up‑to‑date types and fields.
  4. Validate Code – Depending on the content:
    • GraphQL: validate_graphql_codeblocks
    • Polaris UI: validate_component_codeblocks
    • Liquid/theme: validate_theme
  5. Present Result – Return the validated code or documentation excerpt to the user.

Best Practices

  • Always start with step 1 and reuse the same conversationId for subsequent calls.
  • Wrap MCP CLI commands in single quotes when invoking via shell ('shopify-dev.tool(...)').
  • Prefer a local installation of @shopify/dev-mcp over npx for reliability.
  • Use absolute paths in the MCP configuration to avoid path resolution issues.
  • Validate any generated code before showing it to the user.

Usage Examples

# 1. Initialize for Admin GraphQL
learn_shopify_api tech:admin
# ⇒ returns conversationId=abc123

# 2. Search docs for "product creation"
search_docs_chunks query:"product creation" conversationId:abc123

# 3. Introspect the schema
introspect_graphql_schema conversationId:abc123

# 4. Validate a GraphQL mutation
validate_graphql_codeblocks conversationId:abc123 codeblocks:[{content:"mutation { productCreate(input:{title:\"New\"}) { product { id } userErrors { field message } } }"}]

# 5. Validate a Liquid snippet
validate_theme conversationId:abc123 path:"/tmp/theme" files:["snippets/header.liquid"]

References

  • See references/api-guide.md for full API details, GraphQL schema listings, Liquid validation options, and MCP server setup.

Created by Simon Cai · More e-commerce skills: github.com/simoncai519/open-accio-skill

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 18:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 326,789
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,535
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,674