Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Code Refactor

by zhouhengchangversion 1.0.4i★ –iComputer or cloud
Registry nameio.github.zhouhengchang/code-refactor

Install

Overview

Description from the maker (original English)

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

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Computer or cloud
  • Transport: stdio, Streamable HTTP
  • Category: Developer tools
  • You need to fill in: OPENAI_API_KEY

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 3 of 3 passed
  • Runs on the maker’s server: what you ask it goes through their server.
  • Can do 18 things (tools) codegen, review, copywriter, translate …
  • You fill in yourself: REFACTOR_BACKEND, OPENAI_BASE_URL, OPENAI_API_KEY, OPENAI_MODEL, OLLAMA_HOST, OLLAMA_MODEL, REFACTOR_TIMEOUT_MS

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • Runs in the cloudNothing to install; it connects over the internet
  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Works in Claude on the web, desktop and mobile:

  1. Open Settings → Connectors
  2. Press Add custom connector
  3. Paste the address below and press Add
  4. If it asks you to sign in, sign in with the maker
SettingsConnectors1+ Add2https://…3
https://code-refactor-api.app.workbuddy.host/mcp

Or run it on your computer

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "code-refactor": {
      "command": "npx",
      "args": [
        "-y",
        "workbuddy-code-refactor-connector"
      ],
      "env": {
        "REFACTOR_BACKEND": "your-value",
        "OPENAI_BASE_URL": "your-value",
        "OPENAI_API_KEY": "your-value",
        "OPENAI_MODEL": "your-value",
        "OLLAMA_HOST": "your-value",
        "OLLAMA_MODEL": "your-value",
        "REFACTOR_TIMEOUT_MS": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add --transport http code-refactor https://code-refactor-api.app.workbuddy.host/mcp

Or run it on your computer

claude mcp add code-refactor --env REFACTOR_BACKEND=your-value --env OPENAI_BASE_URL=your-value --env OPENAI_API_KEY=your-value --env OPENAI_MODEL=your-value --env OLLAMA_HOST=your-value --env OLLAMA_MODEL=your-value --env REFACTOR_TIMEOUT_MS=your-value -- npx -y workbuddy-code-refactor-connector

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "code-refactor": {
      "url": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  }
}

Or run it on your computer

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "code-refactor": {
      "command": "npx",
      "args": [
        "-y",
        "workbuddy-code-refactor-connector"
      ],
      "env": {
        "REFACTOR_BACKEND": "your-value",
        "OPENAI_BASE_URL": "your-value",
        "OPENAI_API_KEY": "your-value",
        "OPENAI_MODEL": "your-value",
        "OLLAMA_HOST": "your-value",
        "OLLAMA_MODEL": "your-value",
        "REFACTOR_TIMEOUT_MS": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "code-refactor": {
      "type": "http",
      "url": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  }
}

Or run it on your computer

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "code-refactor": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "workbuddy-code-refactor-connector"
      ],
      "env": {
        "REFACTOR_BACKEND": "your-value",
        "OPENAI_BASE_URL": "your-value",
        "OPENAI_API_KEY": "your-value",
        "OPENAI_MODEL": "your-value",
        "OLLAMA_HOST": "your-value",
        "OLLAMA_MODEL": "your-value",
        "REFACTOR_TIMEOUT_MS": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

ChatGPT connects only to servers on the internet:

  1. Open ChatGPT on the web → Settings → Connectors (Apps)
  2. Press Create or Add (some plans need Developer mode under Advanced first)
  3. Paste the address below, give it a name and save
  4. If it asks you to sign in, sign in with the maker
SettingsConnectors1+ Create2https://…3
https://code-refactor-api.app.workbuddy.host/mcp

Menu names can differ slightly by plan and over time.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

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

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Tool names and descriptions exactly as the server reported them on Nov 7, 2026. The maker wrote them, not us; we show them as plain text.

  • codegen

    根据需求描述生成可运行的示例代码。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • review

    审查代码并给出分级的修改建议。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • copywriter

    小红书/抖音/公众号等多平台文案,一次给 3 个版本。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • translate

    10 种语言,直译+润色+术语表三档输出。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • sqlgen

    按表结构生成/优化 SQL,自动拦截破坏性语句。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • testgen

    为核心代码生成可运行的单元测试(自动 mock 外部依赖)。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • docgen

    README / API 文档 / 变更日志 / 技术方案一键生成。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • resume

    按 JD 诊断匹配度并用 STAR 结构重写(绝不虚构经历)。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • contract

    标出高/中风险条款与缺失条款,并给出可替换表述。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • script

    开头钩子 3 版 + 分镜表 + 口播文案,可直接拍摄。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • regexgen

    自然语言 → 精确正则 + 逐段解释 + 匹配示例,防灾难性回溯。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • commitmsg

    粘贴 diff → Conventional Commits 中英双语提交信息 + 风险提示。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • codeexplain

    按读者水平(零基础→资深)拆解代码逻辑、关键点与坑。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • codetrans

    A 语言 → B 语言等价实现 + 依赖替换与行为差异清单。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • errfix

    报错栈 + 代码 → 根因定位 + 最小修复补丁 + 验证步骤。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。

  • get_order

    按订单号查询一笔调用的状态、金额、耗时与失败原因。不收费。

  • list_orders

    列出最近的调用订单,可按状态或平台过滤,用于对账。不收费。

  • skill_info

    返回当前技能是否上架、单次价格、支持的编程语言与免责声明。不收费。

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 9, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account zhouhengchang, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • ✓ Pass

    Endpoint responds

    Responded in 5219 ms (HTTP 200)

  • – Not applicable

    Sign-in with OAuth

    No sign-in needed

  • ✓ Pass

    No hidden instructions in tool descriptions

    Read 18 tool descriptions and found no hidden instructions to the AI

Compared with others in Developer toolsi

  • More stars than 0% of the other 5569 servers in this category
  • Published to the registry more recently than 57% of the other 5569 servers in this category
  • Basic checks equal to or better than 100% of the other 5569 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Code Refactor safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: OPENAI_API_KEY

Does it run on my computer or in the cloud?

Either way works: install it on your computer or connect to the cloud version.

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.0.4) reached the registry 22 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT in developer mode.

What can I use instead?

In the same category: GitHub, Desktop Commander, Cloudflare MCP

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitHub

GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.

by githubWidely used★ 34.2KUpdated 5 days ago

Computer or cloud

Desktop Commander

MCP server for terminal commands, file operations, and process management

by wonderwhy-erWidely used↓ 709.6K/wk★ 10.2KUpdated 18 days ago

Runs on your computer

Cloudflare MCP

Cloudflare MCP servers

by cloudflareWidely used★ 4.4KUpdated 14 months ago

Runs in the cloud✓ mcp.cloudflare.com

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

workbuddy-code-refactor-connector

WorkBuddy 代码重构连接器 —— 一个基于 Model Context Protocol 的 MCP Server,把「代码重构」能力封装成 AI 可直接调用的工具。

支持本地 Ollama 与任意 OpenAI 兼容的云端接口两种推理后端,通过环境变量切换。

功能

暴露两个 MCP 工具:

工具参数说明
refactor_codecode(源代码)、task(重构任务描述)、language(可选,语言提示)执行代码重构,返回重构后的代码与说明
check_status无检查当前推理后端是否可用,并返回后端/模型信息

安装

npm install -g workbuddy-code-refactor-connector

或直接以 npx 运行(无需全局安装):

npx workbuddy-code-refactor-connector

配置

所有配置均通过环境变量读取,包内不硬编码任何密钥。

方式一:本地 Ollama(默认,代码不出本机)
REFACTOR_BACKEND=ollama          # 默认值,可省略

OLLAMA_HOST=http://127.0.0.1:11434 OLLAMA_MODEL=deepseek-coder

方式二:云端 OpenAI 兼容接口
REFACTOR_BACKEND=openai

OPENAI_BASE_URL=https://api.deepseek.com/v1 OPENAI_MODEL=deepseek-flash OPENAI_API_KEY=sk-xxxxxxxxxxxx

全部环境变量
变量默认值说明
REFACTOR_BACKENDollama推理后端:ollama \openai
OLLAMA_HOSThttp://127.0.0.1:11434Ollama 服务地址
OLLAMA_MODELdeepseek-coder本地模型名
OPENAI_BASE_URLhttps://api.deepseek.com/v1OpenAI 兼容接口地址
OPENAI_MODELdeepseek-flash云端模型名
OPENAI_API_KEY无云端接口密钥(openai 后端必填)
REFACTOR_TIMEOUT_MS180000单次推理超时毫秒数(纯 CPU 本地推理较慢,默认放宽到 3 分钟)

接入 WorkBuddy

在 WorkBuddy 的连接器配置(mcp.json)中登记本服务:

{

"mcpServers": { "code-refactor": { "command": "npx", "args": ["-y", "workbuddy-code-refactor-connector"], "env": { "REFACTOR_BACKEND": "ollama", "OLLAMA_MODEL": "deepseek-coder" } } } }

若使用云端后端,在 env 中补充 REFACTOR_BACKEND、OPENAI_BASE_URL、OPENAI_MODEL、OPENAI_API_KEY。

设计要点

  • 密钥零硬编码:地址、模型名、密钥全部来自环境变量。
  • 超时保护:所有工具调用都有超时上限,默认 180 秒。
  • 错误可读:任何异常都转换为可读的中文提示,不向调用方抛出原始堆栈。
  • 双后端:本地推理保障代码不出本机;云端接口用于追求更高重构质量。

许可

MIT

Ask PopNx