InnerVault

Code Refactor

Stale Official MCP Registry, io.github.zhouhengchang

Refactor legacy code into modern, idiomatic code without changing its behavior.

Open the source (opens github.com) https://github.com/zhouhengchang/code-refactor

Before you use it

  • Runs on someone else's server: what you send it leaves your machine.
  • Runs on your computer with your permissions. Read what it can do before connecting it to an agent.
  • Needs credentials: OPENAI_API_KEY. Use a key with the least access you can.

What it is

MCP servers from io.github.zhouhengchang.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

How to get it

npm package (stdio)

workbuddy-code-refactor-connector@1.0.4

From the server's entry in the official MCP Registry

Remote endpoint (streamable-http)

https://code-refactor-api.app.workbuddy.host/mcp

From the server's entry in the official MCP Registry

Settings it asks for

  • REFACTOR_BACKEND · Inference backend: 'ollama' (local, code stays on your machine, default) or 'openai' (any OpenAI-compatible cloud endpoint, e.g. DeepSeek).
  • OPENAI_BASE_URL · Base URL of the OpenAI-compatible endpoint, e.g. https://api.deepseek.com/v1. Required when REFACTOR_BACKEND=openai.
  • OPENAI_API_KEY secret · API key for the cloud endpoint, e.g. a DeepSeek key. Only needed when REFACTOR_BACKEND=openai.
  • OPENAI_MODEL · Cloud model name, e.g. deepseek-chat.
  • OLLAMA_HOST · Ollama server address used when REFACTOR_BACKEND=ollama.
  • OLLAMA_MODEL · Ollama model name used when REFACTOR_BACKEND=ollama.
  • REFACTOR_TIMEOUT_MS · Per-call timeout in milliseconds. Raise it for slow local CPU inference.

Related

  1. RoslynMcpServer

    MCP servers

    Model Context Protocol server for Roslyn-powered C# refactoring operations

    Stale GitHub, JoshuaRamirez 31 ★MITUpdated 11 days ago

    git clone https://github.com/JoshuaRamirez/RoslynMcpServer.git
  2. prism-coder

    MCP servers

    Persistent session memory for AI coding agents — local-first, with on-device inference, associative recall, and drift detection. Works with Claude Code, Cursor, and Codex.

    Indexed GitHub, dcostenco 156 ★Apache-2.0Updated 2 days ago

    git clone https://github.com/dcostenco/prism-coder.git
  3. roam-code

    MCP servers

    Local codebase intelligence CLI + MCP server for AI coding agents: SQLite code graph, 28 languages, 287 commands, 246 MCP tools, change-safety gates, audit evidence, zero API keys.

    Stale GitHub, Cranot 516 ★Apache-2.0Updated 28 days ago

    git clone https://github.com/Cranot/roam-code.git
  4. CSharp.Refactor

    MCP servers

    Offline analyzers that find and fix intent-hiding, slow or noisy C#, including agent-written code.

    Stale Official MCP Registry, io.github.Thorium Updated 33 days ago 1 note

    csharp-refactor@0.1.20
  5. FSharp.Refactor

    MCP servers

    Offline analyzers that find and fix intent-hiding, slow or noisy F#, including agent-written code.

    Stale Official MCP Registry, io.github.Thorium Updated 33 days ago 1 note

    fsharp-refactor@0.8.45
  6. ripwire

    MCP servers

    The ripgrep of AI context: a zero-dependency C++23 CLI + MCP server for coding agents. Cut agent token costs by finding code without reading the repo, then keep large codebases off the complexity wall: blast radius, tests to run, quality deltas as you write. Every guess labelled, every loss published. Paddle out with a map.

    Indexed GitHub, redhat-et 2,546 ★Apache-2.0Updated today

    git clone https://github.com/redhat-et/ripwire.git