Skip to main content
Glama
p4it-kft

Phpactor MCP Server

by p4it-kft

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PHPACTOR_BINNoPath to the Phpactor binary. If not set, Phpactor is expected to be in PATH.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
phpactor_index_buildA

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_referencesA

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_classA

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_memberA

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_classA

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_infoA

Query indexed information about a PHP class: FQCN, file path, type, what it implements, and what implements it.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/p4it-kft/p4it-phpactor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server