Skip to main content
Glama
@runehand/mcp-server

@runehand/mcp-server

@runehand/mcp-server

将 Runehand 公共 API v1 封装为工具的 MCP 服务器,使 MCP 客户端(Claude Desktop、Claude Code 等)能够直接操作 Runehand 机器人:列出机器人和流程、阅读和回复对话、管理潜在客户以及查看分析数据。

设置

  1. 在 https://app.runehand.co/settings/api-keys 生成 API 密钥(需要 Pro 或 Enterprise 套餐,以及工作区中的 owner 或 admin 角色)。明文密钥只显示一次——请复制它。

  2. 将此添加到您的 MCP 客户端配置中(示例:Claude Desktop 的 claude_desktop_config.json):

{
  "mcpServers": {
    "runehand": {
      "command": "npx",
      "args": ["-y", "@runehand/mcp-server"],
      "env": { "RUNEHAND_API_KEY": "rh_live_..." }
    }
  }
}
  1. 重启您的 MCP 客户端。它现在应该会列出 9 个 Runehand 工具。

Related MCP server: eduframe-mcp

配置

环境变量

必填

默认值

用途

RUNEHAND_API_KEY

是

—

来自 /settings/api-keys 的 Bearer 令牌。

RUNEHAND_API_BASE_URL

否

https://app.runehand.co/api/v1

仅用于本地/预发布环境测试的覆盖。

工具

工具

描述

list_bots

列出拥有该 API 密钥的工作区所属的机器人。

list_flows

根据机器人的 UUID 列出属于该机器人的流程。

get_flow

获取单个流程,包括其可执行格式的节点。

list_conversations

列出对话,可选地按 bot_id 和/或 status 过滤。

get_conversation

获取单个对话,包括其消息。

send_message

以代理身份在现有对话中发送消息。

list_leads

列出潜在客户,可选地按 bot_id 和/或 status 过滤。

create_lead

直接创建潜在客户,无需关联对话。

get_analytics

获取工作区在日期范围内的 KPI 和快速统计。

Runehand API 的错误以 "{code}: {message}" 的形式作为工具错误呈现(例如 not_found: Not found.)——请参阅 API 文档中的错误代码表。

开发

npm install
npm run dev      # run directly with tsx, no build step
npm test         # vitest, mocks all HTTP via msw
npm run lint
npm run typecheck
npm run build     # compiles to dist/

许可证

MIT

Available Tools

9 tools
create_leadCreate leadB

Create a lead directly, without an associated conversation. Does not trigger the LeadCaptured event.

Inputs: bot_id (required), name, tags, email, +4 more.

get_analyticsGet analytics dashboardA

Get workspace KPIs and quick stats for a date range, same data as the in-app dashboard.

Inputs: to, from.

get_conversationGet conversation detailA

Get a single conversation, including its messages in chronological order.

Inputs: conversation_id (required).

get_flowGet flow detailB

Get a single flow, including its nodes in executable format.

Inputs: flow_id (required).

list_botsList botsB

List the bots that belong to the workspace that owns the API key.

Inputs: page, per_page.

list_conversationsList conversationsA

List conversations for the workspace, optionally filtered by bot_id and/or status.

Inputs: page, bot_id, status, per_page.

list_flowsList flowsC

List the flows that belong to a bot, given the bot's UUID.

Inputs: bot_id (required), page, per_page.

list_leadsList leadsB

List leads for the workspace, optionally filtered by bot_id and/or status.

Inputs: page, bot_id, status, per_page.

send_messageSend messageA

Send a message as the agent in an existing conversation. Delivers to the external channel (WhatsApp, Telegram, etc.) when the conversation is not on the web channel.

Inputs: content (required), conversation_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: bots, flows, conversations, analytics, messaging, and leads. The list/get pairs follow a clear resource-detail distinction, so an agent can reliably select the intended tool.

    Naming Consistency5/5

    All tools use lowercase snake_case verb_noun naming: list_*, get_*, send_message, create_lead. The pattern is consistent and predictable across the entire surface.

    Tool Count5/5

    Nine tools is well-scoped for a workspace/bot/conversation/lead management server. Each tool corresponds to a meaningful operation, and there is no redundant bloat.

    Completeness4/5

    Read/query coverage is strong across bots, flows, conversations, leads, and analytics, with messaging and lead creation included. Minor gaps exist—no lead status update, conversation creation/closure, or flow editing—but these are likely handled outside this server's read-and-engage scope.

    Related MCP Connectors

    Related MCP Servers