UiPath Documentation
orchestrator
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Orchestrator 用户指南

上次更新日期 2026年4月17日

创建命令 MCP 服务器

  1. In the MCP Servers page, select Add MCP Server. The Add MCP Server window is displayed.
  2. From the top of the page, select the Command type.
  3. In the Name field, enter a name for the MCP Server.
    备注:

    The name is used as the actual slug for the Preview URL. Because of this, make sure that the name you provide respects the following validation criteria:

    • 名称必须符合 Regex 规则:/^[a-zA-Z0-0]+(?:[-]+[a-zA-Z0-0+)*$/
    • 值不得少于 3 个字符,不得超过 50 个字符。
  4. In the Preview URL, enter a name to preview the full URL.

The Preview URL uses the following format: https://cloud.uipath.com/<OrganizationName>/<TenantName>/agenthub_/mcp/<FolderID>/<MCPServerName>.

确保您拥有访问文件夹并在文件夹中创建 MCP 服务器的适当权限。

  1. Add a Description of the MCP Server.
  2. Add the Command for the external MCP Server.

您可以使用 npx 命令创建 Node.js 项目或使用 uvx 命令创建 Python 项目。命令必须可以在 MCP 服务器运行的环境中使用。

  1. Add the Arguments for the external MCP Server.

参数直接传递给可执行文件,通常包含脚本或包名称,以及 MCP 服务器所需的任何额外标志。

  1. Add the Environment Configuration for the MCP Server.

环境变量定义命令的运行方式,例如 API 密钥、端口或 runtime 选项。

备注:

When you add an environment variable including terms like secret, api_key, or token, the value is automatically masked in after saving. This is also applicable for assets of type Secret. The value remains securely stored and is only accessible to serverless robots running the MCP Server job.

  1. Select Add. The MCP Server is created and displayed on the MCP Servers page.

请检查以下命令 MCP 服务器示例。此示例使用 nxp 命令启动示例 MCP 服务器,使用生产环境变量在端口 3001 上进行侦听:

Command: npx
Arguments:
  @modelcontextprotocol/server-example
  --port
  3001
Environment Configuration:
  PORT=3001
  NODE_ENV=production
Command: npx
Arguments:
  @modelcontextprotocol/server-example
  --port
  3001
Environment Configuration:
  PORT=3001
  NODE_ENV=production

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新