Mcp Phpcs Server

Created at a month ago

by larspohlmann

starstarstarstarstar

Categories

developer-tools

Tags

mcp-phpcs

phpcs-server

php-code-quality

what is MCP PHPCS Server?

MCP PHPCS Server is a minimal Model Context Protocol (MCP) server implemented in pure PHP that provides tools for PHP code quality checking and fixing.

how to use MCP PHPCS Server?

To use the MCP PHPCS Server, you need to mark the script as executable and configure your MCP client to start the server via stdio using the provided command.

key features of MCP PHPCS Server?

  • Runs PHP_CodeSniffer to check code quality and returns a readable report.
  • Runs PHP Code Beautifier and Fixer to automatically fix code style issues.
  • No Composer dependencies, making it easy to integrate into any project.

use cases of MCP PHPCS Server?

  1. Ensuring code quality in PHP projects by checking for coding standard violations.
  2. Automatically fixing code style issues to maintain consistency across codebases.
  3. Integrating with development environments to provide real-time feedback on code quality.

FAQ from MCP PHPCS Server?

  • Does MCP PHPCS Server require any dependencies?

No, it is designed to have no Composer dependencies and can be copied into any project.

  • How do I configure the MCP PHPCS Server?

You can configure it via environment variables or a configuration file.

  • What output format does the server provide?

The server outputs JSON-RPC messages to STDOUT and logs to STDERR.

View More