embodied-council-mcp
Officialby EI-robot
README.md
# Embodied Council
Embodied Council 是面向机器人与具身智能研发的运动控制顾问团。本阶段交付可版本化的本地专家目录,以及首个灵巧手抓取力分析专家的蒸馏与改进实验。完整的仿真、优化、学习和真机适配范围见[架构规格](docs/superpowers/specs/2026-11-28-embodied-council-design.md)。
Embodied Council maintains a versioned expert catalog for embodied robotics. The CLI and MCP tools share the same catalog. The first expert package covers quasi-static contact-force analysis for multifinger grasping.
## 安装与测试
使用 Python 3.10 或更新版本。在仓库根目录的 PowerShell 中运行:
```powershell
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[mcp]"
.\.venv\Scripts\python.exe -m unittest discover -s tests -v
```
只使用 CLI 或 Python API 时,可将安装参数改为 `-e .`。目录数据保存在调用方指定的 SQLite 文件。Windows 若有多个 Python,创建环境时选用符合版本要求的解释器。
## 专家工具
`embodied-council --db PATH` 提供 `create`、`update`、`publish`、`delete`、`restore`、`list`、`get`、`history`。写操作接受稳定的请求 ID 和预期修订号,原请求重试返回同一回执。发布后的专家在删除时转为退役,历史版本可按修订号读取。发布所需的证据字段由本地维护者填写,经评审的记录与 Skill 一起保留。
用官方 MCP SDK 运行本地 stdio 服务器。连接器的 command 可设为虚拟环境内的 `embodied-council-mcp` 可执行文件,args 为 `["--db", "<数据库的绝对路径>"]`。默认提供 `list_experts`、`get_expert`、`get_expert_history`。为需要维护目录的连接添加 `--allow-writes`,即可发现 `apply_expert_change`。目录查询可按能力标签筛选,宿主可以读取相应版本的 Skill 正文及引用文件。
## 导入首个专家 Skill
首个专家包整理了 Antonio Bicchi 的公开抓取研究,用于准静态接触力分配、抗滑、力封闭及执行器可调内力分析。[Skill](experts/bicchi-grasp-control/SKILL.md) · [女娲蒸馏清单](evaluations/nuwa-bicchi/DistillationManifest.json) · [行为与解析验证](evaluations/nuwa-bicchi/fidelity.md)
在全新目录库中复现导入动作:
```powershell
New-Item -ItemType Directory -Force .council | Out-Null
$catalog = ".council/expert-catalog.sqlite3"
$cli = ".\.venv\Scripts\embodied-council.exe"
& $cli --db $catalog create bicchi-grasp-control --request-id bicchi-s0-create --kind person --name "Antonio Bicchi · 多指抓取力分析" --capability dexterous-grasping --capability contact-control --skill-file experts/bicchi-grasp-control/SKILL.md
& $cli --db $catalog publish bicchi-grasp-control --request-id bicchi-s0-publish --expected-revision 1 --evidence evaluations/nuwa-bicchi/DistillationManifest.json
& $cli --db $catalog list --capability dexterous-grasping
& $cli --db $catalog get bicchi-grasp-control --revision 2
```
`get` 返回正文和全部引用文件。发布记录保存 Skill 哈希,用于核对当时实际使用的版本。
首轮 Darwin 用独立会话实际比较了裸模型、女娲首版和候选版。目录使用本轮验证后保留的女娲首版。[对照报告和证据](evaluations/darwin-bicchi/report.md)
## MuJoCo 双指夹持实验
在 Python 3.11+ 环境安装 `.[mcp,mujoco]`,并给 MCP 服务添加 `--mujoco-runs <运行目录>`。通过 `probe_mujoco` 查看版本和实验参数,通过 `run_grasp_slip_experiment` 运行无界面仿真。首个实验使用 Bicchi Skill 分析逐指摩擦余量,并比较基准、低摩擦和位移反馈延迟三组工况。[复现步骤、配置及实测轨迹](evaluations/mujoco-grasp-slip/README.md)
本项目自有代码与文档以 [Apache-2.0](LICENSE) 许可发布。[第三方说明](THIRD_PARTY_NOTICES.md)