Loading…
Refactor legacy code into modern, idiomatic code without changing its behavior.
Code Refactor is an MCP server entry in ChatHome Skills, sourced from Official MCP Registry and scored 76/100. As a Model Context Protocol server, it exposes tools that MCP-compatible LLM clients such as Claude, Cursor, and Copilot can call directly, extending an agent's reach beyond its built-in capabilities. ChatHome Skills discovered this entry through its daily ingest of official registries and GitHub discovery queries, and re-verifies repository facts, freshness signals, and install metadata on every run. The quality score weighs official-registry presence, a working install command, license clarity, GitHub star trajectory, and repository freshness — the full formula is on the Sources page. The install command above is ready to copy. Review the last-pushed date and repository status before adding Code Refactor to a production agent workflow; the snapshot facts below are point-in-time values from the most recent ingest.
mcp add io.github.zhouhengchang/code-refactor https://code-refactor-api.app.workbuddy.host/mcpReview the upstream source before running this command.
{
"_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."
}
}