cosmic-mcp

All servers

Code Refactor

io.github.zhouhengchang/code-refactor · version 1.0.4

Community listing. Not installed or verified by cosmic-mcp. Read the source and its permissions before you run it.

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

https://github.com/zhouhengchang/code-refactor

Quick facts

  • Listing: Community
  • Published Oct 18, 05:57 UTC
  • Transport: stdio
  • Package: npm workbuddy-code-refactor-connector 1.0.4
  • Listed by cosmic-mcp: Nov 8, 19:01 UTC

Other

Setup snippets

Generated from the registry entry. cosmic-mcp has not run or reviewed this server; values in angle brackets are yours to fill in.

Remote MCP URL (Claude and ChatGPT custom connectors)

https://code-refactor-api.app.workbuddy.host/mcp

Claude Code

claude mcp add --transport http 'code-refactor' 'https://code-refactor-api.app.workbuddy.host/mcp'

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "code-refactor": {
      "url": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "code-refactor": {
      "type": "http",
      "url": "https://code-refactor-api.app.workbuddy.host/mcp"
    }
  }
}

Run it locally (npm)

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "code-refactor": {
      "args": [
        "-y",
        "[email protected]"
      ],
      "command": "npx",
      "env": {
        "OLLAMA_HOST": "<your ollama host>",
        "OLLAMA_MODEL": "<your ollama model>",
        "OPENAI_API_KEY": "<your openai api key>",
        "OPENAI_BASE_URL": "<your openai base url>",
        "OPENAI_MODEL": "<your openai model>",
        "REFACTOR_BACKEND": "<your refactor backend>",
        "REFACTOR_TIMEOUT_MS": "<your refactor timeout ms>"
      }
    }
  }
}

Claude Code

claude mcp add 'code-refactor' -- npx -y '[email protected]'

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "code-refactor": {
      "args": [
        "-y",
        "[email protected]"
      ],
      "command": "npx",
      "env": {
        "OLLAMA_HOST": "<your ollama host>",
        "OLLAMA_MODEL": "<your ollama model>",
        "OPENAI_API_KEY": "<your openai api key>",
        "OPENAI_BASE_URL": "<your openai base url>",
        "OPENAI_MODEL": "<your openai model>",
        "REFACTOR_BACKEND": "<your refactor backend>",
        "REFACTOR_TIMEOUT_MS": "<your refactor timeout ms>"
      }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "code-refactor": {
      "args": [
        "-y",
        "[email protected]"
      ],
      "command": "npx",
      "env": {
        "OLLAMA_HOST": "<your ollama host>",
        "OLLAMA_MODEL": "<your ollama model>",
        "OPENAI_API_KEY": "<your openai api key>",
        "OPENAI_BASE_URL": "<your openai base url>",
        "OPENAI_MODEL": "<your openai model>",
        "REFACTOR_BACKEND": "<your refactor backend>",
        "REFACTOR_TIMEOUT_MS": "<your refactor timeout ms>"
      },
      "type": "stdio"
    }
  }
}

Related servers

  • Business Contact Finder Verified domain
    Check how to contact a business website, and whether that contact path actually works.
  • Contractor Licence Changes Verified domain
    Did this contractor's licence change? Observed lapses and reinstatements, not a snapshot.
  • Licensed House Painters Verified domain
    Find licensed house painters in 11 US states, with dated license status from state boards.
  • Affiliate Networks MCP Verified domain
    Affiliate network reporting in your AI client. Bring your own keys. Most adapters experimental.
  • AGILEX Docs Verified domain
    Official AGILEX robotics product docs: manuals, CAN protocol, firmware, FAQ. Read-only.
  • AIノアカリ☆ Agent Trust Receipt Verified domain
    Read-only Remote MCP for externally grounded AI agent trust receipts.