Mago

•

Provides PHP linting, code formatting, and static analysis capabilities directly to AI assistants.

Mago equips AI assistants and agentic development environments with the high-performance Mago PHP toolchain through the Model Context Protocol (MCP). By connecting callable tools for PHP static analysis, formatting, and linting directly into development workflows, coding agents can identify syntax errors, inspect code quality, apply automated fixes, and preview formatting diffs. Designed to run over stdio, it integrates cleanly into clients such as Claude Desktop, Cursor, OpenCode, and VS Code for a streamlined PHP development experience.

주요 기능

01Support flexible executable discovery via PATH or environment variables
02Format PHP source code with options to check status or preview diffs
03Run PHP linting across files or directories with optional automated fixing
04Perform in-depth static analysis to detect errors and code smells
05Expose built-in documentation through a dedicated MCP resource
060 GitHub stars

사용 사례

01Empowering AI coding assistants to automatically detect and fix PHP linting errors
02Validating code changes and formatting consistency within AI-driven code reviews
03Running static analysis on PHP repositories directly inside editor-based AI chat sessions