@studiosolid/shopware-mcp
Version:
A local Model Context Protocol (MCP) server for Shopware plugin development
29 lines (26 loc) • 1.35 kB
JavaScript
import { z } from "zod";
export default {
name: 'create-local-development-environment',
description: 'Get instructions on how to create a local development environment',
paramsSchema: {
projectDirectory: z.string().describe('The absolute path to the project directory to be used for the bugfix process'),
shopwareVersion: z.string().describe('The version of Shopware to be used for the bugfix process'),
pluginRepositoryUrl: z.string().describe('The URL to the git repository of the affected plugin'),
},
cb: (params) => {
return {
content: [
{
type: 'text',
text: `
This tool should only be used as part of a running Shopware plugin bugfix process with a support ticket number. It should not be used on its own.
Follow the following steps to create a local development environment:
1. Create a new directory for the project at the desired location: ${params.projectDirectory}
2. Move into the project directory
3. Run the following command to install Shopware: docker run --rm -it -v $PWD:/var/www/html ghcr.io/shopwarelabs/devcontainer/base-slim:8.3 new-shopware-setup ${params.shopwareVersion}
`,
},
]
};
},
};