Skip to main content
Glama
RoboParty MCP

RoboParty MCP

Official
by Roboparty

RoboParty MCP

一个 MCP 入口,连接文档、控制与 System-1。

把 RoboParty 的文档检索、机器人控制和 Laya 决策分析统一成一套命名空间工具,供 Claude Code、Cursor、Codex 等 MCP 客户端直接调用。

License Release Node MCP npmjs


为什么需要统一入口?

RoboParty 的能力原本分散在三个 MCP 中。roboparty-mcp 把它们收进一个 npm 包、一个 stdio 入口:

  • 一个客户端配置:只注册一个 MCP server。

  • 统一工具命名:docs_*、control_*、system1_*,路由清晰。

  • 凭据隔离:只有控制子进程能看到 rp_server token。

  • 按需启用:只开文档、只开控制,或三个全开。

  • 可独立演进:三个子服务仍是独立进程,代码和生命周期互不耦合。

Related MCP server: boop-mcp-rag

三个子服务

子服务

工具前缀

运行时

能力

文档 MCP

docs_*

Node

检索官方文档、RP1 GitHub 文档、目录与页面

控制 MCP

control_*

Python 子进程

经 rp_server protocol v2 读取状态、控制与遥测

System-1 MCP

system1_*

Node

本地 Laya ONNX 决策分析

flowchart LR
    C[MCP Client] -->|stdio| U[roboparty-mcp]
    U --> D[docs child<br/>Node]
    U --> P[control child<br/>Python]
    U --> S[system1 child<br/>Node + Laya]
    D --> DOCS[官方文档 / GitHub]
    P --> R[rp_server]
    S --> M[Local ONNX model]

举个例子

docs_search_docs          → 查官方文档
docs_get_page             → 打开原文
control_get_imu           → 读取 IMU
control_get_battery       → 读取电池
control_policy_start      → 启动策略(需可写配置与 lease)
system1_laya_analyze      → 让 Laya 分析当前局面

原工具名、参数和返回结构保持不变,只在前面增加子服务前缀。

安装

npm(待发布)

npm install -g roboparty-mcp

当前公共 npm 源尚未发布,请先用下面的 GitHub Release 安装包。

GitHub Release 安装包

如果暂时不使用 npm,可以从 Release 下载 .tgz 后本地安装:

gh release download --repo Roboparty/roboparty_mcp \
  --pattern 'roboparty-mcp-*.tgz' --dir /tmp/roboparty-mcp

npm install -g /tmp/roboparty-mcp/roboparty-mcp-*.tgz

从源码运行

git clone https://github.com/Roboparty/roboparty_mcp.git
cd roboparty_mcp
npm ci --ignore-scripts
npm run build
node src/index.mjs --check

公共 npm 源发布尚未启用;优先使用 Release 安装包。

快速开始

# 全部子服务
roboparty-mcp

# 只启用文档与 System-1
roboparty-mcp --profile docs,system1

# 只启用控制
roboparty-mcp --profile control

# 检查子进程和工具列表
roboparty-mcp --check

MCP 客户端配置示例:

{
  "mcpServers": {
    "roboparty": {
      "command": "npx",
      "args": ["-y", "roboparty-mcp"]
    }
  }
}

如果使用全局安装或本地 tgz,把 command / args 改成对应可执行文件路径即可。

首次配置

控制子进程

需要 Python 3.10+、pyyaml 和 protobuf:

roboparty-mcp --setup

控制凭据只在控制子进程中注入:

export RP_SERVICE_TOKEN='<rp_server service token>'
export RP_TLS_CERT='/path/to/robot-cert.pem'   # 可选
export MCP_CONFIG='/path/to/mcp.yaml'          # 可选

System-1 / Laya

模型约 1.7GB,不随 npm 包分发:

roboparty-mcp --fetch-model

默认缓存到 ~/.cache/receptron-laya(Windows 为 %USERPROFILE%\.cache\receptron-laya)。 支持 LAYA_CACHE、LAYA_MIRROR、LAYA_REVISION、LAYA_SUBFOLDER。

Profile 与工具路由

Profile

启动的子服务

典型场景

docs

文档

只查资料,不碰机器人

control

控制

只做状态读取或控制

system1

System-1

只做 Laya 分析

docs,control

文档 + 控制

查文档后执行

docs,system1

文档 + System-1

查资料 + 分析

docs,control,system1

全部

默认

统一入口只负责工具发现和路由,不复制 rp_server 的认证、lease、stop 或遥测逻辑。

凭据隔离

变量

docs

control

system1

RP_SERVICE_TOKEN

否

是

否

RP_TLS_CERT

否

是

否

MCP_CONFIG

否

是

否

RP_ALLOW_PLAINTEXT

否

是

否

代理 / 缓存变量

按需

按需

按需

控制子进程默认 readonly: true;运动、策略启停等写操作仍需要可写配置和 control lease。

