You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: translate configuration.md and mcp.md to English
These docs ship in Chinese only. This adds English translations
for the same content. Translation was done in DeepSeek web chat
(free, off-API) by a non-Chinese-speaking contributor — please
verify accuracy before merging.
|User settings file |`~/.deepcode/settings.json`| Applies to all Deep Code sessions for the current user.|
21
+
|Project settings file |`<project root>/.deepcode/settings.json`|Takes effect only when running Deep Code in that specific project. Project settings override user settings.|
22
22
23
-
### `settings.json` 中的可用设置
23
+
### Available Settings in `settings.json`
24
24
25
-
以下是 `settings.json` 支持的全部顶层字段,以及 `env` 内部支持的子字段:
25
+
The following are all the top-level fields supported in `settings.json`, along with the sub-fields inside `env`:
|`high`|Higher reasoning depth with relatively lower token usage|
65
65
66
-
#### `notify` — 任务完成通知
66
+
#### `notify` — Task Completion Notification
67
67
68
-
设置一个 Shell 脚本的完整路径。当 AI 助手完成一轮任务后,会自动执行该脚本,可用于发送通知(如 Slack 消息)。
68
+
Set a full path to a shell script. When the AI assistant finishes a round of tasks, the script is executed automatically, which can be used to send notifications (e.g., a Slack message).
69
69
70
70
```json
71
71
{
72
72
"notify": "/path/to/slack-notify.sh"
73
73
}
74
74
```
75
75
76
-
#### `webSearchTool` — 自定义联网搜索
76
+
#### `webSearchTool` — Custom Web Search
77
77
78
-
Deep Code 内置免费可用的 Web Search 工具。如果需要自定义搜索逻辑,可将 `webSearchTool`设为一个可执行脚本的完整路径:
78
+
Deep Code has a built-in, free-to-use Web Search tool. If you need custom search logic, set `webSearchTool`to the full path of an executable script:
79
79
80
80
```json
81
81
{
82
82
"webSearchTool": "/path/to/my-search-script.sh"
83
83
}
84
84
```
85
85
86
-
脚本接收一个搜索查询参数,输出 JSON 格式的结果供 AI 使用。
86
+
The script receives a search query as an argument and outputs results in JSON format for the AI.
Configuration for MCP (Model Context Protocol) servers. The value is a key-value pair, where the key is the service name and the value is a server configuration object.
|`args`| string[]|No| List of arguments passed to the command|
110
+
|`env`| object |No| Environment variables passed to the MCP server process|
111
111
112
-
> 当`command`为`npx` 时,Deep Code 会自动在参数前补充 `-y`。
112
+
> When`command`is`npx`, Deep Code automatically prepends `-y` to the arguments.
113
113
114
-
详细 MCP 使用说明请参考 [mcp.md](mcp.md)。
114
+
For detailed MCP usage instructions, refer to [mcp.md](mcp.md).
115
115
116
+
#### `debugLogEnabled` — Debug Log
116
117
117
-
#### `debugLogEnabled` — 调试日志
118
+
Set to `true` to enable detailed debug logging (default `false`), useful for troubleshooting API calls and tool execution.
118
119
119
-
设为 `true` 可让程序输出详细的调试日志(默认 `false`),用于排查 API 调用和工具执行的问题。
120
+
## Environment Variable Priority
120
121
121
-
## 环境变量优先级
122
+
Environment variables are a common way to configure applications, especially for sensitive information (such as api-key) or settings that may change between environments.
Environment variable priority follows the logic of “the more specific and localized the configuration, the higher the priority”, and the override rule of “env files protect existing environment by default, system variables override env files”. (The `env` object in settings.json can be thought of as a type of env file.)
1.`env` defined at the top level of `settings.json` – this is a general configuration for the entire tool and all its subprocesses (global variables). Can be overridden by outer environment variables, but the environment variable KEY has the `DEEPCODE_` prefix removed.
130
+
2.`env` defined inside `mcpServers` in `settings.json` – this is the most specific configuration for a particular MCP service (local variables). Can be overridden by outer environment variables, but the KEY has the `MCP_` prefix removed.
131
+
3. Shell/system environment variables – operating system level.
0 commit comments