Skip to directory

About Refactor

Provides regex-based code refactoring capabilities for bulk search-and-replace operations across file systems with pattern matching, context filtering, and glob-based file discovery to enable large-scale code transformations and migrations.

What you can use it for

  • developer tools
Connection and setup
Hosting
Local stdio process
Transport
stdio
Endpoint
Local process; no hosted endpoint documented
Authentication
No credentials were configured; the tested read-only tool “code_search” succeeded in an isolated environment. Other tools may have additional requirements.

Requirements

  • Node.js 18+
  • The npm package repository matched the repository linked from the public profile.

Setup steps

  1. npx -y @myuon/refactor-mcp@1.2.0
Tools 2+

The server returned 2 tools in tools/list. Only “code_search” was invoked with a synthetic read-only input and succeeded.

  • code_refactor

    Refactor code by replacing search pattern with replace pattern using regex

    Parameters: search_pattern, replace_pattern, context_pattern, file_pattern, include_capture_groups, include_matched_text
    01
  • code_search

    Search for code patterns using regex and return file locations with line numbers

    Parameters: search_pattern, context_pattern, file_pattern, include_capture_groups, include_matched_text
    02

This server’s available tools can vary by account, permissions, or configuration. The list shown is not its full runtime catalog.

Limitations and notes
  • Runtime verification covered one read-only tool call (code_search); other listed tools were not individually exercised.
Original sources
  • MCP.Directory public profile

    Name, description, publisher identifier, categories, transport, tool inventory, and install configuration.

  • Linked publisher repository

    Repository URL linked from the public profile; npm package repository metadata matched this GitHub repository.

  • npm registry metadata

    Published package version 1.2.0 checked before launch. Registry repository: git+https://github.com/myuon/refactor-mcp.git.

  • maintainer or vendor documentation

    Maintainer repository checked for current identity and tool behavior; two stored entries remain a partial inventory.

Documentation checked 2026-10-28T00:00:00Z. Connection has not been runtime tested.