Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions docs/en/use/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,22 @@ We extract the necessary information:
}
```

If the MCP server you need requires environment variables to configure something (e.g. access token), you could use the command-line tool `env`:
If the MCP server you need requires environment variables to configure something (e.g. access token), you could use the `env` field:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick (typo): Consider adding an article before "access token" for grammatical correctness.

Specifically, update "(e.g. access token)" to "(e.g. an access token)" for clarity.

Suggested change
If the MCP server you need requires environment variables to configure something (e.g. access token), you could use the `env` field:
If the MCP server you need requires environment variables to configure something (e.g. an access token), you could use the `env` field:


```json
{
"command": "env",
"command": "uv",
"args": [
"XXX_RESOURCE_FROM=local",
"XXX_API_URL=https://xxx.com",
"XXX_API_TOKEN=sk-xxxxx",
"uv",
"tool",
"run",
"xxx-mcp-server",
"--storage-path", "data/res"
]
],
"env": {
"XXX_RESOURCE_FROM": "local",
"XXX_API_URL": "https://xxx.com",
"XXX_API_TOKEN": "sk-xxxxx"
}
}
```

Expand Down
15 changes: 8 additions & 7 deletions docs/zh/use/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,22 @@ npx -v
}
```

如果要使用的 MCP 服务器需要通过环境变量配置 Token 等信息,可以使用 `env` 这个工具
如果要使用的 MCP 服务器需要通过环境变量配置 Token 等信息,可以使用 `env` 字段

```json
{
"command": "env",
"command": "uv",
"args": [
"XXX_RESOURCE_FROM=local",
"XXX_API_URL=https://xxx.com",
"XXX_API_TOKEN=sk-xxxxx",
"uv",
"tool",
"run",
"xxx-mcp-server",
"--storage-path", "data/res"
]
],
"env": {
"XXX_RESOURCE_FROM": "local",
"XXX_API_URL": "https://xxx.com",
"XXX_API_TOKEN": "sk-xxxxx"
}
}
```

Expand Down
Loading