ClawMCP🦞⚒️
由...创建 老年开发人员
MCP服务器,从自然语言构建完整的OpenClaw环境。
告诉ClawMCP你想自动化什么。你描述你的意图,人工智能将其分解为孤立的沙盒任务,生成所有OpenClaw配置文件,并为审查和部署做好准备。
______________________________________________________________________
它做什么
- 意图驱动 --用自然语言描述您想要自动化的内容
- 沙盒环境 --每个任务都完全独立运行,没有上下文冲突
- 完整文件生成 --每个沙盒的SOUL.md、MEMORY.md、HEARTBEAT.md、AGENTS.md和技能文件;一个全球
openclaw.json网关配置 - 符合规范的输出 --导出OpenClaw 2026所期望的精确文件布局(
~/.openclaw/openclaw.json+~/openclaw/{agent}/) - 导入现有项目 --将已部署的OpenClaw工作区加载回ClawMCP进行修改
- 人工审核优先 --在将任何内容导出到磁盘之前进行验证和检查
- 任何级别 --初学者获得简单的语言设置指南,专家获得原始文件和CLI说明
______________________________________________________________________
安装
git clone https://github.com/ageborn-dev/clawmcp
cd clawmcp
npm install
npm run build______________________________________________________________________
使用Claude Desktop
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"clawmcp": {
"command": "node",
"args": ["/path/to/clawmcp/dist/index.js"]
}
}
}使用游标/VS代码
添加到MCP设置中:
{
"clawmcp": {
"command": "node",
"args": ["/path/to/clawmcp/dist/index.js"]
}
}______________________________________________________________________
工具
| 工具 | 说明 |
|---|---|
clawmcp_create_environment | 创建新的环境会话以保存沙盒 |
clawmcp_list_environments | 列出所有具有到期倒计时的活动环境 |
clawmcp_delete_environment | 永久删除环境及其所有沙盒 |
clawmcp_import_environment | 将现有的磁盘上OpenClaw工作区导入新会话 |
clawmcp_add_sandbox | 将完全隔离的代理沙盒添加到环境中 |
clawmcp_update_sandbox | 用新内容替换现有沙盒中的所有文件 |
clawmcp_remove_sandbox | 从环境中删除特定的沙盒 |
clawmcp_list_sandboxes | 列出环境中的所有沙盒及其ID和文件列表 |
clawmcp_validate_environment | 导出前检查环境一致性 |
clawmcp_export_environment | 准备好完整的文件树以写入磁盘 |
clawmcp_get_setup_instructions | 以初学者或专家模式获取部署指南 |
______________________________________________________________________
导出的文件结构
~/.openclaw/openclaw.json ← global gateway config (gateway, channels, models, crons)
~/openclaw/
├── {agent-name}/
│ ├── SOUL.md ← agent identity, personality, rules
│ ├── MEMORY.md ← persistent context stubs
│ ├── HEARTBEAT.md ← natural language periodic tasks
│ ├── AGENTS.md ← workflow instructions for this agent
│ └── skills/
│ └── {skill-name}/
│ └── SKILL.md ← YAML frontmatter + instructions
└── README.md ← deployment summary______________________________________________________________________
典型工作流程
1. clawmcp_create_environment → creates a session, returns env_id
2. clawmcp_add_sandbox → AI generates and adds each agent (call once per task)
3. clawmcp_list_sandboxes → review what was added
4. clawmcp_update_sandbox → refine a specific sandbox if needed
5. clawmcp_validate_environment → check all files are consistent
6. clawmcp_export_environment → get the full file tree
7. clawmcp_get_setup_instructions → beginner or expert deploy guide要修改现有部署,请执行以下操作:
1. clawmcp_import_environment → load an on-disk OpenClaw workspace
2. clawmcp_update_sandbox → make targeted changes
3. clawmcp_export_environment → re-export updated files______________________________________________________________________
会话
环境存储在本地 ~/.clawmcp/sessions/ 并在上次更新后24小时过期。
______________________________________________________________________
需求
- Node.js 20+
- 目标计算机上安装了OpenClaw(
curl -fsSL https://openclaw.ai/install.sh | bash) - 支持MCP的AI客户端(Claude Desktop、Cursor、VS Code或任何兼容MCP的主机)
______________________________________________________________________
许可证
麻省理工学院
