From 684c25341849d08d9c2527202b41f6aec3665104 Mon Sep 17 00:00:00 2001 From: NayukiMeko Date: Wed, 3 Jun 2026 23:55:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(mcp):=20=E4=BF=AE=E6=94=B9=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=20-=20=E5=B0=86=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=B7=A5=E5=85=B7=E4=BB=8E=20`env`=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20`uv`=20=E5=AD=97=E6=AE=B5=20-=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20JSON=20=E6=A0=BC=E5=BC=8F=E4=BB=A5=E5=8C=85?= =?UTF-8?q?=E5=90=AB=20`env`=20=E5=AD=97=E6=AE=B5=20-=20=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?=20MCP=20=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=9A=84=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE=E6=9B=B4=E5=8A=A0=E6=B8=85?= =?UTF-8?q?=E6=99=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/use/mcp.md | 15 ++++++++------- docs/zh/use/mcp.md | 15 ++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) 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" + } } ```