PHPocalypse-MCP
PHPocalypse-MCP
MCP 服务器适用于太忙而无法运行测试和静态分析的 vibe 开发人员。
先决条件
您需要安装 node、npx 和 tsx
Related MCP server: Tideways MCP Server
如何
首先,
git clone这个 repo 到所选目录运行
npm install接下来,打开 Cursor 设置并添加以下 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"]
}
}
}确保路径正确!
在你的 PHP 项目中,创建
phpocalypse-mcp.yaml文件
phpocalypse-mcp.yaml配置
结构很简单。通过指定名称和运行命令来定义工具。
tools:
- name: php-cs-fixer
command: make php-cs
- name: php-stan
command: /vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=-1
- name: tests-unit
command: docker compose run --rm php ./vendor/bin/phpunit --testsuite=Unit
- name: tests-behat
command: task behat -- --no-interaction注意事项
此 MCP 只是一个概念验证,并非在所有情况下都有效。任何交互式 CLI 输入肯定都无法正常工作。behat 就是一个很好的例子,如果它不在非交互式模式下运行,它会提示用户是否生成缺失的代码片段。请确保你的命令能够运行并输出有意义的内容,剩下的就交给你最喜欢的 LLM 吧。
一些较大的输出尚未正确处理。要修复此问题,请尝试使用
claude-3.7-sonnet或修改命令以返回 less 值。
This server cannot be deployed
Maintenance
Related MCP Connectors
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Run, debug, and triage tests from your IDE using natural language, no dashboard switching, no manual data transfers. The TestMu AI (formerly LambdaTest) MCP Server is a single remote server exposing four tool suites: HyperExecute — analyze your project, generate YAML configs and test runner commands, then monitor jobs and sessions. Automation — pull a TestID's details plus command, network, and console logs into one chat for instant root-cause analysis. Includes mobile app upload. SmartUI — explain pixel, layout, DOM, and perceptual changes in a visual regression run, with context-aware React/HTML/CSS fixes. Accessibility — audit any public URL or a local React app against WCAG and get ready-to-apply remediation steps. Connects over https://mcp.lambdatest.com/mcp using OAuth 2.1 — no API keys in your config. One-click install in Cursor; works with Claude, GitHub Copilot, Cline, and any MCP client. Tests execute on the TestMu AI cloud: 3,000+ browsers and 10,000+ real devices.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides detailed information about your development environment to the Cursor code editor, enabling more context-aware assistance.7MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to query Tideways performance monitoring data and provide conversational performance insights for PHP applications.58 npm3MIT
- AlicenseAqualityCmaintenanceA production-ready Model Context Protocol (MCP) server that bridges your Symfony/PHP project with LLMs such as Claude. It exposes tools that let the AI read your project's routes, services, Twig templates, and PHP source code.8MIT
- FlicenseAqualityDmaintenanceAn MCP server that lets AI agents run PHP unit and integration tests inside Docker containers without local PHP or Composer.26 npm-