Code Refactor
io.github.zhouhengchang/code-refactor
About Code Refactor
Code Refactor is an MCP server published by the GitHub account zhouhengchang. Refactor legacy code into modern, idiomatic code without changing its behavior.
It runs on your own machine: your AI client starts it from the npm package workbuddy-code-refactor-connector at version 1.0.4, or you can connect to the hosted version instead.
It asks for one secret: OPENAI_API_KEY. Give it a key with the least access that still works.
Version 1.0.4 was published on 18 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 10 automated checks on the registry entry and the package code: 8 pass, 0 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
REFACTOR_BACKEND | No | No | Inference backend: 'ollama' (local, code stays on your machine, default) or 'openai' (any OpenAI-compatible cloud endpoint, e.g. DeepSeek). |
OPENAI_BASE_URL | No | No | Base URL of the OpenAI-compatible endpoint, e.g. https://api.deepseek.com/v1. Required when REFACTOR_BACKEND=openai. |
OPENAI_API_KEY | No | Yes | API key for the cloud endpoint, e.g. a DeepSeek key. Only needed when REFACTOR_BACKEND=openai. |
OPENAI_MODEL | No | No | Cloud model name, e.g. deepseek-chat. |
OLLAMA_HOST | No | No | Ollama server address used when REFACTOR_BACKEND=ollama. |
OLLAMA_MODEL | No | No | Ollama model name used when REFACTOR_BACKEND=ollama. |
REFACTOR_TIMEOUT_MS | No | No | Per-call timeout in milliseconds. Raise it for slow local CPU inference. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/zhouhengchang/code-refactor |
| Version pinned | Pass | Every package has an explicit version |
| Remote uses HTTPS | Pass | All remote endpoints use https:// |
| Secrets requested | Info | Asks for 1 secret: OPENAI_API_KEY |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account zhouhengchang |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | workbuddy-code-refactor-connector@1.0.4 runs nothing at install |
| Code red flags | Pass | Read 3 files in workbuddy-code-refactor-connector@1.0.4: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 3 files, including comments and the README |
Popularity & health: 59 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
0 forks, 0 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.zhouhengchang/code-refactor |
|---|---|
| Publisher | GitHub account zhouhengchang |
| How the name is verified | Name verified via GitHub account zhouhengchang. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local package and a hosted remote |
| Packages | npm workbuddy-code-refactor-connector 1.0.4 (stdio) |
| Remote endpoints | streamable-http https://code-refactor-api.app.workbuddy.host/mcp |
| Version | 1.0.4 |
| Published | |
| Last updated | |
| Source repository | https://github.com/zhouhengchang/code-refactor |
| Website | https://code-refactor-api.app.workbuddy.host |
| Category | Other (assigned by keyword rule, not by hand) |
Related servers in Other
- USB LIN Converter7/7Sniff and reverse-engineer a car's LIN bus: capture, changing bits,…
- mcp-zenml4/4MCP server for discovering, reading, and changing ZenML resources…
- FSharp.Refactor4/4Offline analyzers that find and fix intent-hiding, slow or noisy…
- CSharp.Refactor4/4Offline analyzers that find and fix intent-hiding, slow or noisy…
- green-mcp7/7Measure a program's CPU energy and LLM tokens, then refactor it…
- Avanan MSP (Legacy SmartAPI)4/4MCP server for the Avanan MSP SmartAPI — manage child MSPs, users,…