戳调度MCP
一个精简的Claude Code CLI包装器 戳 (由Interaction Co.提供)在Mac上运行Claude Code的能力。Claude Code本身处理文件访问、网络搜索、代码执行和其他一切——这个MCP只是将Poke连接到Claude Code。
工具
| 工具 | 说明 |
|---|---|
run_task | 同步运行快速任务(最多5分钟) |
start_task | 在后台启动一个较长的任务,返回session_id |
check_task | 检查后台任务的状态和输出 |
send_followup | 向正在运行的任务发送后续消息 |
run_parallel | 同时生成多个Claude Code任务 |
list_tasks | 列出所有跟踪的任务 |
需求
- Python 3.11+
- 已安装Claude Code CLI(
npm install -g @anthropic-ai/claude-code)
设置
1.克隆并安装
git clone https://github.com/SresthGupta/poke-dispatch-mcp.git
cd poke-dispatch-mcp
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt2.启动服务器
python -m src.server
# Server starts at http://localhost:8000/mcp3.创建一个戳隧道
npm install -g poke
poke tunnel http://localhost:8000/mcp --name "Dispatch"将隧道URL粘贴到Poke下 设置>MCP服务器.
渲染部署
部署到 Render.com 使用包含 render.yaml。Claude Code CLI必须在环境中可用。
- 构建命令:
pip install -r requirements.txt - 启动命令:
python -m src.server
发展
# Test Claude Code CLI works
claude --print "hello"
# Start server
python -m src.server
# List registered tools
python -c "from src.server import mcp; print([t for t in mcp._tool_manager._tools])"