mcp-rector

Rector MCP Server

PHP developers can use mcp-rector to explore Rector refactoring rules through an MCP client. Its 3 tools list rule metadata, narrow results by rule set, and search for relevant rules using keywords or multi-word phrases.

Server facts

mcp-rector

Project

License
Not specified

Tech

Runtime / language
Not specified
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
14
Last commit
Data as of

Tags

  • Refactoring
  • mcp
  • php

Overview

Rector’s PHP refactoring catalog is the focus of mcp-rector, giving developers ways to inspect rules from an MCP client. The list-rector-rules tool returns entries with their names, descriptions, rule sets, and status, with an optional category restriction. For category-focused browsing, filter-rector-rules takes a required rule set name and accepts differences in capitalization. These tools support both browsing the available catalog and narrowing attention to a particular area, such as PHP 8.0, code quality, or type declarations.

Keyword discovery uses search-rector-rules, which accepts a required query and an optional rule set restriction. Searches cover names, descriptions, and tags, ranking name matches ahead of description matches and tag matches. Multi-word queries are tokenized, so a phrase such as “rename class” can match a compact rule name such as RenameClass. The server communicates over stdio. Documented client configurations cover Claude Desktop, Cline, Continue.dev, and Zed, while MCP Inspector provides a local workflow for trying tool parameters and examining protocol requests and responses before client integration.

mcp-rector setup notes

  • mcp-rector records stdio only; confirm a network transport upstream before planning remote access.
  • mcp-rector has no recorded license; confirm reuse terms in its repository.

Related MCP servers