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.
Description from the maker (original English)
Refactor legacy code into modern, idiomatic code without changing its behavior.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
REFACTOR_BACKEND, OPENAI_BASE_URL, OPENAI_API_KEY, OPENAI_MODEL, OLLAMA_HOST, OLLAMA_MODEL, REFACTOR_TIMEOUT_MSValues marked secret are keys to your account. Never share them or paste them into a chat.
You need
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:
https://code-refactor-api.app.workbuddy.host/mcpOpen 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/mcpclaude 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-connectorFill in the empty values before running it.
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"code-refactor": {
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}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.
Paste into .vscode/mcp.json in your project
{
"servers": {
"code-refactor": {
"type": "http",
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}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:
https://code-refactor-api.app.workbuddy.host/mcpMenu names can differ slightly by plan and over time.
Your choice stays on this device in a cookie; no account needed.
REFACTOR_BACKEND envOPENAI_BASE_URL envOPENAI_MODEL envOLLAMA_HOST envOLLAMA_MODEL envREFACTOR_TIMEOUT_MS envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
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 个版本。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
translate10 种语言,直译+润色+术语表三档输出。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
sqlgen按表结构生成/优化 SQL,自动拦截破坏性语句。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
testgen为核心代码生成可运行的单元测试(自动 mock 外部依赖)。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
docgenREADME / API 文档 / 变更日志 / 技术方案一键生成。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
resume按 JD 诊断匹配度并用 STAR 结构重写(绝不虚构经历)。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
contract标出高/中风险条款与缺失条款,并给出可替换表述。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
script开头钩子 3 版 + 分镜表 + 口播文案,可直接拍摄。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
regexgen自然语言 → 精确正则 + 逐段解释 + 匹配示例,防灾难性回溯。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
commitmsg粘贴 diff → Conventional Commits 中英双语提交信息 + 风险提示。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
codeexplain按读者水平(零基础→资深)拆解代码逻辑、关键点与坑。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
codetransA 语言 → B 语言等价实现 + 依赖替换与行为差异清单。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
errfix报错栈 + 代码 → 根因定位 + 最小修复补丁 + 验证步骤。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
get_order按订单号查询一笔调用的状态、金额、耗时与失败原因。不收费。
list_orders列出最近的调用订单,可按状态或平台过滤,用于对账。不收费。
skill_info返回当前技能是否上架、单次价格、支持的编程语言与免责声明。不收费。
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
The registry name was verified with the GitHub account zhouhengchang, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
Responded in 5219 ms (HTTP 200)
No sign-in needed
Read 18 tool descriptions and found no hidden instructions to the AI
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
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.
You need to fill in: OPENAI_API_KEY
Either way works: install it on your computer or connect to the cloud version.
The GitHub repo last changed –, and the latest version (1.0.4) reached the registry 22 days ago.
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.
In the same category: GitHub, Desktop Commander, Cloudflare MCP
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’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.
MCP server for terminal commands, file operations, and process management
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 代码重构连接器 —— 一个基于 Model Context Protocol 的 MCP Server,把「代码重构」能力封装成 AI 可直接调用的工具。
支持本地 Ollama 与任意 OpenAI 兼容的云端接口两种推理后端,通过环境变量切换。
暴露两个 MCP 工具:
| 工具 | 参数 | 说明 |
|---|---|---|
refactor_code | code(源代码)、task(重构任务描述)、language(可选,语言提示) | 执行代码重构,返回重构后的代码与说明 |
check_status | 无 | 检查当前推理后端是否可用,并返回后端/模型信息 |
npm install -g workbuddy-code-refactor-connector
或直接以 npx 运行(无需全局安装):
npx workbuddy-code-refactor-connector
所有配置均通过环境变量读取,包内不硬编码任何密钥。
REFACTOR_BACKEND=ollama # 默认值,可省略
OLLAMA_HOST=http://127.0.0.1:11434 OLLAMA_MODEL=deepseek-coder
REFACTOR_BACKEND=openai
OPENAI_BASE_URL=https://api.deepseek.com/v1 OPENAI_MODEL=deepseek-flash OPENAI_API_KEY=sk-xxxxxxxxxxxx
| 变量 | 默认值 | 说明 | |
|---|---|---|---|
REFACTOR_BACKEND | ollama | 推理后端:ollama \ | openai |
OLLAMA_HOST | http://127.0.0.1:11434 | Ollama 服务地址 | |
OLLAMA_MODEL | deepseek-coder | 本地模型名 | |
OPENAI_BASE_URL | https://api.deepseek.com/v1 | OpenAI 兼容接口地址 | |
OPENAI_MODEL | deepseek-flash | 云端模型名 | |
OPENAI_API_KEY | 无 | 云端接口密钥(openai 后端必填) | |
REFACTOR_TIMEOUT_MS | 180000 | 单次推理超时毫秒数(纯 CPU 本地推理较慢,默认放宽到 3 分钟) |
在 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。
MIT