TokenToSeaMCP Hub
中文 Console

Code Refactor

zhouhengchang

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

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

Local

claude mcp add code-refactor --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- npx -y workbuddy-code-refactor-connector

Remote

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

Environment variables

  • OPENAI_API_KEY

Replace the placeholders with your own credentials and keep them out of version control.