npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fastmail-cli

v2.1.0

Published

OpenClaw plugin for Fastmail email, contacts, and calendar

Readme

fastmail-cli

OpenClaw plugin for Fastmail email, contacts, and calendar. Provides 36 agent tools that shell out to the fastmail CLI for token-efficient output (5-7x savings vs raw JSON). Zero runtime dependencies.

Installation

openclaw plugins install fastmail-cli

Prerequisites

  1. Remote MCP Server: Deploy the fastmail-mcp-remote Worker to Cloudflare.

  2. Install and authenticate the CLI:

    # Install globally (or use npx tsx path/to/cli/main.ts)
    npm install -g fastmail-cli
    
    # Authenticate (opens browser for Cloudflare Access login)
    fastmail auth --url https://your-worker.example.com --team myteam

    Credentials are stored at ~/.config/fastmail-cli/config.json (Bearer token, 30-day TTL).

  3. Verify: fastmail auth status should show your user and token expiry.

Configuration

All fields are optional:

| Key | Default | Description | |-----|---------|-------------| | cliCommand | "fastmail" | Path or alias for the fastmail CLI binary |

The CLI handles all authentication. No credentials are needed in the plugin config.

Tools

Email Read (11 tools, always available)

  • fastmail_inbox - Recent inbox emails
  • fastmail_get_email - Read a single email
  • fastmail_search_emails - Search with text and filters (sender, date, unread, etc.)
  • fastmail_get_thread - Conversation thread
  • fastmail_list_mailboxes - List mailboxes
  • fastmail_get_mailbox_stats - Mailbox statistics
  • fastmail_get_account_summary - Account overview
  • fastmail_list_identities - Sending identities
  • fastmail_get_attachments - Email attachments
  • fastmail_download_attachment - Download attachment
  • fastmail_get_inbox_updates - Incremental sync

Email Write (3 tools, optional)

  • fastmail_send_email - Send email
  • fastmail_create_draft - Create draft
  • fastmail_reply_to_email - Reply to email

Email Organize (6 tools, optional)

  • fastmail_mark_read - Mark as read
  • fastmail_mark_unread - Mark as unread
  • fastmail_flag - Flag (star)
  • fastmail_unflag - Unflag (unstar)
  • fastmail_delete - Delete (trash)
  • fastmail_move - Move to mailbox

Email Bulk (6 tools, optional)

  • fastmail_bulk_read - Bulk mark read
  • fastmail_bulk_unread - Bulk mark unread
  • fastmail_bulk_flag - Bulk flag
  • fastmail_bulk_unflag - Bulk unflag
  • fastmail_bulk_delete - Bulk delete
  • fastmail_bulk_move - Bulk move

Contacts (3 tools, always available)

  • fastmail_list_contacts - List contacts
  • fastmail_get_contact - Contact details
  • fastmail_search_contacts - Search contacts

Calendar (4 tools, 3 always + 1 optional)

  • fastmail_list_calendars - List calendars
  • fastmail_list_events - List events
  • fastmail_get_event - Event details
  • fastmail_create_event - Create event (optional)

Memos (3 tools, 1 always + 2 optional)

  • fastmail_get_memo - Get memo on email
  • fastmail_create_memo - Add memo (optional)
  • fastmail_delete_memo - Delete memo (optional)

Architecture

Agent -> OpenClaw Plugin -> execFile(fastmail, args) -> CLI -> MCP SDK -> Remote Worker -> Fastmail JMAP

The plugin is a thin adapter layer:

  1. Registers OpenClaw tools with JSON Schema parameters
  2. On tool call, spawns fastmail <command> [args] via execFile (no shell, no injection risk)
  3. Returns the CLI's compact text output directly as the tool response
  4. CLI handles MCP connection, auth, and formatting

Zero runtime dependencies. The CLI must be installed and authenticated separately.

Upgrading from v1.x

v2.0 replaces the in-process MCP SDK with CLI shelling. The workerUrl and bearerToken config fields are removed.

  1. Install and authenticate the CLI (if not already):

    fastmail auth --url https://your-worker.example.com --team myteam
  2. Remove old config: Delete workerUrl and bearerToken from your OpenClaw workspace plugin settings.

  3. Verify: fastmail auth status should show your user and token expiry.

That's it — all 36 tools work identically, just backed by the CLI now.

Development

# Clone the repo
git clone https://github.com/omarshahine/fastmail-mcp-remote.git
cd fastmail-mcp-remote/openclaw-plugin

# Type check (no build step needed)
npx tsc --noEmit

# Local test (symlink into OpenClaw extensions)
ln -s $(pwd) ~/.openclaw/extensions/fastmail-cli

License

MIT