Code Refactor
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_KEYsecret · 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
-
RoslynMcpServer
MCP serversModel Context Protocol server for Roslyn-powered C# refactoring operations
git clone https://github.com/JoshuaRamirez/RoslynMcpServer.git -
prism-coder
MCP serversPersistent session memory for AI coding agents — local-first, with on-device inference, associative recall, and drift detection. Works with Claude Code, Cursor, and Codex.
git clone https://github.com/dcostenco/prism-coder.git -
roam-code
MCP serversLocal 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.
git clone https://github.com/Cranot/roam-code.git -
CSharp.Refactor
MCP serversOffline analyzers that find and fix intent-hiding, slow or noisy C#, including agent-written code.
csharp-refactor@0.1.20 -
FSharp.Refactor
MCP serversOffline analyzers that find and fix intent-hiding, slow or noisy F#, including agent-written code.
fsharp-refactor@0.8.45 -
ripwire
MCP serversThe 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.
git clone https://github.com/redhat-et/ripwire.git