{
  "title": "MCP",
  "subtitle": "管理 MCP 服务器连接",
  "section": {
    "serverList": {
      "title": "MCP 服务列表",
      "description": "统一管理 MCP 服务状态与 JSON 配置。"
    }
  },
  "tabs": {
    "servers": "服务器",
    "add": "添加服务器"
  },
  "server": {
    "id": "服务器ID",
    "idPlaceholder": "github-mcp",
    "idHint": "服务器ID是唯一标识符，不可重复",
    "name": "服务器名称",
    "namePlaceholder": "GitHub MCP Server",
    "type": "服务器类型",
    "typeLocal": "本地进程",
    "typeRemote": "远程服务",
    "typeContainer": "容器服务",
    "command": "启动命令",
    "commandPlaceholder": "node",
    "commandHint": "例如: node, python, npx 等",
    "args": "命令参数（每行一个）",
    "argsPlaceholder": "server.js\n--port\n3000",
    "argsHint": "每行一个参数",
    "env": "环境变量",
    "envPlaceholder": "JSON 格式，例如: {\"KEY\": \"value\"}",
    "url": "服务器URL",
    "urlPlaceholder": "http://localhost:3000",
    "enabled": "启用此服务器",
    "autoStart": "应用启动时自动运行",
    "transport": "传输方式",
    "statusDetail": "状态详情",
    "remoteUrl": "远程地址",
    "remoteAuth": "认证状态",
    "remoteAuthConfigured": "已配置",
    "remoteAuthConfiguredWithSource": "已通过 {{source}} 配置",
    "remoteAuthMissing": "未配置",
    "remoteOAuthReady": "已配置 OAuth，等待授权",
    "remoteAuthMethod": "认证方式",
    "remoteAuthMethodOAuthXaa": "已配置 OAuth，预留 XAA",
    "remoteAuthMethodOAuth": "OAuth",
    "remoteAuthMethodXaa": "XAA",
    "remoteOAuthIdle": "尚未开始",
    "remoteOAuthAwaitingBrowser": "等待打开浏览器",
    "remoteOAuthAwaitingCallback": "等待提供方回调",
    "remoteOAuthExchangingToken": "正在交换授权码",
    "remoteOAuthAuthorized": "已授权",
    "remoteOAuthFailed": "失败",
    "remoteOAuthCancelled": "已取消",
    "runtime": {
      "source": "来源",
      "path": "解析路径",
      "available": "命令可用",
      "unavailable": "命令不可用",
      "managed": "托管运行时",
      "system": "系统环境",
      "unknown": "未知",
      "unsupportedReason": "不可用原因",
      "unsupportedRemoteSse": "暂不支持远程 MCP SSE 传输"
    },
    "authSource": {
      "headers": "请求头",
      "env": "环境变量",
      "oauth": "OAuth"
    }
  },
  "status": {
    "uninitialized": "未初始化",
    "starting": "启动中",
    "connected": "已连接",
    "healthy": "健康",
    "needsAuth": "需要认证",
    "reconnecting": "重连中",
    "failed": "失败",
    "stopping": "停止中",
    "stopped": "已停止",
    "disconnected": "已断开",
    "connecting": "连接中",
    "error": "错误"
  },
  "actions": {
    "add": "添加服务器",
    "addFirst": "添加第一个服务器",
    "edit": "编辑",
    "editServer": "编辑服务器",
    "addServer": "添加服务器",
    "delete": "删除",
    "start": "启动",
    "stop": "停止",
    "restart": "重启",
    "refresh": "刷新",
    "save": "保存",
    "saveConfig": "保存配置",
    "cancel": "取消",
    "cancelAdd": "取消添加",
    "close": "关闭",
    "backToList": "返回列表",
    "jsonConfig": "JSON 配置",
    "remoteAuth": "远程认证",
    "startRemoteOAuth": "通过 OAuth 连接",
    "restartRemoteOAuth": "重新发起 OAuth",
    "reconnectRemoteOAuth": "重新通过 OAuth 连接",
    "cancelRemoteOAuth": "取消 OAuth",
    "saveRemoteAuth": "保存并重连"
  },
  "search": {
    "placeholder": "搜索服务器..."
  },
  "empty": {
    "noServers": "暂无配置的 MCP 服务器",
    "noServersHint": "添加 MCP 服务器以扩展功能",
    "noMatchingServers": "没有找到匹配的服务器"
  },
  "loading": "加载中...",
  "labels": {
    "type": "类型",
    "enabled": "启用",
    "autoStart": "自动启动",
    "status": "状态",
    "yes": "是",
    "no": "否"
  },
  "modal": {
    "remoteAuthTitle": "远程认证：{{serverName}}",
    "remoteOAuthHint": "使用 OAuth 连接这个远程 MCP 服务器。Sparo OS 会监听一个本地回调地址，并在授权完成后重新连接该服务器。",
    "remoteOAuthCurrentStatus": "OAuth 状态：{{status}}",
    "remoteOAuthRedirectUri": "回调地址：{{redirectUri}}",
    "remoteOAuthStatus": "OAuth 详情：{{status}} - {{message}}",
    "remoteAuthHint": "粘贴 Bearer token 或完整的 Authorization 请求头值。保存后会重启远程 MCP 服务器。",
    "remoteAuthServerUrl": "服务器地址：{{url}}",
    "remoteAuthPlaceholder": "Bearer eyJ... 或 eyJ..."
  },
  "jsonEditor": {
    "title": "MCP JSON 配置",
    "hint1": "使用标准 Cursor 格式的 MCP 配置。配置将自动保存到用户目录下的 app.json 文件中。",
    "hint2": "格式说明：可以省略 type 字段。提供 \"command\" 时按 stdio（本地进程）解析；提供 \"url\" 时按 sse（远程服务）解析。也可显式设置 type=\"stdio\"/\"sse\" 以保持兼容。",
    "lintLocation": "（第 {{line}} 行，第 {{column}} 列）",
    "lintError": "JSON 有语法错误{{location}}：{{message}}",
    "exampleTitle": "配置示例：",
    "localProcess": "本地进程（stdio）：",
    "remoteService": "远程服务（sse）："
  },
  "resourceBrowser": {
    "title": "MCP 资源",
    "actions": {
      "refresh": "刷新",
      "close": "关闭"
    },
    "search": {
      "placeholder": "搜索资源..."
    },
    "loading": {
      "resources": "正在加载资源...",
      "content": "正在加载内容..."
    },
    "empty": {
      "noMatch": "未找到资源",
      "noResources": "暂无资源",
      "selectToView": "选择资源以查看内容"
    },
    "errors": {
      "loadContentFailed": "加载资源内容失败",
      "binaryContent": "二进制资源内容无法在此预览"
    },
    "mockContent": "# {{name}}\n\n这是 {{uri}} 的内容\n\nLorem ipsum dolor sit amet..."
  },
  "messages": {
    "addSuccess": "服务器添加成功",
    "addFailed": "添加服务器失败",
    "deleteSuccess": "服务器已删除",
    "deleteFailed": "删除服务器失败",
    "deleteConfirm": "确定要删除这个 MCP 服务器吗？\n\n注意：删除后配置无法恢复。",
    "startSuccess": "服务器 \"{{serverId}}\" 已启动",
    "startFailed": "启动服务器 \"{{serverId}}\" 失败",
    "stopSuccess": "服务器 \"{{serverId}}\" 已停止",
    "stopFailed": "停止服务器 \"{{serverId}}\" 失败",
    "restartSuccess": "服务器 \"{{serverId}}\" 已重启",
    "restartFailed": "重启服务器 \"{{serverId}}\" 失败",
    "saveSuccess": "MCP 配置已保存并生效",
    "saveFailed": "配置保存失败",
    "partialStartFailed": "配置已保存，但部分服务器启动失败。请检查服务器配置是否正确。",
    "serverSaved": "服务器 \"{{name}}\" 已保存",
    "jsonError": "JSON 格式错误",
    "nameRequired": "请输入服务器名称",
    "idRequired": "请输入服务器 ID",
    "commandRequired": "本地进程类型的服务器必须提供启动命令",
    "urlRequired": "远程服务类型的服务器必须提供服务器地址",
    "validationFailed": "校验失败",
    "commandUnavailable": "服务器 \"{{serverId}}\" 的命令不可用，请检查运行时安装或命令配置。",
    "remoteOAuthAuthorized": "服务器 \"{{serverId}}\" 的 OAuth 已连接。",
    "remoteOAuthFailed": "服务器 \"{{serverId}}\" 的 OAuth 连接失败。",
    "remoteAuthRequired": "请提供 Bearer token 或完整的 Authorization 请求头值。",
    "remoteAuthUpdated": "已更新服务器 \"{{serverId}}\" 的远程认证。",
    "remoteOAuthStarted": "已为服务器 \"{{serverId}}\" 打开 OAuth 登录。"
  },
  "errors": {
    "unknownError": "未知错误",
    "jsonFormatError": "JSON 格式错误",
    "configStructureError": "配置结构错误",
    "serverConfigError": "服务器配置错误",
    "permissionError": "文件权限错误",
    "fileOperationError": "文件操作失败",
    "resourceNotFound": "资源不存在",
    "serverStartError": "服务器启动失败",
    "operationFailed": "{{context}}失败",
    "suggestions": {
      "jsonFormat": [
        "使用在线 JSON 验证工具检查格式",
        "确保所有字符串使用双引号",
        "检查是否有多余的逗号",
        "确认所有括号正确闭合"
      ],
      "configStructure": [
        "检查配置是否包含 \"mcpServers\" 字段",
        "确保 \"mcpServers\" 是一个对象类型",
        "参考界面中的配置示例"
      ],
      "serverConfig": [
        "提供 command（stdio）或 url（sse）字段",
        "args 必须是数组格式",
        "env 必须是对象格式"
      ],
      "permission": [
        "以管理员身份运行应用",
        "检查配置文件的访问权限",
        "确认杀毒软件没有阻止文件写入"
      ],
      "fileOperation": [
        "检查磁盘空间是否充足",
        "确认配置目录存在且可访问",
        "尝试重启应用"
      ],
      "serverStart": [
        "检查命令路径是否正确",
        "确认所需的运行环境已安装（如 Node.js）",
        "查看环境变量配置是否正确",
        "检查端口是否被占用"
      ],
      "default": [
        "检查网络连接",
        "尝试重新操作",
        "查看日志获取更多信息",
        "如果问题持续，请联系技术支持"
      ]
    },
    "jsonParseError": "JSON 格式错误：{{message}}\n\n请检查：\n• 所有键名和字符串值都用双引号包围\n• 没有多余的逗号\n• 所有括号正确闭合",
    "mcpServersRequired": "配置必须包含 \"mcpServers\" 字段\n\n正确格式：\n{\n  \"mcpServers\": {\n    \"server-name\": { ... }\n  }\n}",
    "mcpServersMustBeObject": "\"mcpServers\" 必须是一个对象（不能是数组或其他类型）\n\n正确格式：\n\"mcpServers\": {\n  \"server-id\": {...}\n}",
    "deleteServerFailed": "删除服务器 \"{{serverId}}\" 失败：{{message}}"
  },
  "notifications": {
    "startSuccess": "启动成功",
    "startFailed": "启动失败",
    "stopSuccess": "停止成功",
    "stopFailed": "停止失败",
    "restartSuccess": "重启成功",
    "restartFailed": "重启失败",
    "saveSuccess": "保存成功",
    "saveFailed": "保存失败",
    "deleteSuccess": "删除成功",
    "deleteFailed": "删除失败",
    "operationFailed": "操作失败",
    "partialStartFailed": "部分服务器启动失败",
    "suggestionPrefix": "建议："
  }
}
