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-refactorQuick facts
- Listing: Community
- Published Oct 18, 05:57 UTC
- Transport: stdio
- Package: npm
workbuddy-code-refactor-connector1.0.4 - Listed by cosmic-mcp: Nov 8, 19:01 UTC
Details
- Repository: https://github.com/zhouhengchang/code-refactor
- npm: https://www.npmjs.com/package/workbuddy-code-refactor-connector
- Website: https://code-refactor-api.app.workbuddy.host
- Remote endpoint:
https://code-refactor-api.app.workbuddy.host/mcp - Needs settings:
REFACTOR_BACKENDOPENAI_BASE_URLOPENAI_API_KEYOPENAI_MODELOLLAMA_HOSTOLLAMA_MODELREFACTOR_TIMEOUT_MS
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/mcpClaude 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)
npx -y '[email protected]'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.