fix(docs): locale translations for nav elements and headings

This commit is contained in:
Adam
2026-02-11 18:51:27 -06:00
parent 8eea53a41e
commit aea68c386a
484 changed files with 12718 additions and 11212 deletions

View File

@@ -1,5 +1,5 @@
---
title: MCP服务器
title: MCP 服务器
description: 添加本地和远程MCP工具。
---
@@ -9,7 +9,7 @@ description: 添加本地和远程MCP工具。
---
#### 注意事
#### 注意事
当您使用 MCP 服务器时,它会添加到上下文中。如果您有很多工具,这会很快增加。因此,我们建议您选择使用哪些 MCP 服务器。
@@ -21,7 +21,7 @@ MCP服务器会添加到您的上下文中因此您需要小心启用哪些
---
## 使能夠
## 启用
您可以在`mcp`下的[opencode配置](https://opencode.ai/docs/config/)中定义MCP服务器。为每个MCP添加唯一的名称。当提示LLM时您可以通过名称引用该MCP。
@@ -44,7 +44,7 @@ MCP服务器会添加到您的上下文中因此您需要小心启用哪些
---
### 覆盖程默
### 覆盖程默
组织可以通过其 `.well-known/opencode` 端点提供默认的 MCP 服务器。这些服务器可能默认被禁用,允许用户选择他们需要的服务器。
@@ -67,7 +67,7 @@ MCP服务器会添加到您的上下文中因此您需要小心启用哪些
---
## 当地的
## 本地
使用`type`将本地MCP服务器添加到MCP对像中的`"local"`。
@@ -112,11 +112,11 @@ use the mcp_everything tool to add the number 3 and 4
---
#### 選項
#### 选项
以下是配置本地 MCP 服务器的所有选项。
| 選項 | 型 | 必填 | 描述 |
| 选项 | 型 | 必填 | 描述 |
| ------------- | ------ | ---- | -------------------------------------------------------------- |
| `type` | 字符串 | 是 | MCP 服务器连接类型,必须是`"local"`。 |
| `command` | 数据库 | 是 | 运行 MCP 服务器的命令和参数。 |
@@ -126,7 +126,7 @@ use the mcp_everything tool to add the number 3 and 4
---
## 偏僻的
## 远程
通过将`type`设置为ZZPH1Z添加远程MCP服务器。
@@ -150,9 +150,9 @@ use the mcp_everything tool to add the number 3 and 4
---
#### 選項
#### 选项
| 選項 | 型 | 必填 | 描述 |
| 选项 | 型 | 必填 | 描述 |
| ---------- | ------ | ---- | -------------------------------------------------------------- |
| `headers` | 字符串 | 是 | MCP 服务器连接类型,必须是`type`。 |
| `"remote"` | 字符串 | 是 | 远程 MCP 服务器的 URL。 |
@@ -163,7 +163,7 @@ use the mcp_everything tool to add the number 3 and 4
---
## 開放認證
## OAuth
opencode自动处理远程MCP服务器的OAuth身份验证。当服务器需要身份验证时opencode将
@@ -173,7 +173,7 @@ opencode自动处理远程MCP服务器的OAuth身份验证。当服务器需要
---
### 自动
### 自动
对于大多数支持 OAuth 的 MCP 配置服务器,不需要特殊配置。只需远程服务器:
@@ -193,7 +193,7 @@ opencode自动处理远程MCP服务器的OAuth身份验证。当服务器需要
---
### 預登記
### 预注册
如果您有来自MCP服务器强大的客户端则可以配置它们
@@ -216,7 +216,7 @@ opencode自动处理远程MCP服务器的OAuth身份验证。当服务器需要
---
### 正在驗證
### 身份验证
您可以手动觸發身份验证或管理憑據。
@@ -266,14 +266,14 @@ opencode mcp logout my-oauth-server
#### OAuth 选项
| 選項 | 型 | 描述 |
| 选项 | 型 | 描述 |
| -------------- | --------------- | --------------------------------------------------- |
| `false` | 对象 \| `oauth` | OAuth 配置对象,或 `false` 以取消 OAuth 自动检测。 |
| `clientId` | 字符串 | OAuth 客户端 ID。如果未提供将尝试动态客户端注册。 |
| `clientSecret` | 字符串 | OAuth客户端密钥如果需要授权服务器。 |
| `scope` | 字符串 | 授权期间请求的 OAuth 范围。 |
#### 偵錯
#### 调试
如果远程MCP服务器无法进行身份验证您可以通过以下方式诊断问题
@@ -295,7 +295,7 @@ opencode mcp debug my-oauth-server
---
### 全球的
### 全
这意味著您可以全局启用或禁用它們。