UU

uipath/uipath-mcp-python

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

12 stars 7 forks 质量 75 趋势 28MIT

在 UiPath 内构建和主机编码 MCP 服务器

概览

一个Python SDK,它能够托管UiPath平台上的本地MCP服务器. 检查我们的样本目录,探索各种 MCP 服务器执行. 也可以学习如何在UiPath内部用Go等语言书写的二进制服务器进行打包和托管. SDK还提供了一个命令行接口,用于创建,包装,并部署基于Python的MCP服务器: 此命令打开浏览器进行认证, 并创建/ 更新您的 . env 文件, 并附带适当的证书 。 为您的工程创建 ipath.json 配置文件 。 如果不提供[SERVER],它将为mcp.json文件中定义的每个MCP服务器创建一个切入点. 将您的 MCP 服务器包成可部署到 UiPath 的. nupkg 文件 。 您的 pyproject.toml 必须包括: - 描述字段( 避免字符 : &, ", '; " ) - 作者信息 向您的 UiPath Orchestrator 发布最近创建的软件包 .

概述(AI 翻译)

一个Python SDK,它能够托管UiPath平台上的本地MCP服务器.

检查我们的样本目录,探索各种 MCP 服务器执行. 也可以学习如何在UiPath内部用Go等语言书写的二进制服务器进行打包和托管.

□ 安装

使用 [[T0] :

□ 配置

QQ 服务器定义

创建 [[T1] 文件 :

□命令行接口(CLI)

SDK还提供了一个命令行接口,用于创建,包装,并部署基于Python的MCP服务器:

认证

此命令打开一个用于认证的浏览器, 并创建/更新您的[ [T2] 文件, 并附有适当的证书 。

初始化项目

为您的工程创建一个 uipath.json 配置文件 。 如果不提供[SERVER],它将为[[T4]文件所定义的每个MCP服务器创建一个切入点.

QQ 调试工程

启动本地 MCP 服务器

QQ 软件包项目

将您的 MCP 服务器包成一个 .nupkg 文件, 可以部署到 UiPath 。

** 注:** 你的pyproject.toml必须包括:

  • 描述字段(所避免的字符: &, ", ', ";)
  • 作者资料

示例

QQ 发布软件包

本页由 AI 翻译,技术细节请以原文为准。

README

UiPath MCP Python SDK

A Python SDK that enables hosting local MCP servers on UiPath Platform.

Check out our samples directory to explore various MCP server implementations. You can also learn how to pack and host binary servers written in languages like Go within UiPath.

Installation

pip install uipath-mcp

using uv:

uv add uipath-mcp

Configuration

Servers Definition

Create the mcp.json file:

{
  "servers": {
    "my-python-server": {
        "type": "stdio",
        "command": "python",
        "args": ["server.py"]
    },
  }
}

Command Line Interface (CLI)

The SDK also provides a command-line interface for creating, packaging, and deploying Python-based MCP servers:

Authentication

uipath auth

This command opens a browser for authentication and creates/updates your .env file with the proper credentials.

Initialize a Project

uipath init [SERVER]

Creates a uipath.json configuration file for your project. If [SERVER] is not provided, it will create an entrypoint for each MCP server defined in the mcp.json file.

Debug a Project

uipath run [SERVER]

Starts the local MCP Server

Package a Project

uipath pack

Packages your MCP Server into a .nupkg file that can be deployed to UiPath.

Note: Your pyproject.toml must include:

  • A description field (avoid characters: &, , ", ', ;)
  • Author information

Example:

description = "Your package description"
authors = [{name = "Your Name", email = "[email protected]"}]

Publish a Package

uipath publish

Publishes the most recently created package to your UiPath Orchestrator.

Project Structure

To properly use the CLI for packaging and publishing, your project should include:

  • A pyproject.toml file with project metadata
  • A mcp.json file with servers metadata
  • A uipath.json file (generated by uipath init)
  • Any Python files needed for your automation

Development

Setting Up a Development Environment

Please read our contribution guidelines before submitting a pull request.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →