用途:这是一个轻量级 Gmail 集成技能,采用独立 OAuth 认证,无需 MCP 服务器,用于搜索邮件、读取消息、发送邮件、创建草稿和管理标签。
主要能力:支持按 Gmail 查询语法搜索邮件、读取完整内容或仅元数据、发送普通/HTML 邮件(含抄送、密送、别名发件)、创建与发送草稿、通过增删标签修改消息(已读、未读、归档、星标、重要),以及列出全部标签。
使用方式:首次需认证,运行 python scripts/auth.py login(会打开浏览器),可用 status 查看状态、logout 退出。所有操作通过 scripts/gmail.py,首次使用若未登录会自动认证。例如搜索:python scripts/gmail.py search "from:someone@example.com is:unread";读取:python scripts/gmail.py get MESSAGE_ID;发送:python scripts/gmail.py send --to "user@example.com" --subject "Hello" --body "Message body";创建草稿:python scripts/gmail.py create-draft ...;修改标签:python scripts/gmail.py modify MESSAGE_ID --remove-label UNREAD;列出标签:python scripts/gmail.py list-labels。
适用场景:需要以脚本方式自动化处理 Gmail 邮件读写、检索与标签管理的场景。
限制:需要 Google Workspace 账号,个人 Gmail 账号不支持。令牌通过系统钥匙串安全存储(macOS Keychain、Windows Credential Locker、Linux Secret Service API),服务名为 gmail-skill-oauth,过期后自动刷新。其他细节暂未提供。