rector Model Context Protocol (MCP) Server

GitHub

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

10,381 stars PHP PHP 1 file ยท ~16,627 tokens #ast#automated-upgrades#instant-upgrades#php#rector#upgrade

Filesystem (rector) MCP Server

Model Context Protocol (filesystem) server

View all rector servers
Ready-to-Use Client Configurations
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/directory"
      ],
      "env": {
        "ALLOWED_DIRECTORIES": "/path/to/dir"
      }
    }
  }
}
Required Environment Variables & Credentials (1)
Variable Name Required Description Example / Default
ALLOWED_DIRECTORIES REQUIRED Absolute paths to allow read/write access /path/to/dir