neversight/learn-skills.dev/deepseek-claude-code-worker-mcp

Claude Code and agent skill by neversight/learn-skills.dev

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Delegate coding tasks to DeepSeek V4 through Claude Code MCP worker, saving Codex main-thread tokens with async background jobs

Install

npx vskill@latest install neversight/learn-skills.dev/deepseek-claude-code-worker-mcp

SKILL.md

The same SKILL.md was published earlier as neversight/learn-skills.dev/deepseek-claude-code-worker-mcp.

DeepSeek Claude Code Worker MCP

Skill by ara.so — MCP Skills collection.

Overview

DeepSeek Claude Code Worker MCP is a coding-worker server for Codex Desktop that delegates expensive code reading, editing, and checking to DeepSeek V4 through Claude Code. The workflow is: Codex plans and reviews, DeepSeek V4 executes implementation work in isolated background jobs. This saves Codex main-thread tokens by 40-60% on suitable coding tasks.

Key concept: This is not a standalone DeepSeek client. It includes a claude-deepseek launcher that runs the local Claude Code CLI against DeepSeek's Anthropic-compatible endpoint.

Current beta: v0.3.20-beta.38

Installation

GitHub (no global install)

Add to your MCP config (~/.codex/config.toml or similar):

json
{
"mcpServers": {
"deepseek-code-worker": {
"command": "npx",
"args": [
"github:louchi1984-coder/deepseek-claude-code-worker-mcp#v0.3.20-beta.38"
]
}
}
}
Source mode (recommended for development)
bash
git clone https://github.com/louchi1984-coder/deepseek-claude-code-worker-mcp.git
cd deepseek-claude-code-worker-mcp
npm install
npm run mcp:setup
npm run mcp:doctor

Source-mode MCP config:

json
{
"mcpServers": {
"deepseek-code-worker": {
"command": "node",
"args": ["/absolute/path/to/deepseek-claude-code-worker-mcp/src/deepseek-worker-mcp.mjs"]
}
}
}
Quick check without installing
bash
npx github:louchi1984-coder/deepseek-claude-code-worker-mcp#v0.3.20-beta.38 --doctor

Expected output:

json
{
"server_version": "0.3.20-beta.38",
"ok": true
}

Requirements

  • Node.js 20+
  • Claude Code CLI (@anthropic-ai/claude-code)
  • DeepSeek API key
  • macOS / Linux (Windows is best-effort)
Environment variables
  • DEEPSEEK_API_KEY or ~/.codex/secrets/deepseek_api_key
  • ANTHROPIC_AUTH_TOKEN (for Claude Code)
  • DEEPSEEK_API_KEY_FILE (alternative key location)
  • CLAUDE_BIN (custom Claude Code CLI path)

Setup can interactively install Claude Code and prompt for DeepSeek key if missing.

Core Tools

deepseek_start_implementation

Starts a background coding job. Returns job_id immediately.

javascript
// Minimal start
{
"name": "deepseek_start_implementation",
"arguments": {
"cwd": "/absolute/project/path",
"task": "Add error handling to the authentication module"
}
}
// With boundaries and validation
{
"name": "deepseek_start_implementation",
"arguments": {
"cwd": "/home/user/myproject",
"task": "Implement rate limiting middleware with Redis backend",
"allowed_dirs": ["src/middleware", "src/lib/redis"],
"forbidden_paths": ["src/config/secrets.json", ".env"],
"generated_paths": ["docs/RATE_LIMIT_EVAL.md"],
"validation_commands": [
"npm test -- middleware.test.js",
"npm run lint src/middleware"
],
"use_case": "simple_agent_task",
"worker_profile": "scoped_patch"
}
}
// Complex reasoning task
{
"name": "deepseek_start_implementation",
"arguments": {
"cwd": "/home/user/complex-app",
"task": "Debug and fix the race condition in the WebSocket message queue",
"use_case": "debug_loop",
"allowed_dirs": ["src/websocket", "src/queue", "tests"],
"validation_commands": ["npm run test:integration:ws"]
}
}

Returns:

json
{
"job_id": "dsw_abc123",
"status": "running",
"cwd": "/home/user/myproject",
"started_at": "2026-06-01T10:30:00Z"
}
deepseek_get_job

Reads compact job status. Does not include logs/events/diffs by default.

