Skip to content
Agentmart
Submit a tool

Code Refactor

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

Connector by zhouhengchang · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)Remote (HTTP)
Write a review

Install

Works with Claude Code, VS Code, Codex, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/zhouhengchang-code-refactor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Remote endpoint

  • https://code-refactor-api.app.workbuddy.host/mcp Remote (HTTP)

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
6 read · 0 write · 0 delete · 12 not yet classified
Secrets
1 (API keys, tokens or passwords)
Install scripts
Not scanned yet
Runs as
Node.js package

Tools by what they do 18

From the running server's own tool list (tools/list) on Oct 25, 2026.

Read 6 · Look things up without changing anything.

  • commitmsg
  • get_order
  • list_orders
  • review
  • skill_info
  • translate

Not yet classified 12 · We could not tell from the name and description.

  • codeexplain
  • codegen
  • codetrans
  • contract
  • copywriter
  • docgen
  • errfix
  • regexgen
  • resume
  • script
  • sqlgen
  • testgen

Secrets and settings it asks for

Secrets: values you paste in that let it act as you.

  • OPENAI_API_KEY

Other settings (environment variables or headers).

  • OLLAMA_HOST
  • OLLAMA_MODEL
  • OPENAI_BASE_URL
  • OPENAI_MODEL
  • REFACTOR_BACKEND
  • REFACTOR_TIMEOUT_MS

Network hosts it talks to 1

  • code-refactor-api.app.workbuddy.host · found in remote endpoint, install command

Files it touches

  • Any path the agent passes to its tools

Tools (18)

As the server listed them on Oct 25, 2026. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • codeexplain代码逐行讲解(按次计费)

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

  • codegenAI 代码生成(按次计费)

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

  • codetrans代码语言迁移(按次计费)

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

  • commitmsgGit 提交信息生成(按次计费)

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

  • contract合同条款风险审查(按次计费)

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

  • copywriter爆款文案生成(按次计费)

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

  • docgen技术文档生成(按次计费)

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

  • errfix报错诊断与修复(按次计费)

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

  • get_order查询订单

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

  • list_orders订单列表

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

  • regexgen正则表达式生成(按次计费)

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

  • resume简历优化与岗位匹配(按次计费)

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

  • reviewAI 代码审查(按次计费)

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

  • script短视频脚本与分镜(按次计费)

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

  • skill_info技能与定价信息

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

Show 3 more tools
  • sqlgenSQL 生成与优化(按次计费)

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

  • testgen单元测试生成(按次计费)

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

  • translate翻译与母语级润色(按次计费)

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

Signals

Stars
0
Forks
0
Open issues
1
Last commit (this folder)
Oct 18, 2026 (10 days ago)
Last release
Oct 18, 2026 (10 days ago)

From GitHub (fetched Oct 24, 2026).

Details

Registry name
io.github.zhouhengchang/code-refactor
Version
1.0.4
Auth
Auth not stated, API key
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026
Cite this page

Code Refactor MCP server. Agent Mart. https://agentmart.dev/connectors/zhouhengchang-code-refactor (last updated 2026-10-24)