MCP.so
登录

PHPocalypse MCP Server

@plapinski

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

plapinski

关于 PHPocalypse MCP Server

MCP server for vibe developers that are too busy to run tests and static analysis.

PHPocalypse MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "phpocalypse-mcp": {
      "command": "npx",
      "args": [
        "tsx",
        "/Absolute/Path/To/PHPocalypse-MCP/src/index.ts",
        "--config",
        "/Absolute/Path/To/Your/PHP/Based/Project/phpocalypse-mcp.yaml"
      ]
    }
  }
}

PHPocalypse MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is PHPocalypse-MCP?

PHPocalypse-MCP is an MCP (Model Context Protocol) server that lets LLM-powered coding tools execute PHP development commands—such as static analysis, code style fixes, and test suites—by running user-defined commands from a YAML configuration file. It is aimed at developers who want to delegate running PHP tools to their AI assistant.

How to use PHPocalypse-MCP?

Clone the repository, run npm install, and add an MCP server entry in your Cursor settings (or other MCP-compatible editor). The entry points npx tsx at src/index.ts with a --config argument pointing to a phpocalypse-mcp.yaml file in your PHP project. Then create that YAML file and define the tools you want the LLM to invoke (e.g., php-cs-fixer, phpstan, tests-unit).

Key features of PHPocalypse-MCP

  • Define PHP tools by name and shell command in a YAML config.
  • Works with any PHP project structure.
  • Supports arbitrary commands (e.g., make, docker compose, vendor/bin/*).
  • Intended for non-interactive CLI output.
  • Proof-of-concept; interactive prompts are not supported.

Use cases of PHPocalypse-MCP

  • Run PHPStan static analysis from an AI chat without leaving the editor.
  • Execute PHP-CS-Fixer code style corrections on demand.
  • Run both unit and Behat test suites via a single LLM command.
  • Automate quality checks without manual terminal switching.

常见问题

1

What prerequisites are needed?

You need Node.js, npx, and tsx installed on your system.

2

How do I define tools in the YAML config?

Create a `phpocalypse-mcp.yaml` file with a `tools` array, each entry requiring a `name` and a `command` string. Example tools: php-cs-fixer, phpstan, tests-unit, tests-behat.

3

What will not work with this MCP server?

Any interactive CLI input will not work. For example, Behat prompts for snippet generation must be run in non-interactive mode (using `--no-interaction` or similar flags).

4

Are there known limitations?

Yes. Larger command outputs are not handled correctly yet. To work around this, try using `claude-3.7-sonnet` as the LLM or craft your commands to produce shorter, meaningful output.

5

Does the server support authentication or multiple transport types?

The README only describes a local stdio-based transport (via `npx` command). No authentication details are mentioned.

评论

其他 分类下的更多 MCP 服务器