跳到正文
TakoAPI
返回技能列表

cherry-mcp

由 bitbrujo 提供

Coding Agents & IDEs
1.1k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

HTTP bridge that keeps MCP servers alive and exposes them via REST.

描述

该技能的功能

HTTP bridge that spawns MCP servers as persistent child processes and exposes their tools via REST endpoints. Designed for agents that lack native MCP support, where exec-based spawning kills servers when they go idle. Includes auto-restart on crash, rate limiting, IP allowlisting, and audit logging.

Solves the stdio persistence problem that kills MCP servers when spawned via exec, without requiring native MCP client support in the consuming agent.

何时使用

  • Calling GitHub MCP tools from an agent that only supports HTTP
  • Keeping MCP servers alive across long-running automation sessions
  • Bridging multiple MCP servers under a single HTTP interface
  • Auto-restarting a crashed MCP server during an overnight batch job
  • Restricting MCP tool access to specific IPs on a shared machine

示例工作流

输入

User asks: use the GitHub MCP server's search tool from an OpenClaw agent

智能体
  1. 1

    Register the server: node cli.js add-server github npx @anthropic/mcp-github

  2. 2

    Set credentials: node cli.js set-env github GITHUB_TOKEN ghp_xxx

  3. 3

    Start the bridge: pm2 start bridge.js --name cherry-mcp

  4. 4

    POST to http://localhost:3456/github/call with the tool name and arguments

  5. 5

    Receive the MCP tool response as JSON over HTTP

输出

GitHub MCP tools are callable via HTTP REST from any agent or script

前置要求

  • API keys or credentials required by each MCP server being bridged (e.g., GITHUB_TOKEN for GitHub MCP)

安装

clawhub install bitbrujo/cherry-mcp

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接