@atomicmail/agent-skill-modelcontextprotocol
v0.3.9
Published
Atomic Mail AgentSkill — register, jmap_request, and help CLI for AI agents. (modelcontextprotocol install channel)
Downloads
586
Maintainers
Readme
Install package for modelcontextprotocol integration (same as @atomicmail/agent-skill).
description: Install and run the @atomicmail/agent-skill CLI (register, jmap_request, help) for shell-capable agents and automation.
@atomicmail/agent-skill
Atomic Mail AgentSkill CLI for shell-capable AI agents. It exposes three
commands: register, jmap_request, and help. jmap_request uses the
same shared library as @atomicmail/mcp.
For AI agents — run atomicmail help
Invoke atomicmail help before improvising JMAP or preset details. The CLI
embeds the topic docs — written for agents,
version-matched to your install, and cheaper to fetch on demand than reconstructing
placeholder grammar or attachment flows from memory.
When to call help: at the start of a mail task (atomicmail help or
help --topic overview); before custom batches (help --topic presets and
help --topic jmap_cheatsheet); right after register (help --topic cron
for the required hourly agent inbox job); when errors mention missing
placeholders, auth, or an old preset file on disk (help --topic
troubleshooting). Prefer the installed binary over static README copies in
other repos — trust help from the package you are running.
Install / run
npx --package=@atomicmail/agent-skill atomicmail --helpQuick start
npx --package=@atomicmail/agent-skill atomicmail register \
--username "myagent"
npx --package=@atomicmail/agent-skill atomicmail jmap_request \
--ops '[["Mailbox/get", {"accountId": "$ACCOUNT_ID"}, "m0"]]'Usernames must be 5–21 characters (local-part of your @atomicmail.ai
address).
If credentials already exist for a different username, register fails by
default. Pass --forced only after backing up the credential directory.
Required: hourly agent inbox job
After register, you must schedule an hourly AI agent to fetch and
triage mail with preset list_inbox.json. Do not cron atomicmail
jmap_request alone — that only logs JSON and never invokes an agent.
Pick the workflow that matches your agent host (OpenClaw, Hermes, atomic-agent,
or terminal CLI + OS scheduler). Options and agent prompt:
SKILL.md · atomicmail help --topic cron
· MCP help topic cron
jmap_request, presets, and placeholders
jmap_request accepts inline --ops JSON or --ops-file (same shapes as MCP:
methodCalls array or full { "using", "methodCalls" }). Pass custom
$PLACEHOLDERS via --vars '{"PLACEHOLDER":"value"}' (keys without $).
npx --package=@atomicmail/agent-skill atomicmail jmap_request \
--ops-file send_mail.json \
--vars '{"TO":"[email protected]","SUBJECT":"Hello","BODY":"Hi there"}'Resolution: relative --ops-file resolves to --credentials-dir (default
~/.atomicmail), then bundled presets.
Details (placeholder grammar, built-ins, shadowing, bundled preset list,
attachments): see @atomicmail/mcp and the embedded help topic
presets (atomicmail help --topic presets).
Shared state
Each credential directory is an isolated account (default ~/.atomicmail,
mode 0600 files):
credentials.jsonsession.jwtcapability.jwt
The CLI and MCP read and write the directory you select per command
(--credentials-dir / credentials_dir) or the default from
ATOMIC_MAIL_CREDENTIALS_DIR. Multiple accounts = multiple directories; see
MCP help topic multi_account or mcp.md.
Defaults
- auth endpoint:
https://auth.atomicmail.ai - api endpoint:
https://api.atomicmail.ai - credentials directory:
~/.atomicmail
Overriding defaults
- Endpoints:
--auth-url,--api-urlorATOMIC_MAIL_AUTH_URL,ATOMIC_MAIL_API_URL - Credentials path:
--credentials-dirorATOMIC_MAIL_CREDENTIALS_DIR - PoW salt:
--scrypt-saltorATOMIC_MAIL_SCRYPT_SALT