javascript
// Basic status check
{
"name": "deepseek_get_job",
"arguments": {
"job_id": "dsw_abc123"
}
}
// With full evidence (use sparingly)
{
"name": "deepseek_get_job",
"arguments": {
"job_id": "dsw_abc123",
"include_logs": true,
"include_events": true,
"include_diff": true
}
}

Returns (compact):

json
{
"job_id": "dsw_abc123",
"status": "completed",
"exit_code": 0,
"files_changed": ["src/middleware/rateLimiter.js", "tests/middleware.test.js"],
"checks": {
"npm test -- middleware.test.js": {"exit_code": 0, "stderr": ""},
"npm run lint src/middleware": {"exit_code": 0, "stderr": ""}
},
"policy": {
"out_of_scope": [],
"forbidden_touched": [],
"generated_changed": ["docs/RATE_LIMIT_EVAL.md"]
},
"tool_activity": {
"total_actions": 8,
"bash": 3,
"edit": 2,
"write": 1,
"read": 2
}
}
deepseek_tail_job

Reads compact status with optional logs. Similar to get_job but designed for progress checks.

javascript
{
"name": "deepseek_tail_job",
"arguments": {
"job_id": "dsw_abc123",
"include_logs": false // default
}
}
deepseek_wait_for_job

Short observation window (default 30s). Does NOT kill the worker on timeout. Use for quick status updates, not as a main loop.

javascript
{
"name": "deepseek_wait_for_job",
"arguments": {
"job_id": "dsw_abc123",
"timeout_sec": 30
}
}
deepseek_cancel_job

Requests job cancellation.

javascript
{
"name": "deepseek_cancel_job",
"arguments": {
"job_id": "dsw_abc123"
}
}
deepseek_implement_in_workspace

Synchronous mode for tiny edits. Blocks until complete.

javascript
{
"name": "deepseek_implement_in_workspace",
"arguments": {
"cwd": "/home/user/myproject",
"task": "Fix typo in README.md line 42",
"use_case": "fast_patch"
}
}

Use Cases and Model Selection

The MCP chooses DeepSeek model and reasoning effort based on use_case. Goal: save Codex main-thread tokens, not DeepSeek tokens.

use_caseDefault modeleffortBest for
autodeepseek-v4-flashmaxgeneral implementation
fast_patchdeepseek-v4-flashhighsmall patches
simple_agent_taskdeepseek-v4-flashhighsimple agentic coding
scaffold_or_testsdeepseek-v4-flashhighscaffolding, glue, tests
debug_loopdeepseek-v4-pro[1m]maxreproduce, locate, fix, validate
agentic_codingdeepseek-v4-pro[1m]maxmulti-step implementation
complex_reasoningdeepseek-v4-pro[1m]maxarchitecture, hard logic
long_context_codebasedeepseek-v4-pro[1m]maxbroad codebase work
docs_generationdeepseek-v4-pro[1m]highdocumentation

Selection rules:

  • Use auto by default
  • Use fast_patch for obviously tiny edits
  • Use scaffold_or_tests for tests, scaffolding, glue code
  • Use debug_loop for reproduce/locate/fix/validate workflows
  • Use Pro[1m] presets for cross-file implementation, complex logic, or broad context
  • Don't default to Pro[1m] just because it sounds stronger

Override with explicit model, thinking, or reasoning_effort if needed.

Worker Profiles

Control permission scope with worker_profile:

  • default: Standard Claude Code scoped permissions
  • scoped_patch: Tightly scoped, narrow allowed_dirs
  • safe_readonly: Restricted bash, read-only operations (use with safety_mode: "safe")

Safety and Permissions

Not a sandbox. Guardrails:

  • Temporary Claude Code dontAsk settings per worker
  • PreToolUse hook blocks clearly dangerous Bash and forbidden paths
  • Hooks log compact action summaries
  • Final snapshot policy checks report out-of-scope changes

Default: safety_mode: "permissive" (Bash allowed except dangerous commands)

Strict: safety_mode: "safe" (Bash restricted to read-only and explicit checks)

`bypassPermissions`: disabled by default. Keep it off unless you add external sandboxing.

Path boundaries
  • allowed_dirs: Target directories for implementation
  • forbidden_paths: Hard failure if touched
  • generated_paths: Validation/eval outputs; reported as generated_changed, not out-of-scope

