SuperAPI AI 工具集

gate-dex-mcpauth

智能体与模型

查看项目

更新于 10-16 05:48

技能介绍

用途:Gate Wallet 认证入口,管理 Google OAuth 登录、Token 刷新与登出,共 5 个 MCP 工具。触发场景包括用户提到登录、登出、认证、登录,或其他技能检测到无 mcp_token。

主要能力:auth.google_login_start 启动 Google Device Flow 登录,返回 verification_url 与 flow_id;auth.google_login_poll 用 flow_id 轮询登录状态(pending/success/expired/error);auth.login_google_wallet 用授权码直接登录;auth.refresh_token 在 mcp_token 过期时用 refresh_token 换新;auth.logout 撤销会话并使 mcp_token 失效。登录成功后获得的 mcp_token 与 account_id 会传给需要认证的其他技能(portfolio、transfer、swap、dapp)。

使用方式:执行任何操作前必须先做 MCP Server 连接检查,调用 CallMcpTool(server="gate-wallet", toolName="chain.config", arguments={chain: "eth"})。若未配置,需在 Cursor 设置 MCP 中添加名为 gate-wallet 的 HTTP 服务,或编辑 ~/.cursor/mcp.json 添加 mcpServers 配置。登录本身不需要 mcp_token,但 auth.refresh_token 与 auth.logout 需要已有 token。

适用场景:登录、登出、会话刷新,以及被其他技能在未认证时路由过来;认证完成后按用户意图路由到 gate-dex-mcpwallet、gate-dex-mcptransfer、gate-dex-mcpswap、gate-dex-mcpdapp、gate-dex-mcpmarket。

限制:MCP Server 未配置或不可达时中止所有后续步骤;轮询最多重试 10 次、间隔 3 秒;refresh_token 失效需重新登录;同一时间仅维护一个有效 mcp_token,切换账户需先登出;不得向用户明文展示 mcp_token 或 refresh_token,account_id 需掩码显示;登录失败不后台静默重试。具体服务 URL 与 API Key 需联系管理员获取。