stack-exchange-automation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStack Exchange Automation via Rube MCP
通过Rube MCP实现Stack Exchange自动化
Automate Stack Exchange operations through Composio's Stack Exchange toolkit via Rube MCP.
Toolkit docs: composio.dev/toolkits/stack_exchange
通过Composio的Stack Exchange工具包,借助Rube MCP实现Stack Exchange操作自动化。
Prerequisites
前提条件
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Stack Exchange connection via with toolkit
RUBE_MANAGE_CONNECTIONSstack_exchange - Always call first to get current tool schemas
RUBE_SEARCH_TOOLS
- 必须已连接Rube MCP(需提供RUBE_SEARCH_TOOLS)
- 通过激活Stack Exchange连接,工具包为
RUBE_MANAGE_CONNECTIONSstack_exchange - 请始终先调用以获取最新的工具schema
RUBE_SEARCH_TOOLS
Setup
设置步骤
Get Rube MCP: Add as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
https://rube.app/mcp- Verify Rube MCP is available by confirming responds
RUBE_SEARCH_TOOLS - Call with toolkit
RUBE_MANAGE_CONNECTIONSstack_exchange - If connection is not ACTIVE, follow the returned auth link to complete setup
- Confirm connection status shows ACTIVE before running any workflows
获取Rube MCP:在客户端配置中添加作为MCP服务器。无需API密钥 —— 只需添加端点即可使用。
https://rube.app/mcp- 通过确认能正常响应,验证Rube MCP是否可用
RUBE_SEARCH_TOOLS - 调用,指定工具包为
RUBE_MANAGE_CONNECTIONSstack_exchange - 如果连接状态未显示为ACTIVE,请按照返回的授权链接完成设置
- 在运行任何工作流之前,确认连接状态显示为ACTIVE
Tool Discovery
工具发现
Always discover available tools before executing workflows:
RUBE_SEARCH_TOOLS
queries: [{use_case: "Stack Exchange operations", known_fields: ""}]
session: {generate_id: true}This returns available tool slugs, input schemas, recommended execution plans, and known pitfalls.
在执行工作流之前,请始终先发现可用工具:
RUBE_SEARCH_TOOLS
queries: [{use_case: "Stack Exchange operations", known_fields: ""}]
session: {generate_id: true}这将返回可用的工具slug、输入schema、推荐的执行计划以及已知的注意事项。
Core Workflow Pattern
核心工作流模式
Step 1: Discover Available Tools
步骤1:发现可用工具
RUBE_SEARCH_TOOLS
queries: [{use_case: "your specific Stack Exchange task"}]
session: {id: "existing_session_id"}RUBE_SEARCH_TOOLS
queries: [{use_case: "your specific Stack Exchange task"}]
session: {id: "existing_session_id"}Step 2: Check Connection
步骤2:检查连接状态
RUBE_MANAGE_CONNECTIONS
toolkits: ["stack_exchange"]
session_id: "your_session_id"RUBE_MANAGE_CONNECTIONS
toolkits: ["stack_exchange"]
session_id: "your_session_id"Step 3: Execute Tools
步骤3:执行工具
RUBE_MULTI_EXECUTE_TOOL
tools: [{
tool_slug: "TOOL_SLUG_FROM_SEARCH",
arguments: {/* schema-compliant args from search results */}
}]
memory: {}
session_id: "your_session_id"RUBE_MULTI_EXECUTE_TOOL
tools: [{
tool_slug: "TOOL_SLUG_FROM_SEARCH",
arguments: {/* schema-compliant args from search results */}
}]
memory: {}
session_id: "your_session_id"Known Pitfalls
已知注意事项
- Always search first: Tool schemas change. Never hardcode tool slugs or arguments without calling
RUBE_SEARCH_TOOLS - Check connection: Verify shows ACTIVE status before executing tools
RUBE_MANAGE_CONNECTIONS - Schema compliance: Use exact field names and types from the search results
- Memory parameter: Always include in
memorycalls, even if empty (RUBE_MULTI_EXECUTE_TOOL){} - Session reuse: Reuse session IDs within a workflow. Generate new ones for new workflows
- Pagination: Check responses for pagination tokens and continue fetching until complete
- 始终先搜索工具:工具schema会发生变化。在未调用的情况下,切勿硬编码工具slug或参数
RUBE_SEARCH_TOOLS - 检查连接状态:在执行工具之前,确认显示连接状态为ACTIVE
RUBE_MANAGE_CONNECTIONS - 符合schema要求:使用搜索结果中提供的精确字段名称和类型
- Memory参数:在调用时,请始终包含
RUBE_MULTI_EXECUTE_TOOL参数,即使它是空的(memory){} - 会话复用:在同一个工作流中复用会话ID。开始新工作流时生成新的会话ID
- 分页处理:检查响应中的分页令牌,并持续获取数据直到完成
Quick Reference
快速参考
| Operation | Approach |
|---|---|
| Find tools | |
| Connect | |
| Execute | |
| Bulk ops | |
| Full schema | |
Powered by Composio
| 操作 | 方法 |
|---|---|
| 查找工具 | 使用Stack Exchange特定的用例调用 |
| 建立连接 | 调用 |
| 执行操作 | 使用发现的工具slug调用 |
| 批量操作 | 在 |
| 获取完整schema | 对带有 |
由Composio提供支持