Community编程与开发github.com

Token Metrics 自动化集成

通过 Rube MCP (Composio) 自动执行 Token Metrics 任务。始终先搜索工具以获取当前 schema。

Token Metrics 自动化集成 是什么?

该技能提供了通过 Composio 的 Token Metrics 工具包自动执行 Token Metrics 操作的能力,由 Rube MCP 作为连接代理。它专为需要集成链上分析和代币指标的开发者或 AI 代理设计,支持在 Cursor、Claude Code 等支持 MCP 的环境中运行。核心工作流程包括三个步骤:首先通过 `RUBE_SEARCH_TOOLS` 发现当前可用的工具及其输入 schema;接着使用 `RUBE_MANAGE_CONNECTIONS` 检查并确保 Token Metrics 连接处于 ACTIVE 状态;最后使用 `RUBE_MULTI_EXECUTE_TOOL` 按返回的 schema 执行具体操作。该技能主要优点在于自动处理工具变更(通过实时搜索)、确保连接有效,并避免了硬编码工具 slug 和参数的常见问题。支持批量操作(通过 `RUBE_REMOTE_WORKBENCH`)和分页结果处理,保障大型工作流的完整性。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-claude-skills/tree/master/composio-skills/token-metrics-automation

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

通过 Rube MCP 实现 Token Metrics 自动化

通过 Composio 的 Token Metrics 工具包,经由 Rube MCP 自动化 Token Metrics 操作。

工具包文档:composio.dev/toolkits/token_metrics

前提条件

  • 必须连接 Rube MCP(RUBE_SEARCH_TOOLS 可用)
  • 通过 RUBE_MANAGE_CONNECTIONS 使用工具包 token_metrics 建立活跃的 Token Metrics 连接
  • 始终首先调用 RUBE_SEARCH_TOOLS 获取当前工具 schema

设置

获取 Rube MCP:在客户端配置中添加 https://rube.app/mcp 作为 MCP 服务器。无需 API 密钥——只需添加端点即可运行。

  1. 通过确认 RUBE_SEARCH_TOOLS 响应来验证 Rube MCP 是否可用
  2. 使用工具包 token_metrics 调用 RUBE_MANAGE_CONNECTIONS
  3. 如果连接状态不是 ACTIVE,请按照返回的认证链接完成设置
  4. 在运行任何工作流之前确认连接状态显示为 ACTIVE

工具发现

在执行工作流之前始终发现可用工具:

RUBE_SEARCH_TOOLS
queries: [{use_case: "Token Metrics 操作", known_fields: ""}]
session: {generate_id: true}

这将返回可用的工具 slug、输入 schema、推荐的执行计划以及已知陷阱。

核心工作流模式

步骤 1:发现可用工具

RUBE_SEARCH_TOOLS
queries: [{use_case: "你的具体 Token Metrics 任务"}]
session: {id: "existing_session_id"}

步骤 2:检查连接

RUBE_MANAGE_CONNECTIONS
toolkits: ["token_metrics"]
session_id: "your_session_id"

步骤 3:执行工具

RUBE_MULTI_EXECUTE_TOOL
tools: [{
  tool_slug: "TOOL_SLUG_FROM_SEARCH",
  arguments: {/* 从搜索结果中获取的符合 schema 的参数 */}
}]
memory: {}
session_id: "your_session_id"

常见陷阱

  • 始终先搜索:工具 schema 会变化。未经调用 RUBE_SEARCH_TOOLS 切勿硬编码工具 slug 或参数
  • 检查连接:在执行工具之前验证 RUBE_MANAGE_CONNECTIONS 显示 ACTIVE 状态
  • 遵循 schema:使用搜索返回结果中的准确字段名称和类型
  • memory 参数:始终在 RUBE_MULTI_EXECUTE_TOOL 调用中包含 memory,即使为空({})
  • 会话复用:在工作流中复用会话 ID。为新工作流生成新的 ID
  • 分页处理:检查响应中的分页令牌,并持续获取直至完成

快速参考

操作方法
查找工具使用 Token Metrics 特定的用例调用 RUBE_SEARCH_TOOLS
连接使用工具包 token_metrics 调用 RUBE_MANAGE_CONNECTIONS
执行使用发现的工具 slug 调用 RUBE_MULTI_EXECUTE_TOOL
批量操作使用 run_composio_tool() 调用 RUBE_REMOTE_WORKBENCH
完整 schema针对包含 schemaRef 的工具调用 RUBE_GET_TOOL_SCHEMAS

由 Composio 提供技术支持

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

agent-mail-automation

Automate Agent Mail tasks via Rube MCP (Composio). Always search tools first for current schemas.

agentql-automation

Automate Agentql tasks via Rube MCP (Composio). Always search tools first for current schemas.

agenty-automation

Automate Agenty tasks via Rube MCP (Composio). Always search tools first for current schemas.

相关技能