安全边界

  • 文档和 System-1 子进程拿不到控制 token。

  • 工具调用成功不等于硬件动作完成;控制结果要结合 rp_server v2 回执和 telemetry。

  • System-1 输出只是分析建议,不是设备授权。

  • control_stop、策略启停、使能等动作不得绕过 rp_server 的权限和 lease 校验。

  • 不要把 token 写进 URL、README、日志或 MCP 客户端配置仓库。

包内容

src/docs/          文档 MCP(TypeScript)
src/system1/       System-1 MCP(TypeScript)
src/control/       控制 MCP(Python + roboparty.v1 + 启动器)
dist/              构建产物:docs / system1 bundle
scripts/           构建、版本检查、模型下载
  • 三个子服务的源码都在本包内,不再依赖独立的 roboparty-docs-mcp、roboparty-control-mcp、roboparty-system1-mcp。

  • Skills 不在本包分发,统一放在 Roboparty/roboparty_skills。

  • 如果 onnxruntime-node 安装时下载失败:

ONNXRUNTIME_NODE_INSTALL=skip npm ci --ignore-scripts
roboparty-mcp --fetch-model

开发

npm ci --ignore-scripts
npm run typecheck
npm run build
npm test
node src/index.mjs --check

发布前检查版本与 tag 一致:

node scripts/check-version.mjs v0.1.9

相关链接

License

GPL-3.0-only,见 LICENSE。

Available Tools

7 tools
docs_get_pageA

[docs] 读取一篇资料为 Markdown:roboparty.com 文档页面或 RP1 GitHub 仓库的 README/docs。传入 search_docs 命中的 url;可传 section(标题/锚点)只取相关小节,full=true 取整页,maxChars 控制长度。每个问题最多打开 1–2 篇。

Inputs: url (required), full, section, maxChars.

docs_list_manualsA

[docs] 列出可用资料:RoboParty 公开文档的产品、分类与页数,以及已索引的 RP1 GitHub 仓库/页数。回答机器人问题前先用它了解可用资料。

Inputs: no named parameters.

docs_list_tocC

[docs] 列出某一分类下的文档,或已索引的 RP1 GitHub 仓库(manual 传分类名,或 rp1/github/repo)。

Inputs: manual (required), lang, query.

docs_search_docsA

[docs] 在 RoboParty 公开文档中检索:roboparty.com 文档全文 + RP1 各 GitHub 仓库的 README/docs(kind=github;私有仓库需 gh auth login)。传短查询:错误原文、命令、接口名、仓库名或几个关键词,不要贴整段话。默认按查询语言自动选择中文/英文并优先该语言。命中后用 get_page 打开 url,用原文回答并附链接。不要凭记忆编造管脚、包名、版本或步骤。

Inputs: query (required), lang, limit, category.

system1_laya_analyzeLaya System-1 analysisA
Read-onlyIdempotent

[system1] Run Laya once over a state and typed questions. Returns calibrated choice/score/noul answers with probabilities. Analysis only; it does not control the robot.

Inputs: state (required), questions (required).

system1_laya_healthLaya healthA
Read-onlyIdempotent

[system1] Return whether the Laya model is loaded, loading, or failed, plus last latency.

Inputs: no named parameters.

system1_laya_infoLaya model infoA
Read-onlyIdempotent

[system1] Return Laya model path, source, execution providers and loaded config.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation4/5

    The four docs tools form a clear retrieve-narrow-read chain (list_manuals -> list_toc -> search_docs -> get_page), though list_manuals and list_toc both enumerate material at different granularity and could occasionally be swapped. The three system1_laya tools are cleanly split between inference (analyze), status (health), and configuration (info), so boundaries are clear overall.

    Naming Consistency4/5

    Both namespaces use a predictable prefix plus action pattern: docs_<verb>_<noun> and system1_laya_<action>. Minor deviation only in that health and info are noun-like states rather than verbs like analyze, but everything stays snake_case and readable.

    Tool Count5/5

    Seven tools is well within the sweet spot, and each one covers a distinct step: enumerate sources, browse a category, search full text, open a page, plus three model-introspection calls. No filler or duplicate tools are present.

    Completeness5/5

    The docs surface covers the full discovery-to-read lifecycle (list manuals, list TOC, search, fetch page with section/limit options), and the Laya surface covers inference plus health and configuration introspection. The only 'gap' is robot control, which is explicitly out of scope for this analysis-only server, so no dead ends remain.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables local RAG orchestration with MCP, providing context retrieval, in-memory text ingestion, explicit tool invocation, and transport-neutral tool discovery.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI tools to uniformly discover, inspect, and call tools, prompts, and resources from multiple upstream MCP servers through a small set of fixed MCP tools, over stdio or HTTP.
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides a centralized, deterministic MCP endpoint with routing, logging, and browser automation, enabling multiple LLMs to share a consistent set of tools including jq, ripgrep, Git, Python, and headless Chromium.
      MIT