@p4it-kft/phpactor-mcp
MCP server for PHP refactoring via Phpactor
Versions
1.1.0latest1.0.0Tools 6
phpactor_index_build Build or rebuild the Phpactor project index. Must run before other phpactor tools. Checks PSR-4 autoload config and warns if missing (Yii2 projects need manual setup).
phpactor_find_references Find all semantic references to a PHP class or class member across the project. Returns type-aware results (not grep-based text matching).
phpactor_rename_class Update all REFERENCES to a PHP class project-wide (use statements, type hints, docblocks, instantiations). Does NOT rename the file or modify the class declaration — use phpactor_move_class for a full rename including file move and namespace update.
phpactor_rename_member Rename a PHP method, property, or constant and update all references project-wide. Uses type inference to only rename the correct member (not same-named members on other classes).
phpactor_move_class Move/rename a PHP class: moves the file, updates the namespace declaration, AND updates all references project-wide. This is the tool for full class renames. WARNING: Writes directly to disk — commit your work first!
phpactor_class_info Query indexed information about a PHP class: FQCN, file path, type, what it implements, and what implements it.
Permissions 2
shell high env_vars low