Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Description from the maker (original English)
Refactor legacy code into modern, idiomatic code without changing its behavior.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
REFACTOR_BACKEND, OPENAI_BASE_URL, OPENAI_API_KEY, OPENAI_MODEL, OLLAMA_HOST, OLLAMA_MODEL, REFACTOR_TIMEOUT_MSValues marked secret are keys to your account. Never share them or paste them into a chat.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Works in Claude on the web, desktop and mobile:
https://code-refactor-api.app.workbuddy.host/mcpOpen Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"code-refactor": {
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "your-value",
"OPENAI_BASE_URL": "your-value",
"OPENAI_API_KEY": "your-value",
"OPENAI_MODEL": "your-value",
"OLLAMA_HOST": "your-value",
"OLLAMA_MODEL": "your-value",
"REFACTOR_TIMEOUT_MS": "your-value"
}
}
}
}Run this in your terminal
claude mcp add --transport http code-refactor https://code-refactor-api.app.workbuddy.host/mcpclaude mcp add code-refactor --env REFACTOR_BACKEND=your-value --env OPENAI_BASE_URL=your-value --env OPENAI_API_KEY=your-value --env OPENAI_MODEL=your-value --env OLLAMA_HOST=your-value --env OLLAMA_MODEL=your-value --env REFACTOR_TIMEOUT_MS=your-value -- npx -y workbuddy-code-refactor-connectorFill in the empty values before running it.
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"code-refactor": {
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"code-refactor": {
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "your-value",
"OPENAI_BASE_URL": "your-value",
"OPENAI_API_KEY": "your-value",
"OPENAI_MODEL": "your-value",
"OLLAMA_HOST": "your-value",
"OLLAMA_MODEL": "your-value",
"REFACTOR_TIMEOUT_MS": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"code-refactor": {
"type": "http",
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}Paste into .vscode/mcp.json in your project
{
"servers": {
"code-refactor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "your-value",
"OPENAI_BASE_URL": "your-value",
"OPENAI_API_KEY": "your-value",
"OPENAI_MODEL": "your-value",
"OLLAMA_HOST": "your-value",
"OLLAMA_MODEL": "your-value",
"REFACTOR_TIMEOUT_MS": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
ChatGPT connects only to servers on the internet:
https://code-refactor-api.app.workbuddy.host/mcpMenu names can differ slightly by plan and over time.
Your choice stays on this device in a cookie; no account needed.
REFACTOR_BACKEND envOPENAI_BASE_URL envOPENAI_MODEL envOLLAMA_HOST envOLLAMA_MODEL envREFACTOR_TIMEOUT_MS envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
We have not read this server’s tool list yet; we check endpoints in rotation.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 6, 2026
The registry name was verified with the GitHub account zhouhengchang, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
Not checked yet; we check endpoints in rotation
Not checked yet; we check endpoints in rotation
Not checked yet; we read the tool list when we check the endpoint
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: OPENAI_API_KEY
Either way works: install it on your computer or connect to the cloud version.
The GitHub repo last changed –, and the latest version (1.0.4) reached the registry 19 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT in developer mode.
In the same category: Spec Driven Development, Remote Desktop Commander, Apify MCP Server
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
WorkBuddy 代码重构连接器 —— 一个基于 Model Context Protocol 的 MCP Server,把「代码重构」能力封装成 AI 可直接调用的工具。
支持本地 Ollama 与任意 OpenAI 兼容的云端接口两种推理后端,通过环境变量切换。
暴露两个 MCP 工具:
| 工具 | 参数 | 说明 |
|---|---|---|
refactor_code | code(源代码)、task(重构任务描述)、language(可选,语言提示) | 执行代码重构,返回重构后的代码与说明 |
check_status | 无 | 检查当前推理后端是否可用,并返回后端/模型信息 |
npm install -g workbuddy-code-refactor-connector
或直接以 npx 运行(无需全局安装):
npx workbuddy-code-refactor-connector
所有配置均通过环境变量读取,包内不硬编码任何密钥。
REFACTOR_BACKEND=ollama # 默认值,可省略
OLLAMA_HOST=http://127.0.0.1:11434 OLLAMA_MODEL=deepseek-coder
REFACTOR_BACKEND=openai
OPENAI_BASE_URL=https://api.deepseek.com/v1 OPENAI_MODEL=deepseek-flash OPENAI_API_KEY=sk-xxxxxxxxxxxx
| 变量 | 默认值 | 说明 | |
|---|---|---|---|
REFACTOR_BACKEND | ollama | 推理后端:ollama \ | openai |
OLLAMA_HOST | http://127.0.0.1:11434 | Ollama 服务地址 | |
OLLAMA_MODEL | deepseek-coder | 本地模型名 | |
OPENAI_BASE_URL | https://api.deepseek.com/v1 | OpenAI 兼容接口地址 | |
OPENAI_MODEL | deepseek-flash | 云端模型名 | |
OPENAI_API_KEY | 无 | 云端接口密钥(openai 后端必填) | |
REFACTOR_TIMEOUT_MS | 180000 | 单次推理超时毫秒数(纯 CPU 本地推理较慢,默认放宽到 3 分钟) |
在 WorkBuddy 的连接器配置(mcp.json)中登记本服务:
{
"mcpServers": { "code-refactor": { "command": "npx", "args": ["-y", "workbuddy-code-refactor-connector"], "env": { "REFACTOR_BACKEND": "ollama", "OLLAMA_MODEL": "deepseek-coder" } } } }
若使用云端后端,在 env 中补充 REFACTOR_BACKEND、OPENAI_BASE_URL、OPENAI_MODEL、OPENAI_API_KEY。
MIT