protogrid

Search / io.github.zhouhengchang/code-refactor

Code Refactor

R0· no sign-in

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

v1.0.4 · active · repository · website · descriptor JSON · versions

An agent can connect right now, no human step.Remote endpoint, no authentication, reachable on the last probe.
Quality73new
Trust97of 100
Uptime, 30 days100%
Latency p505119 ms

Connect

8 clients · secrets stay placeholders
{
  "mcpServers": {
    "code-refactor": {
      "type": "http",
      "url": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  }
}
claude mcp add --transport http code-refactor https://code-refactor-api.app.workbuddy.host/mcp
[mcp_servers.code-refactor]
url = "https://code-refactor-api.app.workbuddy.host/mcp"
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "code-refactor": {
      "type": "remote",
      "url": "https://code-refactor-api.app.workbuddy.host/mcp",
      "enabled": true
    }
  }
}
{
  "mcpServers": {
    "code-refactor": {
      "type": "http",
      "url": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  },
  "deeplink": "cursor://anysphere.cursor-deeplink/mcp/install?name=code-refactor&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vY29kZS1yZWZhY3Rvci1hcGkuYXBwLndvcmtidWRkeS5ob3N0L21jcCJ9"
}
{
  "servers": {
    "code-refactor": {
      "type": "http",
      "url": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  }
}
{
  "mcpServers": {
    "code-refactor": {
      "httpUrl": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  }
}
extensions:
  "code-refactor":
    enabled: true
    name: "code-refactor"
    type: streamable_http
    uri: "https://code-refactor-api.app.workbuddy.host/mcp"
    timeout: 300

Quality 73 / 100new

protocol75 · weight 25
  • warn
    protocol.modernnewest supported version is 2025-06-18; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
  • n/a
    protocol.statelessonly applies to 2026-07-28 servers
  • pass
    protocol.transportstreamable HTTP
  • n/a
    protocol.list_ttlonly applies to 2026-07-28 servers
authorizationn/a · weight 15
  • n/a
    auth.prm, auth.as_metadata, auth.cimdno remote uses OAuth
  • n/a
    auth.secret_in_urlno templated URL
tool hygiene71 · weight 30
  • pass
    tools.descriptionsevery tool has a description
  • pass
    tools.description_lengthdescriptions are concise
  • pass
    tools.schemasevery tool has an object input schema
  • fail
    tools.annotationsno tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
  • fail
    tools.directory_hintsno tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: refactor_code (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); check_status (readOnlyHint, destructiveHint, idempotentHint, openWorldHint)
  • pass
    tools.token_costabout 140 tokens to load every tool
  • pass
    tools.api_dumptools are not a one-to-one API dump
stabilityn/a · weight 15
  • n/a
    stability.changes, stability.rug_pulltool history recorded for 2 of the 7 days needed
dependenciesn/a · weight 15
  • n/a
    deps.known_vulns, deps.mcp_sdk_version, deps.resolvabledeps.dev does not know [email protected]

2 tools, about 140 tokens to load them all · tool set bf4526996d7c · checked 2026-10-20 13:49 UTC

Tool changes

No tool definition changes recorded. A server's first observation is its baseline; later probes record what changes.

Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed. How it is computed.

Trust 97 / 100

provenance90
liveness100
freshness100
hygiene100

+repository +namespace-matches-repo +website +reachable +uptime-100% +updated-2d-ago

Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed. How it is computed.

Dependencies

[email protected] npmthis version is not known to the dependency resolver

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0. The graph is what a clean install of this version resolves today; nothing was installed or run. How it is checked.

Endpoints

remoteauthreachableuptime 30dp50protocollast ok
https://code-refactor-api.app.workbuddy.host/mcp streamable-httpnoneyes100%5119 ms2025-06-182026-10-20
packageregistryversionruntimesecrets
workbuddy-code-refactor-connectornpm1.0.4–OPENAI_API_KEY

Tools (2)

check_status检查重构服务与云端模型(DeepSeek)是否可用,返回后端类型、模型名与密钥校验状态。建议在调用 refactor_code 前先调用本工具。
refactor_code把遗留代码重构为现代规范代码,行为保持不变。会做语义化重命名、补全类型标注、生成中文注释、优化结构。适用于 Python / JavaScript / TypeScript / Java / Go / Rust / C / C++。

Schemas: list_tools.

Similar MCP servers

Official server.json
{
  "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."
}