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

@thatfactory/cloudkit-mcp

v0.2.1

Published

Inspect and debug CloudKit databases, records, zones, and sharing through a secure, read-only MCP server.

Readme

CloudKit MCP

Give Codex, Claude Code, and other MCP clients a safe, read-only view into CloudKit. Inspect records and zones, follow change state, check subscriptions, and compare what two accounts can see—without handing database mutation access to the agent. ☁️

CloudKit MCP is especially useful for questions like:

  • “Did this record reach CloudKit, and can the invited participant see it?”
  • “Do the owner/private and participant/shared views have matching metadata?”
  • “Which zones changed, and what bounded change evidence is available?”
  • “Is this likely a server-visibility issue or something that still needs client-side sync evidence?”

Quick start

You need Node.js 24+, a CloudKit container, a non-secret profile file, and credentials for each account view you want to inspect. Credential import is the only required interactive terminal step; secrets are read with echo disabled and never belong in chat or MCP arguments.

See Setup for the profile format, credential import, and authentication modes.

Codex

Run this once, replacing both paths:

codex mcp add cloudkit -- \
  npx --yes --package=@thatfactory/[email protected] \
  cloudkit-mcp serve \
  --profiles /absolute/path/to/cloudkit-profiles.json \
  --credential-store /absolute/private/path/cloudkit-credentials

Restart Codex after changing MCP configuration so the new server process is loaded.

Claude Code

claude mcp add cloudkit -- \
  npx --yes --package=@thatfactory/[email protected] \
  cloudkit-mcp serve \
  --profiles /absolute/path/to/cloudkit-profiles.json \
  --credential-store /absolute/private/path/cloudkit-credentials

Then ask your agent to call get_context before probe_access. The first call confirms offline policy; the second verifies one explicit account and database scope.

What your agent can inspect

  • Public, private, and shared views allowed by each profile.
  • Owner-aware zones and exact record metadata.
  • Policy-bounded indexed queries and selected payload fields.
  • Privacy-safe sharing and subscription structure where supported.
  • Database and zone changes through opaque, process-bound cursors.
  • Independently authenticated owner/participant views of the same exact records.

The server ships no CloudKit mutation tool, and --allow-writes is rejected. Profiles are deny-by-default startup policy: an agent cannot expand scopes, record types, queryable fields, payload fields, or identity disclosure.

See Capabilities and limitations for the complete tool list, live-evidence boundaries, and guidance for interpreting results. MCP clients can also read the packaged cloudkit://capabilities resource.

Safety at a glance

  • Credentials stay in an explicitly configured owner-only local directory.
  • Credentials never appear in profiles, tool results, stdout, fixtures, or the npm package.
  • Web-user requests serialize session rotation and fail closed when session state is uncertain.
  • Provider identities and cursors are opaque by default.
  • Remote requests use a closed read-only registry and only Apple's fixed CloudKit Web Services origin.
  • Record content is treated as untrusted data, never agent instructions.

Example prompts

  • “Show my configured profiles and explain what each one permits.”
  • “Compare these exact records through the owner private and participant shared views using independently selected zones.”
  • “Read changes for this shared zone and explain what the returned coverage does and does not prove.”
  • “Check the available subscription structure without returning identifiers or notification payloads.”

Development

npm ci
npm run check

The full check covers schema and policy consistency, strict type checking, deterministic security and contract tests, a clean build, package-content verification, and installation/execution from a real tarball outside the checkout.

Approved dependency exceptions are documented in Dependencies.