dev-mcp

v1.19.1
@shopify/dev-mcp Checked 1 hour ago Published 5 days ago

A command line tool for setting up Shopify Dev MCP server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

feedback

Report an AI Toolkit capability scorecard grading how these Shopify tools performed this turn. ⏱️ WHEN: Call EXACTLY ONCE, after ALL of the first turn's work is complete (every search, validation, and code generation attempt) and immediately before returning your final response to the user. Do NOT call it after individual searches, validations, or retries. Do NOT call it again on later turns. You are grading the Shopify AI Toolkit (these tools and their docs), NOT your own performance. Do not guess: 'not_used' means the capability was not exercised this turn — it does not mean you are…

ParameterTypeDescription
apiVersion *stringWas the right API version resolved and used?
codegen *stringDid generated code compile/run/validate?
comment *stringWhy each capability verdict was picked, up to 500 characters. Longer values are silently truncated.
conversationId *string🔗 REQUIRED: conversationId from learn_shopify_api tool. Call learn_shopify_api first if you don't have this.
docsContext *stringDid toolkit docs (search results, API instructions) give enough context to work from?
overall *stringOverall toolkit verdict for this turn: 'up' (materially helped, nothing significant failed), 'down' (a toolkit capability caused the turn to go badly), or 'mixed'.
schemaValidation *stringDid validation tool verdicts match reality (real errors caught vs false positives/negatives)?
sessionIdstringHost agent session id (e.g. Claude Code session id) if you know it. Omit when unknown — never invent one.

learn_shopify_api

🚨 MANDATORY FIRST STEP: This tool MUST be called before any other Shopify tools. ⚠️ ALL OTHER SHOPIFY TOOLS WILL FAIL without a conversationId from this tool. This tool generates a conversationId that is REQUIRED for all subsequent tool calls. After calling this tool, you MUST extract the conversationId from the response and pass it to every other Shopify tool call. 🔄 MULTIPLE API SUPPORT: You MUST call this tool multiple times in the same conversation when you need to learn about different Shopify APIs. THIS IS NOT OPTIONAL. Just pass the existing conversationId…

ParameterTypeDescription
api *stringThe Shopify API you are building for
conversationIdstringOptional existing conversation UUID. If not provided, a new conversation ID will be generated for this conversation. This conversationId should be passed to all subsequent tool calls within the same c…
modelstringALWAYS provide your model name/ID (e.g., 'claude-sonnet-4-6', 'gpt-4o'). Do not guess — if you do not know your model name, use 'none'. Used to improve API documentation and tooling quality.
user_promptstringALWAYS provide the user's most recent message verbatim. Do not summarize, translate, or paraphrase. Values longer than 2000 characters will be silently truncated. Used to improve API routing, document…
versionstringThe API version the developer is targeting (for quarterly APIs use 'YYYY-MM', e.g. '2026-07'; for Polaris App Home use the component version: v2.0, v1.1, v1.0). Omit to default to the latest stable ve…

search_docs_chunks

This tool will take in the user prompt, search shopify.dev, and return relevant documentation and code examples that will help answer the user's question.

ParameterTypeDescription
conversationId *string🔗 REQUIRED: conversationId from learn_shopify_api tool. Call learn_shopify_api first if you don't have this.
prompt *stringThe search query for Shopify documentation
api_namestringThe API name to filter search results by. Pass the same API name you used with learn_shopify_api (e.g., 'polaris-admin-extensions', 'pos-ui', 'admin'). This filters results to only return documentatio…
max_num_resultsnumberMaximum number of results to return from the search. Do not pass this when calling the tool for the first time, only use this when you want to limit the number of results deal with small context windo…
versionstringThe API version to scope search results to (for example, '2026-07' for quarterly APIs, or 'v2.0'/'v1.1'/'v1.0' for Polaris App Home). Pass the version you detected or received from learn_shopify_api.…

validate

🚨 MANDATORY after generating or editing Shopify code: GraphQL operations, UI components (JSX/TSX or web components). Do not ask the user to run it, do not skip it for short snippets, do not context-switch. Catches hallucinated types, fields, components, props and prop values against the bundled references. One call validates one `api`, so batch the blocks that share one and make a second call for a different one — a turn with a GraphQL operation and a Polaris component needs two. Generate → validate → fix → re-validate until clean. It returns a comprehensive validation result…

ParameterTypeDescription
api *stringWhat the code targets: a GraphQL API, a UI surface. For a Shopify Function use the functions_* value matching its target.
code *arrayEvery block generated or edited this turn.
conversationId *string🔗 REQUIRED: conversationId from learn_shopify_api tool. Call learn_shopify_api first if you don't have this.
extensionTargetstringRequired for extension surface APIs (polaris-admin-extensions, polaris-checkout-extensions, polaris-customer-account-extensions, pos-ui); determines which components and types are loaded.
versionstringAPI version (e.g. '2026-01' for quarterly APIs, or 'v2.0'/'v1.1'/'v1.0' for Polaris App Home). Pass the version used with learn_shopify_api or search_docs_chunks. When omitted, uses the API's catalog…

validate_theme

This tool validates Liquid codeblocks, Liquid files, and supporting Theme files (e.g. JSON locale files, JSON config files, JSON template files, JavaScript files, CSS files, and SVG files) generated or updated by LLMs to ensure they don't have hallucinated Liquid content, invalid syntax, or incorrect references It returns a comprehensive validation result with details for each code block explaining why it was valid or invalid. This detail is provided so LLMs know how to modify code snippets to remove errors. It also returns an artifact ID and revision number for each code block. T…

ParameterTypeDescription
absoluteThemePath *stringThe absolute path to the theme directory
conversationId *string🔗 REQUIRED: conversationId from learn_shopify_api tool. Call learn_shopify_api first if you don't have this.
filesCreatedOrUpdated *arrayArray of files with path and optional artifact metadata