Shopify Dev Mcp
v1.0.0Use when user wants to work with Shopify Admin API, Storefront API, 验证 Liquid code, explore GraphQL 模式s, build Shopify 应用s, or inspect Shopify documentation and MCP 工具s.
运行时依赖
安装命令
点击复制技能文档
Shopify Development MCP (shopify-dev-mcp)
Provides a 工作流 to interact with Shopify's development eco系统 via the shopify-dev MCP server. It enables 搜索ing documentation, introspecting GraphQL 模式s, validating Liquid/theme code, and building Shopify 扩展s while avoiding hallucinations.
Trigger Scenarios "How do I 创建 a product using the Admin API?" "Show me the fields on the Order GraphQL type." "验证 this Liquid snippet for a theme." "I need to explore the Storefront API 模式." "Help me build a Shopify 应用 that uses Polaris 组件s." "调试 a GraphQL error from Shopify." Core 工作流 初始化 – Call learn_shopify_API for the required techno记录y (admin, storefront-graphql, liquid, polaris) and capture the returned conversationId. 搜索 Documentation – Use 搜索_docs_chunks for semantic 搜索 or fetch_full_docs for full pages. Introspect 模式 – 运行 introspect_graphql_模式 with the conversationId to 获取 up‑to‑date types and fields. 验证 Code – Depending on the content: GraphQL: 验证_graphql_codeblocks Polaris UI: 验证_组件_codeblocks Liquid/theme: 验证_theme Present 结果 – Return the 验证d code or documentation excerpt to the user. Best Practices Always 启动 with step 1 and reuse the same conversationId for subsequent calls. Wrap MCP 命令行工具 commands in single quotes when invoking via shell ('shopify-dev.工具(...)'). Prefer a local 安装ation of @shopify/dev-mcp over npx for reliability. Use absolute paths in the MCP configuration to avoid path resolution issues. 验证 any 生成d code before showing it to the user. Usage Examples # 1. 初始化 for Admin GraphQL learn_shopify_API tech:admin # ⇒ returns conversationId=abc123
# 2. 搜索 docs for "product creation" 搜索_docs_chunks 查询:"product creation" conversationId:abc123
# 3. Introspect the 模式 introspect_graphql_模式 conversationId:abc123
# 4. 验证 a GraphQL mutation 验证_graphql_codeblocks conversationId:abc123 codeblocks:[{content:"mutation { product创建(输入:{title:\"New\"}) { product { id } userErrors { field message } } }"}]
# 5. 验证 a Liquid snippet 验证_theme conversationId:abc123 path:"/tmp/theme" files:["snippets/header.liquid"]
References See references/API-图形界面de.md for full API detAIls, GraphQL 模式 列出ings, Liquid 验证 options, and MCP server 设置up.
创建d by Simon CAI · More e-commerce 技能s: github.com/simoncAI519/open-accio-技能