Refactor MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| code_refactorC | Refactor code by replacing search pattern with replace pattern using regex |
| code_searchB | Search for code patterns using regex and return file locations with line numbers |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| extract-functions | Extract all function names from specified directory or files |
| extract-classes | Extract all class names from specified directory or files |
| extract-variables | Extract variable declarations from specified directory or files |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: code_refactor modifies code by replacing patterns, while code_search only finds patterns and returns locations. There is no overlap in functionality, making it impossible to confuse them.
Both tools follow a consistent verb_noun pattern with 'code_' as a prefix and descriptive suffixes ('refactor' and 'search'). The naming is uniform and predictable throughout the set.
With only 2 tools, the server feels thin for a 'Refactor MCP' domain. While the tools cover basic search and replace operations, typical refactoring workflows might require more operations like rename, extract method, or analyze dependencies, leaving the surface incomplete.
The toolset is severely incomplete for a refactoring domain. It lacks essential operations such as renaming identifiers, extracting functions or variables, analyzing code structure, or handling refactoring across multiple files. Agents will face dead ends when attempting complex refactoring tasks.