这份文档真正覆盖什么
MCP 文档说明了外部工具和服务器能力,如何在 DeepSeek TUI 工作流里被暴露、配置和约束。
怎么用这页
- 先看右侧目录,直接跳到你当前最关心的小节。
- 如果你只是来解决具体问题,优先读正文里的相关标题,再回站内对应 hub。
- 如果你要核对原始来源,可以直接打开 GitHub 原文链接。
MCP 文档说明了外部工具和服务器能力,如何在 DeepSeek TUI 工作流里被暴露、配置和约束。
MCP 文档说明了外部工具和服务器能力,如何在 DeepSeek TUI 工作流里被暴露、配置和约束。
DeepSeek TUI can load additional tools via MCP (Model Context Protocol). MCP servers are local processes that the TUI starts and communicates with over stdio.
Browsing note:
web.run is the canonical built-in browsing tool.web_search remains available as a compatibility alias for older prompts and integrations.Server mode note:
deepseek-tui serve --mcp runs the MCP stdio server.deepseek-tui serve --http runs the runtime HTTP/SSE API (separate mode).deepseek dispatcher exposes deepseek mcp-server as an equivalent stdio entrypoint used by the split CLI.Create a starter MCP config at your resolved MCP path:
deepseek-tui mcp init
deepseek-tui setup --mcp performs the same MCP bootstrap alongside skills setup.
Common management commands:
deepseek-tui mcp list
deepseek-tui mcp tools [server]
deepseek-tui mcp add <name> --command "<cmd>" --arg "<arg>"
deepseek-tui mcp add <name> --url "http://localhost:3000/mcp"
deepseek-tui mcp enable <name>
deepseek-tui mcp disable <name>
deepseek-tui mcp remove <name>
deepseek-tui mcp validate
Inside the interactive TUI, /mcp opens a compact manager for the resolved MCP config path. It shows each configured server, whether it is enabled or disabled, its transport, command or URL, timeout values, connection errors, and discovered tools/resources/prompts when discovery has been run.
Supported in-TUI actions:
/mcp init
/mcp init --force
/mcp add stdio <name> <command> [args...]
/mcp add http <name> <url>
/mcp enable <name>
/mcp disable <name>
/mcp remove <name>
/mcp validate
/mcp reload
/mcp validate and /mcp reload reconnect for UI discovery and refresh the manager snapshot. Config edits made from the TUI are written immediately, but the model-visible MCP tool pool is not hot-reloaded; the manager marks this as restart-required until the TUI is restarted.
Default path:
~/.deepseek/mcp.jsonOverrides:
mcp_config_path = "/path/to/mcp.json"DEEPSEEK_MCP_CONFIG=/path/to/mcp.jsondeepseek-tui mcp init (and deepseek-tui setup --mcp) writes to this resolved path.
The interactive /config editor also exposes mcp_config_path. Changing it in the TUI updates the path used by /mcp, and requires a restart before the model-visible MCP tool pool is rebuilt.
After editing the file or changing mcp_config_path, restart the TUI.
Discovered MCP tools are exposed to the model as:
mcp_<server>_<tool>Example: a server named git with a tool named status becomes mcp_git_status.
The command palette includes MCP entries grouped by server. It shows disabled and failed servers instead of hiding them, and uses the same runtime tool names shown to the model.
The CLI also exposes helper tools when MCP is enabled:
list_mcp_resources (optional server filter)list_mcp_resource_templates (optional server filter)mcp_read_resource / read_mcp_resource (aliases)mcp_get_prompt{
"timeouts": {
"connect_timeout": 10,
"execute_timeout": 60,
"read_timeout": 120
},
"servers": {
"example": {
"command": "node",
"args": ["./path/to/your-mcp-server.js"],
"env": {},
"disabled": false
}
}
}
You can also use mcpServers instead of servers for compatibility with other clients.
You can register your local DeepSeek binary as an MCP server so other DeepSeek sessions (or any MCP client) can call its tools.
deepseek-tui mcp add-self
This resolves the current binary path, generates a config entry that runs deepseek-tui serve --mcp, and writes it to your MCP config file. The default server name is deepseek.
Options:
--name <NAME> — custom server name (default: deepseek)--workspace <PATH> — workspace directory for the serverEquivalent manual entry in ~/.deepseek/mcp.json:
{
"servers": {
"deepseek": {
"command": "/path/to/deepseek",
"args": ["serve", "--mcp"],
"env": {}
}
}
}
The deepseek-tui binary supports serve --mcp directly. The deepseek dispatcher offers the equivalent deepseek mcp-server stdio entrypoint. Use whichever is on your PATH (run which deepseek or which deepseek-tui to find the full path). The mcp add-self command automatically resolves the correct binary.
command must exist and be executable.Tools from a self-hosted DeepSeek server follow the standard naming convention:
mcp_deepseek_<tool> (if the server is named deepseek)For example, the shell tool becomes mcp_deepseek_shell.
deepseek-tui serve --mcp | deepseek-tui serve --http | deepseek-tui serve --acp | |
|---|---|---|---|
| Protocol | MCP stdio | HTTP/SSE JSON-RPC | ACP stdio |
| Use case | Tool server for MCP clients | Runtime API for apps | Editor agent for Zed/custom ACP clients |
| Config | ~/.deepseek/mcp.json entry | Direct URL connection | Editor agent_servers custom command |
| Lifecycle | Spawned per client session | Long-running daemon | Spawned per editor agent session |
Use mcp add-self when you want DeepSeek tools available to other MCP clients. Use serve --http when building applications that consume the API directly. Use serve --acp when an editor wants to talk to DeepSeek as an ACP agent.
After adding, test the connection:
deepseek-tui mcp validate
deepseek-tui mcp tools deepseek
Per-server settings:
command (string, required)args (array of strings, optional)env (object, optional)connect_timeout, execute_timeout, read_timeout (seconds, optional)disabled (bool, optional)enabled (bool, optional, default true)required (bool, optional): startup/connect validation fails if this server cannot initialize.enabled_tools (array, optional): allowlist of tool names for this server.disabled_tools (array, optional): denylist applied after enabled_tools.MCP tools now flow through the same tool-approval framework as built-in tools. Read-only MCP helpers (resource/prompt listing and reads) can run without prompts in suggestive approval modes, while side-effectful MCP tools require approval.
You should still only configure MCP servers you trust, and treat MCP server configuration as equivalent to running code on your machine.
deepseek-tui doctor to confirm the MCP config path it resolved and whether it exists./mcp validate to refresh the visible server/tool snapshot.deepseek-tui mcp init --force to regenerate it.tools/list.