api-implementation

api-implementation is a skill for Claude Code, Codex from pjosols/pyfastmail-mcp. It costs 0 tokens per session (497 once invoked), scanned A, original, MIT.

A development guide for connecting an application to Fastmail's email, contacts, calendar, and file services. It explains JMAP, a web protocol for email and related data, plus CardDAV and CalDAV, standard protocols for contacts and calendars.

In plain words
What is it for?
It is for implementing email and masked-email operations with JMAP, and creating, reading, updating, or deleting contacts and calendars through CardDAV and CalDAV.
Why use it?
It gives developers the authentication methods, server addresses, data formats, and request patterns needed to work with Fastmail. It also separates API-token access from app-password access for other services.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pjosols/pyfastmail-mcp/api-implementation
Any agent
npx skills add pjosols/pyfastmail-mcp --skill api-implementation
Clone the repo
git clone --depth 1 https://github.com/pjosols/pyfastmail-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-implementation

README.md
[![agentmods](https://agentmods.dev/badge/skills/pjosols/pyfastmail-mcp/api-implementation.svg)](https://agentmods.dev/skills/pjosols/pyfastmail-mcp/api-implementation)
Your own site
<a href="https://agentmods.dev/skills/pjosols/pyfastmail-mcp/api-implementation"><img src="https://agentmods.dev/badge/skills/pjosols/pyfastmail-mcp/api-implementation.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00497
Opus 5 $0.00000 $0.00249
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

Measured 2d ago against content hash 1835d741efce, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-implementation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.kiro_bak/skills/api-implementation/SKILL.md · 36 lines

What it actually says

API Implementation

JMAP (Mail, Masked Email)

  • Endpoint: https://api.fastmail.com/jmap/api/
  • Auth: Authorization: Bearer {FASTMAIL_API_TOKEN}
  • All calls: POST with using and methodCalls arrays
  • Query+Get pattern: combine in one round trip using #ids back-references
  • Set pattern: create, update, destroy in one call
  • URNs: urn:ietf:params:jmap:mail, urn:ietf:params:jmap:submission, https://www.fastmail.com/dev/maskedemail

DAV Protocols (Contacts, Calendars, Files)

  • Auth: Basic auth with (FASTMAIL_EMAIL, FASTMAIL_APP_PASSWORD) — app password, not API token
  • Create DAVClient in dav_client.py with shared auth, base URLs, and DAV methods

CardDAV (RFC 6352) — Contacts

  • Server: https://carddav.fastmail.com/dav/principals/user/{email}/
  • PROPFIND depth=1 to discover address books
  • vCard format — use vobject library to parse/generate
  • PUT with Content-Type: text/vcard to create, DELETE to remove

CalDAV (RFC 4791) — Calendars

  • Server: https://caldav.fastmail.com/dav/principals/user/{email}/
  • PROPFIND depth=1 to discover calendars
  • iCalendar format — use icalendar library to parse/generate
  • REPORT with calendar-query + time-range filter for date queries
  • PUT with Content-Type: text/calendar to create, DELETE to remove

WebDAV (RFC 4918) — Files

  • Server: https://myfiles.fastmail.com/
  • PROPFIND depth=0 (self) or 1 (children), MKCOL for folders, PUT/GET/DELETE/MOVE for files

References

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 36 lines · 0 tokens per session scan A 1835d741efce

Subscribe to this mod's changes

api-implementation is a skill published in the GitHub repository pjosols/pyfastmail-mcp (0 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 497 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

olk

Microsoft Outlook and OneDrive CLI and MCP for email, calendar, contacts, tasks, and files, for personal and enterprise accounts.

rlrghb/olkcli · 28 tokens

code-review

A simple skill to review changes on the code.

lukegskw/caldav-mcp · 13 tokens

nylas-api

Build email, calendar, and contacts integrations with the Nylas v3 API. Use when code imports nylas, @nylas/nylas, nylas-python, or user asks about Nylas API, email API integration, calendar API, contacts API, OAuth grants, agent accounts, webhooks, scheduler, notetaker, smart compose, or transactional send. DO NOT…

nylas/skills · 90 tokens

nylas-cli

Use the Nylas CLI to manage email, calendar, contacts, and Notetaker from the terminal. Use when user asks about Nylas CLI commands, nylas init, nylas email, nylas calendar, nylas contacts, nylas auth, nylas agent, agent accounts, nylas mcp, nylas notetaker, nylas otp, nylas tui, nylas air, nylas audit, nylas doctor…

nylas/skills · 113 tokens

Pear - iCloud Calendar, Reminders, Contacts & Mail

Pear provides read/write access to iCloud Calendar, Reminders, Contacts, and Mail through 34 MCP tools. All tools are prefixed with pear and communicate with iCloud via CalDAV/CardDAV for Calendar, Reminders, and Contacts, plus IMAP/SMTP for Mail.

AshtonAU/pear-plugin · 61 tokens

local-access

Skill "local-access" from claude-office-skills/claude-office-plugin, covering 本地计算机操作, 使用方式, 可用操作速查, reasoning and 常见场景.

claude-office-skills/claude-office-plugin · 32 tokens