diff --git a/docs/en/use/mcp.md b/docs/en/use/mcp.md index a2b95f5622..0875e59e7c 100644 --- a/docs/en/use/mcp.md +++ b/docs/en/use/mcp.md @@ -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: ```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" + } } ``` diff --git a/docs/zh/use/mcp.md b/docs/zh/use/mcp.md index 79e3757fda..c4a7278781 100644 --- a/docs/zh/use/mcp.md +++ b/docs/zh/use/mcp.md @@ -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" + } } ```