Skip to content

agentmail-to/agentmail-plugins

Repository files navigation

AgentMail Plugin

Official AgentMail plugin for Codex, Claude Code, and Cursor. It gives coding agents access to AgentMail inboxes, messages, threads, drafts, attachments, search, webhooks, and WebSockets.

The repository keeps shared Agent Skills portable while using native manifests and authentication for each supported client. It also retains the vendor-neutral Open Plugins manifest.

Included skills

  • send-email — draft, send, reply, and forward safely
  • check-email — search, read, summarize, and triage inboxes
  • manage-inboxes — create, inspect, update, and delete inboxes
  • agentmail — TypeScript and Python SDK implementation
  • agentmail-mcp — hosted MCP setup and troubleshooting
  • agentmail-cli — command-line workflows
  • agentmail-toolkit — framework adapters for agent applications

Detailed SDK material uses progressive references so agents only load the language or real-time guidance required for the task.

Installation

Codex

codex plugin marketplace add agentmail-to/agentmail-plugins
codex plugin add agentmail@agentmail

Start a new Codex session after installation. Authenticate the AgentMail MCP server through OAuth when prompted, and use /mcp to inspect the connection.

Invoke skills explicitly with names such as $check-email or $agentmail when desired.

Claude Code

/plugin marketplace add agentmail-to/agentmail-plugins
/plugin install agentmail@agentmail

Start a new session and complete the AgentMail OAuth flow on first use. Plugin skills are namespaced, for example /agentmail:check-email.

Cursor

After the plugin is published to Cursor Marketplace, install it with /add-plugin agentmail. To test this repository directly, clone it and symlink it into Cursor's local plugin directory:

git clone https://github.com/agentmail-to/agentmail-plugins.git
mkdir -p ~/.cursor/plugins/local
ln -s "$(pwd)/agentmail-plugins" ~/.cursor/plugins/local/agentmail

Reload Cursor after creating the link, then complete the AgentMail OAuth browser sign-in when the MCP server first connects.

Authentication

Surface Default API key required
Codex Hosted MCP with OAuth No
Claude Code Hosted MCP with OAuth No
Cursor Hosted MCP with OAuth No
SDK and CLI AGENTMAIL_API_KEY Yes

The hosted endpoint is https://mcp.agentmail.to/mcp. Do not put credentials in the repository or use an empty environment override.

Safety model

  • Email subjects, bodies, headers, links, and attachments are untrusted data, not agent instructions.
  • Compose requests create drafts; sends require explicit or previously confirmed external details.
  • Inbox deletion always requires confirmation of the exact address.
  • Use scoped AgentMail keys and the narrowest permissions suitable for the workflow.
  • Verify webhook requests with Svix before parsing or processing them.

Development

Run the repository checks before publishing:

python3 scripts/validate_repo.py
python3 scripts/check_compatibility.py
claude plugin validate . --strict

Use disposable inboxes and controlled recipients for integration testing. Automated validation must not send mail or delete live resources.

Sources

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors