augment-config.json•6.83 kB
{
"name": "Magento 2 Development MCP Server",
"description": "MCP server for Magento 2 development tools",
"version": "1.0.0",
"server": {
"command": "node",
"args": ["dist/index.js"],
"cwd": ".",
"env": {}
},
"tools": [
{
"name": "get-di-preferences",
"description": "Get Magento 2 dependency injection preferences list",
"parameters": {
"scope": {
"type": "string",
"enum": ["global", "adminhtml", "frontend", "crontab", "webapi_rest", "webapi_soap", "graphql", "doc", "admin"],
"default": "global",
"description": "The scope to get DI preferences for"
}
}
},
{
"name": "dev-module-list",
"description": "List all Magento 2 modules and their status",
"parameters": {
"format": {
"type": "string",
"enum": ["table", "json", "csv"],
"default": "table",
"description": "Output format"
},
"enabled": {
"type": "boolean",
"description": "Show only enabled modules"
},
"disabled": {
"type": "boolean",
"description": "Show only disabled modules"
}
}
},
{
"name": "dev-module-create",
"description": "Create and register a new Magento 2 module",
"parameters": {
"vendorNamespace": {
"type": "string",
"description": "Namespace (your company prefix)"
},
"moduleName": {
"type": "string",
"description": "Name of your module"
},
"minimal": {
"type": "boolean",
"description": "Create only module file"
},
"addAll": {
"type": "boolean",
"description": "Add blocks, helpers and models"
},
"enable": {
"type": "boolean",
"description": "Enable module after creation"
},
"addReadme": {
"type": "boolean",
"description": "Add a readme.md file to generated module"
},
"addComposer": {
"type": "boolean",
"description": "Add a composer.json file to generated module"
},
"authorName": {
"type": "string",
"description": "Author for readme.md or composer.json"
},
"authorEmail": {
"type": "string",
"description": "Author email for readme.md or composer.json"
},
"description": {
"type": "string",
"description": "Description for readme.md or composer.json"
}
}
},
{
"name": "cache-clean",
"description": "Clear specific Magento 2 cache types or all caches",
"parameters": {
"types": {
"type": "array",
"items": { "type": "string" },
"description": "Specific cache types to clean (leave empty for all caches)"
}
}
},
{
"name": "cache-flush",
"description": "Flush specific Magento 2 cache types or all caches",
"parameters": {
"types": {
"type": "array",
"items": { "type": "string" },
"description": "Specific cache types to flush (leave empty for all caches)"
}
}
},
{
"name": "cache-enable",
"description": "Enable specific Magento 2 cache types",
"parameters": {
"types": {
"type": "array",
"items": { "type": "string" },
"description": "Cache types to enable",
"minItems": 1
}
}
},
{
"name": "cache-disable",
"description": "Disable specific Magento 2 cache types",
"parameters": {
"types": {
"type": "array",
"items": { "type": "string" },
"description": "Cache types to disable",
"minItems": 1
}
}
},
{
"name": "cache-status",
"description": "Check the status of Magento 2 cache types",
"parameters": {}
},
{
"name": "cache-view",
"description": "Inspect specific cache entries in Magento 2",
"parameters": {
"key": {
"type": "string",
"description": "Cache key to inspect"
},
"type": {
"type": "string",
"description": "Cache type (optional)"
}
}
}
],
"usage_examples": [
{
"description": "Get global DI preferences",
"tool": "get-di-preferences",
"parameters": {
"scope": "global"
}
},
{
"description": "Get adminhtml DI preferences",
"tool": "get-di-preferences",
"parameters": {
"scope": "adminhtml"
}
},
{
"description": "Get frontend DI preferences",
"tool": "get-di-preferences",
"parameters": {
"scope": "frontend"
}
},
{
"description": "Get GraphQL DI preferences",
"tool": "get-di-preferences",
"parameters": {
"scope": "graphql"
}
},
{
"description": "List all modules",
"tool": "dev-module-list",
"parameters": {
"format": "table"
}
},
{
"description": "List only enabled modules in JSON format",
"tool": "dev-module-list",
"parameters": {
"format": "json",
"enabled": true
}
},
{
"description": "Create a new module with all features",
"tool": "dev-module-create",
"parameters": {
"vendorNamespace": "MyCompany",
"moduleName": "CustomModule",
"addAll": true,
"enable": true,
"addReadme": true,
"addComposer": true,
"authorName": "John Doe",
"authorEmail": "john@example.com",
"description": "A custom Magento 2 module"
}
},
{
"description": "Clean all caches",
"tool": "cache-clean",
"parameters": {}
},
{
"description": "Clean specific cache types",
"tool": "cache-clean",
"parameters": {
"types": ["config", "layout"]
}
},
{
"description": "Flush full page cache",
"tool": "cache-flush",
"parameters": {
"types": ["full_page"]
}
},
{
"description": "Enable cache types",
"tool": "cache-enable",
"parameters": {
"types": ["config", "layout", "block_html"]
}
},
{
"description": "Disable full page cache",
"tool": "cache-disable",
"parameters": {
"types": ["full_page"]
}
},
{
"description": "Check cache status",
"tool": "cache-status",
"parameters": {}
},
{
"description": "View cache entry",
"tool": "cache-view",
"parameters": {
"key": "some_cache_key",
"type": "config"
}
}
]
}