v0.3.20-beta.38 principle: Report actions as facts, don't auto-fail. Out-of-scope changes are reported; forbidden_paths remains a hard failure.

Token-Saving Discipline

To maximize Codex token savings:

  1. Narrow task scope: One goal, clear boundaries, explicit validation
  2. Minimal context: Don't read whole codebase before delegating
  3. Compact status: Avoid logs/events/diffs while job is running
  4. Selective review: After completion, review only files_changed, key ranges, checks, risks
  5. Project brief pattern:
text
Project brief:
- Project: <one-line goal>
- Current slice: <module/feature>
- Task: <single implementation goal>
- Boundaries: <allowed_dirs>
- Generated outputs: <eval reports>
- Do not touch: <forbidden_paths>
- Validate: <commands>
- Previous result: <job_id + status + diff/check summary>
  1. Follow-up workers: Pass only necessary previous-result summary, not full history

Configuration Examples

Scoped patch with validation
javascript
{
"cwd": "/home/user/app",
"task": "Add input sanitization to user registration endpoint",
"use_case": "simple_agent_task",
"worker_profile": "scoped_patch",
"allowed_dirs": ["src/routes/auth", "src/lib/sanitize"],
"forbidden_paths": ["src/config", ".env", "secrets"],
"validation_commands": [
"npm test -- auth.test.js",
"npm run security-scan src/routes/auth"
],
"safety_mode": "permissive"
}
Debug loop with Pro model
javascript
{
"cwd": "/home/user/complex-service",
"task": "Reproduce and fix the memory leak in the background job processor",
"use_case": "debug_loop", // Uses deepseek-v4-pro[1m]
"allowed_dirs": ["src/jobs", "src/workers", "tests/integration"],
"validation_commands": [
"npm run test:memory-profile",
"npm run test:jobs"
],
"generated_paths": ["logs/memory_profile.txt"]
}
Documentation generation
javascript
{
"cwd": "/home/user/library",
"task": "Generate API documentation for the public interfaces",
"use_case": "docs_generation",
"allowed_dirs": ["docs/api", "src"],
"generated_paths": ["docs/api/generated"],
"validation_commands": ["npm run docs:validate"]
}

Workflow Patterns

Pattern 1: Start and check later
javascript
// 1. Start job
const startResult = await deepseek_start_implementation({
cwd: "/home/user/project",
task: "Implement user profile caching with Redis"
});
// 2. Do other Codex work...
// 3. Check status when needed
const status = await deepseek_get_job({
job_id: startResult.job_id
});
// 4. If completed, review changes
if (status.status === "completed") {
// Review status.files_changed, status.checks, status.policy
}
Pattern 2: Follow-up worker
javascript
// First job failed validation
const firstJob = await deepseek_get_job({ job_id: "dsw_first123" });
// status.checks shows test failure
// Start follow-up with context
await deepseek_start_implementation({
cwd: "/home/user/project",
task: `Fix the test failure from previous job dsw_first123.
Previous result: Tests failed with 'TypeError: Cannot read property id of undefined'.
Fix the null check in src/handlers/profile.js and ensure all tests pass.`,
use_case: "debug_loop",
allowed_dirs: ["src/handlers", "tests"],
validation_commands: ["npm test -- profile.test.js"]
});
Pattern 3: Tiny synchronous edit
javascript
// For obviously tiny changes, use synchronous mode
const result = await deepseek_implement_in_workspace({
cwd: "/home/user/project",
task: "Change the default port from 3000 to 8080 in config.js",
use_case: "fast_patch"
});
// Blocks until complete

Setup and Verification

Initial setup
bash
npm run mcp:setup

Interactively installs Claude Code if missing and prompts for DeepSeek key.

Health check
bash
npm run mcp:doctor

Expected output:

json
{
"server_version": "0.3.20-beta.38",
"claude_code_installed": true,
"claude_code_version": "1.2.3",
"deepseek_key_configured": true,
"ok": true
}

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/neversight/learn-skills.dev/deepseek-claude-code-worker-mcp/badge)](https://verified-skill.com/skills/neversight/learn-skills.dev/deepseek-claude-code-worker-mcp)

Something wrong with this skill or its page? Tell us.