SuperAPIAI Directory

model-worker-mcp

github.com · AI developer platforms

model-worker-mcp is a locally running, scope-restricted MCP server for coding tasks. It delegates bounded coding tasks to OpenAI-compatible models, requires callers to explicitly specify cwd, read_paths, and write_paths, validates the unified diff returned by the model before applying it, and can also run specified verification commands. It provides five MCP tools: route_code_task, delegate_code_task, get_task_status, cancel_task, and get_usage_summary, routing to different models based on task risk and complexity; when auth, payment, secret, migration, database, deployment, or production environments are involved, it only returns guarded and does not delegate automatically.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Purpose: model-worker-mcp is a locally running, scope-restricted coding worker MCP server used to delegate bounded coding tasks to OpenAI-compatible models. It only accepts explicitly specified cwd, read_paths, and write_paths, validates the unified diff returned by the provider before applying it, and can also run specified verification commands.

Main capabilities: provides the MCP tools route_code_task, delegate_code_task, get_task_status, cancel_task, and get_usage_summary. It is recommended to call route_code_task first: low-complexity tasks such as CSS, copywriting, and documentation go to qwen3.6-flash; medium-low-risk program logic, bug fixes, tests, and small backend features go to deepseek-flash-0731; general or cross-file coding goes to qwen3.7-plus; review goes to glm-5.2. When auth, payment, secret, migration, database, deployment, or production environments are involved, it only returns guarded and does not delegate automatically. Each task's tokens, estimated cost, and failure error summary are persisted to %LOCALAPPDATA%\CodexModelWorker\usage.json and can be queried with get_usage_summary. DeepSeek pricing has not been filled in yet, so its cost is marked as unknown and is not guessed. Error content masks Bearer and sk- strings, and the API key never appears in configuration files, task parameters, diffs, or logs.

Usage: set MODEL_WORKER_API_KEY in the user environment variables, or run npm run credentials:set -- worker-primary (encrypted storage via Windows DPAPI). Set MODEL_WORKER_BASE_URL (any OpenAI-compatible /chat/completions endpoint, default Alibaba Cloud Bailian https://dashscope.aliyuncs.com/compatible-mode/v1;若使用百炼专属 workspace, change it to your own workspace endpoint) and MODEL_WORKER_MODEL. The default primary model is qwen3.7-plus; single-file small changes can switch to qwen3.6-flash. .mcp.json starts server/server.js with a relative path; if the MCP client does not support cwd, change args to the absolute path of this directory. Model names and the price table are in worker/router.js and worker/usage-store.js; adjust them together when switching providers.

Use cases: suitable for development workflows that need controlled coding changes within a local Git repository, want automatic model selection based on task risk, and want to keep usage and cost records.

Limitations: requires Node.js 18 or later and Git (diffs are applied with git apply, and cwd must be a Git repository); verification commands and credential encryption are currently executed through Windows PowerShell.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools