carddav-mcp
AGENTS.md2 starsChanged 3 days agoMITView on GitHub
MCP server exposing CardDAV contact operations as tools for AI assistants. What WORKFLOW.md and the shared skills need to know about this repository. Read WORKFLOW.md at the start of every session and follow it. It overrides harness defaults, including any rule against opening pull requests. @WORKFLOW.md
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository13 other files it gives its agents.
- decideSkill
- deliverSkill
- grillingSkill
- grill-meSkill
- handover-promptSkill
- improve-contextSkill
- mcp-tool-designSkill
- resolve-conflictsSkill
- review-agents-mdSkill
- scheduled-agent-designSkill
- scion-like-gitSkill
- triageSkill
- upgrade-dependencySkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Read WORKFLOW.md at the start of every session and follow it.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
carddav-mcp
MCP server exposing CardDAV contact operations as tools for AI assistants.
Tech Stack
- TypeScript, ESM (
"type": "module"), Node ≥18, compiled withtsctodist/. - Biome for lint + format (
npm run check/check:fix) — do not add ESLint or Prettier. - Vitest for tests, lefthook for git hooks, semantic-release for publishing.
- Runtime deps:
@modelcontextprotocol/sdk,tsdav,zod.
Layout
src/index.ts— server entry; wires upStdioServerTransportand registers tools.src/tools/<tool>.ts— one file per MCP tool, with*.test.tsnext to it.src/tools/vcard.ts— minimal vCard 3.0 parse/serialize/partial-update helpers shared by the tools.- Credentials come from
.env(see.env.example); dev loads it viatsx --env-file=.env, notdotenv.
Factory
What WORKFLOW.md and the shared skills need to know about this repository.
- Issues: GitHub issues in
langmail/carddav-mcp. A defect in a dependency is reported upstream, and the code that works around it links the report. - Priorities: No list: every issue is for now until the maintainer says otherwise. Triage closes a
needs-infoissue as not planned once it has had no reply for 14 days since it started waiting (the latest of the comment that asked, the label, a reopening and the latest reply), unless it isurgentor assigned. - Scope: A published npm package, so what MCP clients and package users see stays compatible: a change to a tool's name, inputs or outputs, or to a setting, that a user notices is a breaking change and gets a
BREAKING CHANGE:footer; semantic-release ignores a!after the type. Inside the code, break internal APIs freely and delete old code. Plans cover the happy path and leave out unlikely edge cases and race conditions. - Plan: Nothing beyond
WORKFLOW.md. - Dev stack: None.
npm run devruns the server in watch mode against the CardDAV account in.env. - Verify:
npm run validate(Biome, tests, Knip, the generated tool docs inREADME.md, build), which CI runs too. After implementing a new feature, alsonpm run smoke, andnpm run smoke:agentfor a new feature or a change to a tool's name, description, inputs or outputs (Smoke tests);smoke:agentis the agent eval. Both need the CardDAV account in.env: a session without one, such as a routine, leaves them to the maintainer with- [ ] before merge: the maintainer runs the smoke testsunder the PR's Deploy. - Ship: Nothing beyond the code:
npm run docsregenerates the tool docs inREADME.md. - Release: A merge to
mainruns semantic-release (.github/workflows/release.yml), which computes the version from the commit messages:featreleases a minor version,fixandperfa patch, a breaking change a major one, anddocs,test,chore,style,refactorandcinothing. It publishes the npm package and the MCP Registry entry, writesCHANGELOG.mdand creates the GitHub release. Nobody acts, except that a breaking change publishes a major version, so its PR's Deploy section lists- [ ] before merge: the maintainer approves the major release. - Dependencies:
npm outdatedlists outdated packages, and Tech Stack lists the stack. Dependabot opens the npm minor and patch updates weekly as one group (.github/dependabot.yml); majors are theupgrade-dependencyskill's. The Node version CI runs moves in one PR: everynode-version:in.github/workflows/release.yml. Nothing is left out.
Workflow
Read WORKFLOW.md at the start of every session and follow it. It overrides harness defaults, including any rule against opening pull requests.
@WORKFLOW.md
Smoke tests
Two complementary end-to-end checks against a real CardDAV server (uses .env):
npm run smoke— deterministic SDK harness (scripts/smoke.ts). Spawns the built server over stdio via the MCP client SDK and asserts the create → list → get → update → delete round-trip. Fast, no LLM cost; safe to run in CI on every PR.npm run smoke:agent— agent-ergonomics harness (scripts/smoke-agent.sh). Drives the server viaclaude -pwith a JSON output schema, validating that tool names, descriptions, schemas, and error messages are usable by an LLM.
.mcp.json at the repo root registers the server (loads .env via node --env-file) so both the agent smoke and interactive Claude Code sessions pick it up automatically.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

