codegen
AI 代码生成(按次计费)
根据需求描述生成可运行的示例代码。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
stylepromptrequiredlanguagerequestId
io.github.zhouhengchangPublished by GitHub account zhouhengchangv1.0.4Updated Oct 25, 2026
Refactor legacy code into modern, idiomatic code without changing its behavior.
An MCP server that refactors code and generates code, tests, docs, SQL and other content through a local Ollama model or an OpenAI-compatible cloud endpoint.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.zhouhengchang%2Fcode-refactor/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Add this to your client's mcpServers config.
{
"mcpServers": {
"code-refactor": {
"type": "http",
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}WorkBuddy 代码重构连接器 —— 一个基于 Model Context Protocol 的 MCP Server,把「代码重构」能力封装成 AI 可直接调用的工具。
支持本地 Ollama 与任意 OpenAI 兼容的云端接口两种推理后端,通过环境变量切换。
暴露两个 MCP 工具:
或直接以 npx 运行(无需全局安装):
所有配置均通过环境变量读取,包内不硬编码任何密钥。
在 WorkBuddy 的连接器配置(mcp.json)中登记本服务:
若使用云端后端,在 env 中补充 REFACTOR_BACKEND、OPENAI_BASE_URL、OPENAI_MODEL、OPENAI_API_KEY。
Source: workbuddy-connector/server/README.md at commit 53fe79b
AI 代码生成(按次计费)
根据需求描述生成可运行的示例代码。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
stylepromptrequiredlanguagerequestIdAI 代码审查(按次计费)
审查代码并给出分级的修改建议。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
coderequiredfocuslanguagerequestId爆款文案生成(按次计费)
小红书/抖音/公众号等多平台文案,一次给 3 个版本。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
tonebriefrequiredplatformrequestId翻译与母语级润色(按次计费)
10 种语言,直译+润色+术语表三档输出。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
textrequiredstyletargetrequiredrequestIdSQL 生成与优化(按次计费)
按表结构生成/优化 SQL,自动拦截破坏性语句。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
schemadialectquestionrequiredrequestId单元测试生成(按次计费)
为核心代码生成可运行的单元测试(自动 mock 外部依赖)。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
coderequiredlanguageframeworkrequestId技术文档生成(按次计费)
README / API 文档 / 变更日志 / 技术方案一键生成。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
sourcerequireddocTypeaudiencerequestId简历优化与岗位匹配(按次计费)
按 JD 诊断匹配度并用 STAR 结构重写(绝不虚构经历)。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
jdgoalresumerequiredrequestId合同条款风险审查(按次计费)
标出高/中风险条款与缺失条款,并给出可替换表述。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
textrequiredpartyrequestId短视频脚本与分镜(按次计费)
开头钩子 3 版 + 分镜表 + 口播文案,可直接拍摄。按次计费:业务成功才确认扣款,内容违规、模型超时或生成失败会自动全额退款。
topicrequireddurationplatformrequestId查询订单
按订单号查询一笔调用的状态、金额、耗时与失败原因。不收费。
orderNorequired订单列表
列出最近的调用订单,可按状态或平台过滤,用于对账。不收费。
limitstatusplatform技能与定价信息
返回当前技能是否上架、单次价格、支持的编程语言与免责声明。不收费。
Takes no parameters.
100% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
npm install -g workbuddy-code-refactor-connectornpx workbuddy-code-refactor-connectorREFACTOR_BACKEND=ollama # 默认值,可省略OLLAMA_HOST=http://127.0.0.1:11434OLLAMA_MODEL=deepseek-coderREFACTOR_BACKEND=openaiOPENAI_BASE_URL=https://api.deepseek.com/v1OPENAI_MODEL=deepseek-flashOPENAI_API_KEY=sk-xxxxxxxxxxxx{ "mcpServers": { "code-refactor": { "command": "npx", "args": ["-y", "workbuddy-code-refactor-connector"], "env": { "REFACTOR_BACKEND": "ollama", "OLLAMA_MODEL": "deepseek-coder" } } }}