agentmail-to/agentmail-skills

agentmail-mcp

Configure or troubleshoot the hosted AgentMail MCP server for Codex, Claude Code, Cursor, or another Streamable HTTP MCP client.

Ver código fuente
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

AgentMail MCP

Prefer the hosted Streamable HTTP server:

text
https://mcp.agentmail.to/mcp

It avoids a local Node.js process and the slower release cadence of the published local MCP package.

Claude Code, Codex, and Cursor

Use OAuth. Do not put an empty API key in the configuration.

json
{
  "mcpServers": {
    "agentmail": {
      "type": "http",
      "url": "https://mcp.agentmail.to/mcp"
    }
  }
}

Claude Code can also install it directly:

bash
claude mcp add --transport http agentmail https://mcp.agentmail.to/mcp

Complete the browser sign-in on first connection. Multi-organization OAuth sessions can use the server's organization-selection tools.

Per-client configuration

Add the same type: http server entry to the client's MCP config file:

  • Cursor: .cursor/mcp.json
  • VS Code: .vscode/mcp.json
  • Windsurf: its MCP config file
  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows)

Auth options

  • OAuth — browser-based sign-in, for clients that support remote MCP OAuth. Use the bare URL with no credentials.
  • `x-api-key` header — recommended for clients without OAuth support (see below).
  • `Authorization: Bearer <am_...>` header — an alternative header form some clients require.
  • `apiKey` query param — supported but not recommended; prefer a header so the key doesn't end up in logs or history.

For a Streamable HTTP client that cannot complete OAuth, export AGENTMAIL_API_KEY and send it as a header:

json
{
  "mcpServers": {
    "agentmail": {
      "type": "http",
      "url": "https://mcp.agentmail.to/mcp",
      "headers": {
        "x-api-key": "${env:AGENTMAIL_API_KEY}"
      }
    }
  }
}

Avoid query-string credentials when header authentication is available.

Tool Discovery

MCP clients get the tool catalog and schemas live from the hosted runtime; do not rely on a copied tool count. The same generated contract is published at https://github.com/agentmail-to/agentmail-mcp/blob/main/mcp-manifest.json — treat the hosted runtime plus that manifest as the authoritative catalog. OAuth sessions can surface extra organization-selection tools beyond the base set.

Stdio Compatibility

For a stdio-only client, use the supported npm or PyPI agentmail-mcp package. Both are thin stdio bridges to the same hosted runtime: they discover tools dynamically and carry no separate AgentMail tool logic of their own.

Verify

  1. Restart the client or open a new session after installing the plugin.
  2. Inspect MCP status in the client and complete authentication.
  3. Call list_inboxes as a read-only smoke test.
  4. Confirm that read, write, and destructive tool annotations produce the expected approval behavior.

Troubleshoot

  • A 404 usually means the URL is missing /mcp.
  • "Invalid API key" or a 401 with API-key auth usually means the key is wrong, revoked, lacks the necessary permissions, or AGENTMAIL_API_KEY was not available to the client process.
  • "Unauthorized" or a 401 with OAuth usually means the sign-in is incomplete or the session expired — drop any apiKey query param and let the client complete the browser-based OAuth flow instead.
  • Use the full am_ key value and prefer the narrowest suitable organization, pod, or inbox scope.
  • For a stdio-only client, see Stdio Compatibility above.
del mismo repositorio

Más Skills

Todos los Skills
agentmail-to
Comunidad

agent-email-patterns

Architecture patterns for AI agents that communicate over email -- why agents need dedicated inboxes rather than human email accounts, infrastructure/provider tradeoffs, one-inbox-per-agent, two-way conversation loops, human-in-the-loop drafts, WebSocket vs webhook event design, multi-agent topologies, OTP flows, and the threat model (prompt injection, webhook spoofing, credential exposure, data leakage). Use when designing how agents send, receive, and manage email conversations, evaluating whether an agent needs email, or choosing an email provider; do not use for AgentMail SDK method calls or basic send/receive implementation.

instalaciones
1
GitHub Stars
22
Actualizado
21 jul
agentmail-to
Comunidad

agentmail

Build with the AgentMail TypeScript or Python SDK for inbox, message, thread, draft, attachment, domain, allow/block list, pod, webhook, and WebSocket workflows, including programmatic agent sign-up, domain/DNS administration, and deliverability triage (bounces, spam, blocked mail). Use when implementing or reviewing AgentMail API code; do not use for direct mailbox operations, CLI usage, MCP setup, or framework-toolkit integration.

instalaciones
1
GitHub Stars
22
Actualizado
21 jul
agentmail-to
Comunidad

agentmail-cli

Operate AgentMail from a shell with the official CLI. Use when the user wants commands for listing or creating inboxes, reading or searching mail, sending or replying, managing drafts, or scripting JSON/YAML output; do not use for SDK code, MCP setup, or framework adapters.

instalaciones
1
GitHub Stars
22
Actualizado
21 jul
agentmail-to
Comunidad

agentmail-sdk

Deprecated alias of the agentmail skill, kept so existing installs and pinned URLs keep resolving. Prefer installing agentmail; this is an identical generated copy covering AgentMail SDK usage in TypeScript and Python.

instalaciones
1
GitHub Stars
22
Actualizado
21 jul