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

VariableRequiredSecretDescription
REFACTOR_BACKENDNoNoInference backend: 'ollama' (local, code stays on your machine, default) or 'openai' (any OpenAI-compatible cloud endpoint, e.g. DeepSeek).
OPENAI_BASE_URLNoNoBase URL of the OpenAI-compatible endpoint, e.g. https://api.deepseek.com/v1. Required when REFACTOR_BACKEND=openai.
OPENAI_API_KEYNoYesAPI key for the cloud endpoint, e.g. a DeepSeek key. Only needed when REFACTOR_BACKEND=openai.
OPENAI_MODELNoNoCloud model name, e.g. deepseek-chat.
OLLAMA_HOSTNoNoOllama server address used when REFACTOR_BACKEND=ollama.
OLLAMA_MODELNoNoOllama model name used when REFACTOR_BACKEND=ollama.
REFACTOR_TIMEOUT_MSNoNoPer-call timeout in milliseconds. Raise it for slow local CPU inference.

Checks

CheckResultDetail
Source repository linkedPasshttps://github.com/zhouhengchang/code-refactor
Version pinnedPassEvery package has an explicit version
Remote uses HTTPSPassAll remote endpoints use https://
Secrets requestedInfoAsks for 1 secret: OPENAI_API_KEY
Known package registryPassAll packages come from npm, PyPI, OCI, NuGet or MCPB
Namespace ownershipInfoName verified via GitHub account zhouhengchang
Registry text aimed at the AIPassDescription and settings contain no hidden characters or instructions to the AI
Install scriptsPassworkbuddy-code-refactor-connector@1.0.4 runs nothing at install
Code red flagsPassRead 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 AIPassNo 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.

Popularity8 / 40

0 GitHub stars, 98 downloads last week, no Hacker News posts found. Best two of the three, each on a log scale.

Activity24 / 25

Last push 2026-10-18, no GitHub release, 42 commits in 90 days.

Issue health8 / 15

0 closed of 1 issues, too few to judge. No data, so half marks.

Our checks20 / 20

0 warnings, each costing a fifth.

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 nameio.github.zhouhengchang/code-refactor
PublisherGitHub account zhouhengchang
How the name is verifiedName verified via GitHub account zhouhengchang. The registry ties the name prefix to that account or domain; it does not check the code.
TypeLocal package and a hosted remote
Packagesnpm workbuddy-code-refactor-connector 1.0.4 (stdio)
Remote endpointsstreamable-http https://code-refactor-api.app.workbuddy.host/mcp
Version1.0.4
Published
Last updated
Source repositoryhttps://github.com/zhouhengchang/code-refactor
Websitehttps://code-refactor-api.app.workbuddy.host
CategoryOther (assigned by keyword rule, not by hand)

Related servers in Other