← 返回 Skills 市场
jrskerrett

OpenCloutlook

作者 Jon · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
448
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-msgraph
功能描述
Read and manage Microsoft Outlook email (inbox, folders, move messages) and Outlook calendar (list events, create events) via Microsoft Graph API. Use when t...
安全使用建议
What to check before installing/using this skill: 1) Protect tokens: The skill stores access and refresh tokens at ~/.openclaw/msgraph-tokens.json. Treat that file as sensitive (chmod 600 is used by the scripts). Do not run auth.py token in environments where console output or logs are shared, because it prints the raw access token. 2) Docs vs code mismatch: The README/SETUP.md sometimes reference CLIENT_ID uppercase while auth.py reads 'client_id' (lowercase). Ensure your config.ini uses the key names the script expects (check config.example.ini) or fix the mismatch before authenticating. 3) Agent safety: auth.py calls sys.exit() on auth errors (and can raise KeyError at import if config keys are missing). If you plan to call these scripts from a long‑running agent process, be aware an auth error could terminate the process. Consider running these scripts as subprocesses or modifying the code to raise exceptions instead of exiting. 4) Sensitive data in LLM prompts: Example code shows building prompts containing email subjects, senders, and (in other helpers) stripped bodies to send to third‑party LLMs. Be cautious — sending inbox content to external LLM providers may leak private data. Review and sanitize any content before forwarding it. 5) Verify redirect URI/port: Setup docs have inconsistent redirect URI examples (a small mismatch between pages and the default port 8765). Make sure Azure app redirect URIs match the REDIRECT_PORT in your config.ini. 6) Audit before use: The code uses only Microsoft endpoints and local HTTP redirects for PKCE, and there are no suspicious external endpoints, but review the scripts (auth.py, graph_api.py, mail.py, cal.py) in your environment before granting access to avoid accidental leaks. If you need higher assurance, run the included tests locally and consider changing sys.exit() behavior to exceptions.
功能分析
Type: OpenClaw Skill Name: openclaw-msgraph Version: 1.0.0 The skill is classified as suspicious due to a vulnerability in how it constructs API request URLs. The `graph_api.py` module directly concatenates user-controlled identifiers (like `message_id`, `event_id`, `folder_id`, `calendar_id`) from `mail.py` and `cal.py` into the URL path without explicit sanitization or validation. While these IDs are typically opaque strings from the Microsoft Graph API, a lack of input validation could allow an attacker to inject path traversal sequences (e.g., `../`) or other malicious strings if they can manipulate the agent's input, potentially leading to unintended API calls or API path traversal on the Microsoft Graph endpoint. There is no evidence of intentional malicious behavior, data exfiltration to unauthorized endpoints, or prompt injection attempts within the `SKILL.md` itself.
能力评估
Purpose & Capability
Name/description match the included scripts: auth.py, mail.py, cal.py, and graph_api.py provide Microsoft Graph access for mail and calendar. No unrelated services, binaries, or credentials are requested. The files and claimed capabilities (list/read/move email, list/create events) are consistent with the stated purpose.
Instruction Scope
SKILL.md and the included examples instruct running the included scripts and storing tokens at ~/.openclaw/msgraph-tokens.json, which is expected. However, there are multiple runtime behaviors to watch: (1) There is a documented command that prints the current access token (python scripts/auth.py token) — exposing the token in logs/console could leak access. (2) Example code (examples/llm_integration.py) explicitly formats email/calendar content for LLM prompts and demonstrates sending that data to third‑party LLMs — this is a data‑exfiltration vector if used without care. (3) auth.get_access_token() and some command paths call sys.exit() on errors (e.g., not authenticated or refresh failure); if these scripts are invoked inside a long‑running agent process the script's exit behavior could terminate the process unexpectedly. The SKILL.md does not warn about these consequences.
Install Mechanism
No install spec — instruction-only skill with bundled Python scripts. No remote downloads, package installs, or archive extraction are present. This is lower-risk from an install-mechanism perspective.
Credentials
The skill declares no required environment variables or primary credential. It does require a local config.ini (client_id, tenant, scopes, redirect_port) and stores OAuth tokens under ~/.openclaw/msgraph-tokens.json. That is proportionate for an OAuth-based Graph integration. However, the registry/docs have inconsistencies about config key casing (README/SETUP.md sometimes reference CLIENT_ID uppercase; auth.py reads cfg['client_id'] lowercase). That mismatch can cause runtime failures (KeyError) and is a coherence issue to resolve before use.
Persistence & Privilege
The skill persists OAuth tokens to ~/.openclaw/msgraph-tokens.json (mode 0600) and auto-refreshes tokens, which is expected for a Graph client. always:false (not forced into every agent run). Still, persistent long‑lived refresh tokens are sensitive — users should protect the token file and understand how to revoke access (docs provide instructions).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-msgraph
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-msgraph 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Outlook email and calendar management via Microsoft Graph API with PKCE auth. 114 tests, 82% coverage.
元数据
Slug openclaw-msgraph
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

OpenCloutlook 是什么?

Read and manage Microsoft Outlook email (inbox, folders, move messages) and Outlook calendar (list events, create events) via Microsoft Graph API. Use when t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 448 次。

如何安装 OpenCloutlook?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-msgraph」即可一键安装,无需额外配置。

OpenCloutlook 是免费的吗?

是的,OpenCloutlook 完全免费(开源免费),可自由下载、安装和使用。

OpenCloutlook 支持哪些平台?

OpenCloutlook 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 OpenCloutlook?

由 Jon(@jrskerrett)开发并维护,当前版本 v1.0.0。

💬 留言讨论