nanocoai/nanoclaw✦ 精选0°

add-gmail-tool

仓库创建 2026年1月31日最近提交 17 小时前SkillHot 收录 20 天前
▸ 精选理由

大幅减轻邮件处理工作流,支持多账号与令牌隔离。

▸ 风险提示

需 OneCLI/OAuth 配置并授予邮件访问权限。

这个 Skill 做什么

为代理添加 Gmail 工具,支持读写、搜索、起草与标记邮件。

把 Gmail 当成一个工具接入代理,支持读、搜、发、标记和草稿操作,使用 OneCLI 管理的 OAuth 进行安全授权。适合需要让代理代表用户操作邮箱但又不把凭据写入容器或磁盘的场景。特点是通过 MCP 服务和 OneCLI 在请求时注入真实令牌,保证容器里不会出现可用的原始凭证。

▸ 展开 SKILL.md 英文原文

Add Gmail as an MCP tool (read, search, send, label, draft) using OneCLI-managed OAuth. The agent gets Gmail tools in every enabled group; OneCLI injects real tokens at request time so no raw credentials are ever in the container or on disk in usable form.

办公文档GmailOAuth邮件处理自动化Claude Code
3.0w
Stars
1.3w
Forks
40
仓库内 Skill
+241
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/nanocoai/nanoclaw/main/.claude/skills/add-gmail-tool/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/nanocoai/nanoclaw/main/.claude/skills/add-gmail-tool/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Add Gmail Tool (OneCLI-native)

This skill wires the [`@gongrzhe/server-gmail-autoauth-mcp`](https://www.npmjs.com/package/@gongrzhe/server-gmail-autoauth-mcp) stdio MCP server into selected agent groups. The MCP server reads stub credentials containing the `onecli-managed` placeholder; the OneCLI gateway intercepts outbound calls to `gmail.googleapis.com` and injects the real OAuth bearer from its vault.

Tools exposed (from `gmail-mcp@1.1.11`, surfaced to the agent as `mcp__gmail__<name>`): `search_emails`, `read_email`, `send_email`, `draft_email`, `delete_email`, `modify_email`, `batch_modify_emails`, `batch_delete_emails`, `download_attachment`, `list_email_labels`, `create_label`, `u
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有