Skip to main content
Glama
Midhun-edv

Magento 2 Coding Standards MCP

by Midhun-edv

validate_code

Validate PHP, JavaScript, or CSS code against Magento 2 coding standards to identify violations with severity levels, line numbers, and fix suggestions for compliant development.

Instructions

Validate code against Magento 2 coding standards. Returns violations with severity, line numbers, and fix suggestions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe code to validate
fileTypeYesType of file: php (PHP classes), phtml (templates), js (JavaScript), less/css (stylesheets)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Midhun-edv/magento2-coding-standards-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server