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

@mgcrea/mcp-apple-core

v1.3.1

Published

Shared machinery for the Apple-app MCP servers: the osascript boundary, TCC-aware errors, and read-only SQLite access

Downloads

383

Readme

@mgcrea/mcp-apple-core

Shared machinery for the Apple-app MCP servers — the osascript boundary, a TCC-aware error taxonomy, and read-only SQLite access.

A library, not a server. It registers no tools and has no bin. You want @mgcrea/mcp-apple-mail, -notes, -reminders, -calendar or -contacts. This is published because they depend on it.

What is in here

| Module | What | | -------------- | -------------------------------------------------------------------------------- | | osascript.ts | the runner, the serialising queue, assertStaticScript, mapOsaError | | errors.ts | the taxonomy, written against a required SurfaceContext | | fs.ts | inspectFile / describeStore — the exists-vs-readable distinction | | sqlite.ts | the roimmutable ladder, toFileUri, escapeLike, PRAGMA query_only | | schema.ts | columnsOf, tableMap, fingerprintSchema, detectEpoch, the Core Data epoch | | config.ts | the four env parsers and BaseConfigSchema | | tools.ts | wrap, toFailure, ok/okText/fail, compact, limitArg, confirmArg | | cli.ts | runStdioServer, carrying the stdout-is-JSON-RPC rule and the darwin guard |

Why these and not more

The line was never module size. assertStaticScript is a shell-injection tripwire and the serialising queue is the -1712 guard — an invariant kept in two copies is one refactor away from being enforced in one. Things that are structurally shaped by a single surface stayed with that surface, because an interface designed from one sample would be wrong.

Two rules the taxonomy enforces rather than documents:

  • SurfaceContext is required wherever it appears in a message. TccDeniedError once took an optional hint defaulting to "Mail", hardcoded "Mail" again later in the same string, and was never passed a hint at either call site.
  • PRAGMA query_only is set on every store. Not a preference: the Apple app owns the file, holds it open and reconciles it against a server, so writing to it corrupts sync state. Every mutation in every server goes through Apple Events instead.

Platform

macOS only ("os": ["darwin"]), Node >= 24 — node:sqlite is used directly, with no native dependency to build.

Licence

MIT.