Runs DeepSeek as a sandboxed sub-agent with its own tool loop inside Claude Code or Codex CLI.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
One-click editor setup isnโt available for this listing yet โ we donโt have a confirmed install command, and weโd rather show nothing than point your editor at the wrong package or host. Follow the projectโs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Deepseek As Subagent.
English ยท ็ฎไฝไธญๆ
Run DeepSeek as a real sub-agent inside Claude Code / Codex CLI โ not just an LLM endpoint. The host agent keeps the main conversation, planning, judgment, and verification. DeepSeek gets its own agent loop for execution-heavy work. Coding APIs use workspace-scoped writes and bounded trusted-host Bash; separate read-only APIs provide pure file analysis without command execution.
Coding Bash runs on the trusted host with cwd=workspace; it is bounded and
credential-isolated, but it is not an OS sandbox.
Python 3.10โ3.12 must already be installed. The installer never pipes a remote
bootstrap script into a shell. It installs the exact, hash-verified dependency
set in requirements.lock, registers the MCP server with Claude Code, deploys
protected generation copies of the skill + /ds slash command. It does not
modify shell startup files. Helper deployment is best-effort after the core MCP
registration commits; a foreign destination is preserved and reported.
After install, edit ~/.deepseek-mcp/config.json to paste your DeepSeek API
key on POSIX, or set DEEPSEEK_API_KEY on Windows (get one at
platform.deepseek.com). Then
run claude and try /ds inspect this workspace and summarize its structure.
To upgrade, fetch and inspect an explicit tag or commit, then re-run the local
installer. Coding always uses trusted_host; read-only APIs need neither Bash
nor Docker/Podman. For
Codex or other MCP clients, see Install below.
Most deepseek-mcp-server projects expose DeepSeek as a single LLM call (create_chat_completion, create_anthropic_message). The host has to read every file itself and feed content into the prompt โ DeepSeek only saves the "thinking" cost, not the "reading/writing" cost.
This project gives DeepSeek its own agent loop: tool dispatch, file I/O, optional command execution for coding, and multi-turn reasoning against the configured workspace. The host hands off a complete logical unit and gets a result back. Token savings are end-to-end.
delegate_to_deepseek / delegate_to_deepseek_readonlystart_deepseek / start_deepseek_readonly plus shared controlsagent_loop.py) with OpenAI-compatible function calling/ds command for delegation policy and forced delegationThe four delegation entry points accept one additive optional argument,
model="flash" | "pro". Existing calls that omit it remain valid and now default
to the Flash profile. Background-job and recovery tools remain additive.
Mutation-capable legacy hosts must adopt the recovery query/verify/ack handshake
before starting another delegation; read-only use needs no change.
Clients should not parse health/error text byte-for-byte because diagnostics are now more specific. Provider calls still
use DeepSeek's OpenAI-compatible Chat Completions API.
Local Python module signatures are implementation details rather than a stable
public API.
Then edit ~/.deepseek-mcp/config.json on POSIX, or set
DEEPSEEK_API_KEY on Windows.
See adapters/codex/README.md for the Codex-specific install, delegation policy, and background-job workflow.
The Claude and Codex installers build a fresh isolated runtime, validate its configuration and MCP protocol, and only then switch the host registration. They keep the active generation plus one previous generation for recovery. Any manual runtime must stay outside a delegated workspace when file-mutation tools are enabled; unsafe layouts are rejected at startup. Both installers serialize install/uninstall transactions. A hard-killed installer intentionally leaves an empty fail-closed lock that must be removed only after confirming no installer is running.
The MCP server itself is client-agnostic. Install requirements.lock with
pip --require-hashes, install this project with dependency resolution disabled,
then point your client's MCP config at the generated deepseek-mcp entrypoint.
Choose capability for the task's entire expected lifecycle first. Use read-only only when every expected step is static file analysis with Read, Glob, and Grepโno command execution. If any step might need Bash, tests, builds, lint, Git, program execution, dependency work, workspace mutation, or is not clearly read-only, choose coding.
Use a synchronous API when the task can run to completion without mid-flight intervention. The MCP request remains open until DeepSeek finishes:
delegate_to_deepseek(task, context, model="flash") for coding, Bash, tests,
or any task that might write the workspace.delegate_to_deepseek_readonly(task, context, model="flash") for static file
analysis only.model is optional and accepts only flash or pro. Omit it for normal work;
select pro explicitly for difficult debugging, architecture-level reasoning,
or when Flash has already proved insufficient. The host never passes a provider
model ID directly.
For longer tasks that may need new instructions or cancellation, choose the matching background API, then use the same controls for either job type:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pschina-deepseek-as-subagent)<a href="https://allmcps.com/mcp/pschina-deepseek-as-subagent"><img src="https://allmcps.com/api/badge/pschina-deepseek-as-subagent?style=directory" alt="Deepseek As Subagent on AllMCPs" /></a>