{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"MCP概述"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"mcp概述","__idx":0},"children":["MCP概述"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["通过MoreLogin MCP（模型上下文协议），您可以使用",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["自然语言对话"]},"直接从AI工具（例如Claude、Cursor）控制MoreLogin，无需编写一行代码即可实现自动化。"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"概述","__idx":1},"children":["概述"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["它适合谁？"]}," ","AI 开发人员、提示工程师和 LLM 工具（如 Cursor、Claude）的用户希望指示 AI 代理代表他们执行浏览器任务。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["它能做什么？"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["浏览器管理"]},"：指示 AI 创建、启动、关闭或删除浏览器。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["页内自动化"]},"：告诉 AI 访问网页、输入文本、单击元素、提取数据或在打开的浏览器中截取屏幕截图。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["支持的人工智能工具（客户端）"]}," ","任何支持模型上下文协议 (MCP) 作为客户端的工具都可以连接到 MoreLogin MCP 服务器。经过验证的工具包括："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cursor"]},"（AI 代码编辑器）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Claude Desktop"]},"（Anthropic 的桌面应用程序）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Claude Code"]},"（Anthropic 的 CLI 代理）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cline / Roo Code"]},"（VS Code 扩展）"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"权限与安全","__idx":2},"children":["权限与安全"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MCP 服务器与 MoreLogin 桌面客户端一起在您的计算机上本地运行。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["仅限本地控制"]},"：MCP 服务器仅在本地 MoreLogin 客户端上执行命令。它不会将您的浏览器暴露给公共互联网。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["代理权限"]},"：当您将 AI 代理连接到 MCP 服务器时，代理将获得创建、修改和删除本地浏览器环境以及与活动网页交互的能力。在批准人工智能提出的行动之前，请务必先对其进行审查。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"配置字段解释","__idx":3},"children":["配置字段解释"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["从 MoreLogin 客户端复制 MCP 配置时，它通常包含以下字段："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["command"]}]},"：运行 MCP 服务器的可执行文件（例如，",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["node"]}," 或捆绑可执行文件的路径）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["args"]}]},"：传递给命令的参数，指定 MCP 服务器脚本的路径和任何必要的标志。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["env"]}]}," （可选）：服务器使用本地 MoreLogin 客户端实例进行身份验证所需的环境变量（例如本地 API 端口或令牌）。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"能力映射公开工具","__idx":4},"children":["能力映射（公开工具）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["配置完成后，MCP 服务器会向 AI 代理公开特定的“工具”。人工智能将根据您的自然语言提示自动选择正确的工具。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类别"},"children":["类别"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"AI 可用的示例工具"},"children":["AI 可用的示例工具"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["浏览器环境管理"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["create_profile"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_profile"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["close_profile"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["delete_profile"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["页内自动化"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["visit_url"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["click_element"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type_text"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["evaluate_js"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["screenshot"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"故障排除","__idx":5},"children":["故障排除"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["找不到服务器/连接被拒绝"]},"：确保 MoreLogin 桌面客户端 (v2.50.0+) 当前正在运行。 MCP 服务器依赖于本地 MoreLogin 应用程序。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["工具执行失败"]},"：如果 AI 代理无法执行页内操作（如 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["click_element"]},"），则该元素可能未完全加载。让人工智能等待几秒钟或使用更广泛的选择器。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["配置丢失"]},"：如果您重新启动 PC，请确保在提示您的 AI 代理之前*启动 MoreLogin，以便可以建立 MCP 连接。"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"快速设置指南","__idx":6},"children":["快速设置指南"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["请在下面选择您的 AI 代理以获取详细的设置说明："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/mcp/cursor"},"children":["Cursor 设置指南"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/mcp/claude-desktop"},"children":["Claude 桌面设置指南"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/mcp/cli-agents"},"children":["CLI 代理 (Claude Code、Cline) 设置指南"]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"自适应人工智能引擎可选","__idx":7},"children":["自适应人工智能引擎（可选）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["当自动化流程复杂或页面结构发生变化并破坏现有流程时，您可以配置 AI 模型并启用自适应引擎。它实时调整策略并适应页面变化，因此自动化保持可靠。"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["使用时机"]},"：页面结构经常变化，动态元素较多，或者需要灵活处理边缘情况。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image12.ba6f4e786bb1900f8aa72ff1e08bbc73cc273f99d1c4a4b8aef970bd99fd7e3a.7a10ccc4.png","alt":"自适应 AI 引擎"},"children":[]}]}]},"headings":[{"value":"MCP概述","id":"mcp概述","depth":1},{"value":"概述","id":"概述","depth":2},{"value":"权限与安全","id":"权限与安全","depth":2},{"value":"配置字段解释","id":"配置字段解释","depth":2},{"value":"能力映射（公开工具）","id":"能力映射公开工具","depth":2},{"value":"故障排除","id":"故障排除","depth":2},{"value":"快速设置指南","id":"快速设置指南","depth":2},{"value":"自适应人工智能引擎（可选）","id":"自适应人工智能引擎可选","depth":1}],"frontmatter":{"seo":{"title":"MCP概述"}},"lastModified":"2026-09-02T11:22:17.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/mcp/overview","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}