SkillPedia Skills Encyclopedia
中文 EN

MCP servers 2026-03-30 19:25 UTC

outlook-mcp

Committed by ryaker. Update Category: Bug Fixes & Stability Improvements. Commit details: fix: token refresh env vars, delete-email tool, npx support (#48). This update resolves known runtime errors and enhances system reliability.

ryaker 95d6ff2 ryaker/outlook-mcp

CommitRaw commit message

fix: token refresh env vars, delete-email tool, npx support (#48)

* fix: token refresh for Claude Desktop + add delete-email + npx support

- Fix token refresh failing silently in Claude Desktop (issue #44): TokenStorage
  now checks both MS_CLIENT_ID and OUTLOOK_CLIENT_ID env vars so refresh_token
  grant works regardless of which env var name the user configured.
- Add delete-email tool (issue #27): moves email to Deleted Items by default,
  supports permanent=true for hard delete via Graph API DELETE.
- Add bin entries to package.json for npx usage (issue #36): `npx m365-mcp`
  and `npx m365-mcp-auth` now work without cloning.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: address PR review feedback on delete-email handler

- Guard handleDeleteEmail against undefined args with default parameter (args = {})
- Fix permanent delete to use POST /me/messages/{id}/permanentDelete instead of
  DELETE /me/messages/{id} which only soft-deletes to Deleted Items folder
- Extend UNAUTHORIZED catch to also handle error.message === 'UNAUTHORIZED'
  thrown by callGraphAPI on 401 responses, giving consistent re-auth prompts

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>