MCP Shopify Theme Development Workflow
This repository contains a Model Context Protocol (MCP) workflow for Shopify theme development. It provides a structured approach to developing, testing, and deploying Shopify themes.
Features
- Automated theme setup and initialization
- Local development server with hot reloading
- Theme file synchronization with Shopify
- Asset optimization (CSS, JavaScript, images)
- Version control integration
- Deployment workflows
Getting Started
- Clone this repository
- Install dependencies with
npm install - Configure your Shopify store credentials in
.env - Run
npm run devto start the development server
Commands
npm run dev: Start local development servernpm run build: Build production-ready theme filesnpm run deploy: Deploy theme to Shopify storenpm run lint: Run linting on theme filesnpm run format: Format code according to style guide
Directory Structure
mcp-shopify/
├── .github/ # GitHub Actions workflows
├── config/ # Configuration files
├── scripts/ # Utility scripts
├── src/ # Source files
│ ├── assets/ # Theme assets (CSS, JS, images)
│ ├── config/ # Theme configuration
│ ├── layout/ # Theme layouts
│ ├── locales/ # Translations
│ ├── sections/ # Theme sections
│ ├── snippets/ # Theme snippets
│ └── templates/ # Theme templates
└── dist/ # Compiled theme files
Requirements
- Node.js 16+
- Shopify CLI
- Shopify Partner account
