加载中…
Refactor legacy code into modern, idiomatic code without changing its behavior.
Code Refactor 是 ChatHome Skills 收录的 MCP 条目,来源为 Official MCP Registry,质量分 76/100。 作为 Model Context Protocol 服务器,它向 Claude、Cursor、Copilot 等兼容 MCP 的 LLM 客户端暴露可直接调用的工具,让 agent 的能力超出模型内置范围。 该条目由 ChatHome Skills 的每日抓取从官方 registry 和 GitHub 发现查询中收录,每次运行都会重新核验仓库事实、新鲜度信号和安装元数据。 质量分综合了官方 registry 收录情况、可用安装命令、许可证完整性、仓库活跃度和 GitHub star 趋势,完整算法说明见来源页。安装命令已列于上方,可直接复制使用。 在将 Code Refactor 加入生产 agent 工作流前,请核对上方的最近更新日期和仓库状态——下方事实快照是最近一次抓取的时点值。
mcp add io.github.zhouhengchang/code-refactor https://code-refactor-api.app.workbuddy.host/mcp运行此命令前,请先核对上游源码。
{
"_meta": {
"io.modelcontextprotocol.registry/official": {
"status": "active",
"isLatest": true,
"updatedAt": "2026-10-18T05:57:53.263181Z",
"publishedAt": "2026-10-18T05:57:53.263181Z",
"statusChangedAt": "2026-10-18T05:57:53.263181Z"
}
},
"server": {
"name": "io.github.zhouhengchang/code-refactor",
"title": "Code Refactor",
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"remotes": [
{
"url": "https://code-refactor-api.app.workbuddy.host/mcp",
"type": "streamable-http"
}
],
"version": "1.0.4",
"packages": [
{
"version": "1.0.4",
"transport": {
"type": "stdio"
},
"identifier": "workbuddy-code-refactor-connector",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "REFACTOR_BACKEND",
"default": "ollama",
"description": "Inference backend: 'ollama' (local, code stays on your machine, default) or 'openai' (any OpenAI-compatible cloud endpoint, e.g. DeepSeek)."
},
{
"name": "OPENAI_BASE_URL",
"description": "Base URL of the OpenAI-compatible endpoint, e.g. https://api.deepseek.com/v1. Required when REFACTOR_BACKEND=openai."
},
{
"name": "OPENAI_API_KEY",
"isSecret": true,
"description": "API key for the cloud endpoint, e.g. a DeepSeek key. Only needed when REFACTOR_BACKEND=openai."
},
{
"name": "OPENAI_MODEL",
"default": "deepseek-chat",
"description": "Cloud model name, e.g. deepseek-chat."
},
{
"name": "OLLAMA_HOST",
"default": "http://127.0.0.1:11434",
"description": "Ollama server address used when REFACTOR_BACKEND=ollama."
},
{
"name": "OLLAMA_MODEL",
"default": "qwen2.5-coder",
"description": "Ollama model name used when REFACTOR_BACKEND=ollama."
},
{
"name": "REFACTOR_TIMEOUT_MS",
"default": "180000",
"description": "Per-call timeout in milliseconds. Raise it for slow local CPU inference."
}
]
}
],
"repository": {
"url": "https://github.com/zhouhengchang/code-refactor",
"source": "github",
"subfolder": "workbuddy-connector/server"
},
"websiteUrl": "https://code-refactor-api.app.workbuddy.host",
"description": "Refactor legacy code into modern, idiomatic code without changing its behavior."
}
}