返回顶部
c

cherry-mcp

HTTP bridge that keeps MCP servers alive and exposes them via REST. Built for OpenClaw agents that need MCP tools without native MCP support.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
1,385
下载量
0
收藏
概述
安装方式
版本历史

cherry-mcp

# Cherry MCP 🍒 ## Origin Story Built during a late-night session trying to use MCP servers with OpenClaw. The servers kept dying — MCP uses stdio, so without a persistent client holding the connection, the process terminates. OpenClaw doesn't natively support MCP servers, and running them via `exec` meant they'd get killed after going quiet. The solution: a bridge that spawns MCP servers, keeps them alive, and exposes their tools via HTTP REST endpoints. Named after my emoji. 🍒 *— EULOxGOS, Feb 2026* ## Why MCP servers use stdio — they die without a persistent client. Cherry MCP: - Spawns MCP servers as child processes - Keeps them alive (auto-restart on crash) - Exposes HTTP endpoints for each server ## Quick Start ```bash # Add a server node cli.js add-server github npx @anthropic/mcp-github # Set env vars for the server node cli.js set-env github GITHUB_TOKEN ghp_xxx # Start pm2 start bridge.js --name cherry-mcp ``` ## CLI ```bash # Servers node cli.js add-server <name> <command> [args...] node cli.js remove-server <name> node cli.js list-servers # Environment variables node cli.js set-env <server> <KEY> <value> node cli.js remove-env <server> <KEY> # Security node cli.js set-rate-limit <rpm> # requests per minute node cli.js set-allowed-ips <ip>... # IP allowlist node cli.js enable-audit-log # log requests # Other node cli.js show-config node cli.js restart ``` ## HTTP API ```bash # List servers curl http://localhost:3456/ # List tools curl http://localhost:3456/<server>/tools # Call a tool curl -X POST http://localhost:3456/<server>/call \ -H "Content-Type: application/json" \ -d '{"tool": "search", "arguments": {"query": "test"}}' # Restart server curl -X POST http://localhost:3456/<server>/restart ``` ## Security - Binds to `127.0.0.1` only (not exposed to network) - Optional rate limiting - Optional IP allowlist - Optional audit logging - 1MB max payload ### ⚠️ Important Notes **Commands are user-configured only.** The bridge executes commands specified in `config.json` — it does not accept arbitrary commands via HTTP. You control what runs. **Don't commit secrets.** If you store API keys via `set-env`, they're saved in plain text in `config.json`. Add it to `.gitignore` or use environment variables instead: ```bash # Alternative: set env vars before starting export GITHUB_TOKEN=ghp_xxx pm2 start bridge.js --name cherry-mcp ``` Then reference in config without the value: ```json { "servers": { "github": { "command": "npx", "args": ["@anthropic/mcp-github"], "env": {} } } } ``` The server inherits your shell environment. ## Running ```bash # pm2 (recommended) pm2 start bridge.js --name cherry-mcp pm2 save # Auto-start on boot pm2 startup ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cherry-mcp-1776335419 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cherry-mcp-1776335419 技能

通过命令行安装

skillhub install cherry-mcp-1776335419

下载 Zip 包

⬇ 下载 cherry-mcp v1.0.3

文件大小: 6.71 KB | 发布时间: 2026-4-17 14:59

v1.0.3 最新 2026-4-17 14:59
- Added frontmatter with name, description, and tags to SKILL.md for improved metadata.
- No changes to functionality or instructions—documentation only.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部