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

apple-text-mcp

v1.2.0

Published

MCP server for the Apple Text skills collection

Readme

Apple Text MCP Server

Model Context Protocol server for the Apple Text skills collection.

It exposes:

  • Apple Text skills as MCP resources
  • repo commands as MCP prompts
  • read-only tools for routing, catalog lookup, search, skill reads, and agent inspection

Apple Text MCP is a read-only knowledge server. If you also want build, test, and project actions from Xcode, run Apple's separate Xcode MCP bridge alongside it with xcrun mcpbridge.

For generic MCP clients, the main front door is apple_text_route. Give it the user's Apple text question first, then follow its suggested apple_text_read_skill call.

The repo also keeps a committed source bundle at mcp-server/bundle.json so hooks and CI can verify MCP data freshness without compiling TypeScript first. mcp-server/skill-annotations.json is generated from skills/catalog.json plus optional hand-tuned overrides in mcp-server/skill-annotations.overrides.json.

Install

Published package

Once apple-text-mcp is published to npm, MCP clients can launch it directly with:

npx -y apple-text-mcp

Development from this repo

cd mcp-server
npm install
npm run build
npm run smoke:dev
npm run start:dev

That runs against the live repo one directory above mcp-server/.

Production bundle

cd mcp-server
npm install
npm run build:bundle
npm start

Production mode reads dist/bundle.json, so it does not need the repo files after build.

From the repo root

npm run setup
npm run mcp:bundle
npm run mcp:smoke
npm run mcp:start

That path validates the bundled production server and still leaves npm run mcp:start available for live-repo development mode.

Use Alongside Xcode Tools

Apple Text and Xcode serve different purposes:

  • apple-text provides text-system guidance, search, and references
  • xcode via xcrun mcpbridge provides Xcode actions

For Codex:

codex mcp add xcode -- xcrun mcpbridge

Keeping It Current

From the repo root:

npm run mcp:generate
npm run mcp:check
  • mcp:generate refreshes mcp-server/skill-annotations.json and mcp-server/bundle.json
  • mcp:check fails if either generated file is stale

The repo hook and main npm run check path both run this validation now.

Publish Workflow

Local Dry Run

npm run setup:all
npm run mcp:bundle
npm run mcp:smoke
npm run mcp:pack:check
npm run mcp:pack:dry-run

If the packed contents look correct, you can also run:

npm run mcp:publish:dry-run

Actual Publish

The repo includes a GitHub Actions workflow that can dry-run the MCP package on manual dispatch and publish apple-text-mcp to npm on a version tag like mcp-v1.0.1.

Set the NPM_TOKEN repository secret before using the publish path.

Example MCP Config

Published package

{
  "mcpServers": {
    "apple-text": {
      "command": "npx",
      "args": ["-y", "apple-text-mcp"]
    }
  }
}

Local checkout

{
  "mcpServers": {
    "apple-text": {
      "command": "node",
      "args": ["/absolute/path/to/apple-text/mcp-server/dist/index.js"],
      "env": {
        "APPLE_TEXT_MCP_MODE": "development",
        "APPLE_TEXT_DEV_PATH": "/absolute/path/to/apple-text"
      }
    }
  }
}

For bundled production use, omit the env vars and point to the built server.

If you also want Xcode actions, add a second MCP server for xcrun mcpbridge.

VS Code + GitHub Copilot

Add to settings.json:

{
  "github.copilot.chat.mcp.servers": {
    "apple-text": {
      "command": "node",
      "args": ["/absolute/path/to/apple-text/mcp-server/dist/index.js"],
      "env": {
        "APPLE_TEXT_MCP_MODE": "development",
        "APPLE_TEXT_DEV_PATH": "/absolute/path/to/apple-text"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "apple-text": {
      "command": "node",
      "args": ["/absolute/path/to/apple-text/mcp-server/dist/index.js"],
      "env": {
        "APPLE_TEXT_MCP_MODE": "development",
        "APPLE_TEXT_DEV_PATH": "/absolute/path/to/apple-text"
      }
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "apple-text": {
      "command": "node",
      "args": ["/absolute/path/to/apple-text/mcp-server/dist/index.js"],
      "env": {
        "APPLE_TEXT_MCP_MODE": "development",
        "APPLE_TEXT_DEV_PATH": "/absolute/path/to/apple-text"
      }
    }
  }
}

Gemini CLI

Add to ~/.gemini/config.toml:

[[mcp_servers]]
name = "apple-text"
command = "node"
args = ["/absolute/path/to/apple-text/mcp-server/dist/index.js"]

[mcp_servers.env]
APPLE_TEXT_MCP_MODE = "development"
APPLE_TEXT_DEV_PATH = "/absolute/path/to/apple-text"

Environment Variables

  • APPLE_TEXT_MCP_MODE: development or production (default production)
  • APPLE_TEXT_DEV_PATH: repo root to read in development mode
  • APPLE_TEXT_APPLE_DOCS: true or false (default false) to enable Apple-authored markdown docs from the local Xcode install
  • APPLE_TEXT_XCODE_PATH: override the Xcode.app path used for Apple docs discovery
  • APPLE_TEXT_MCP_LOG_LEVEL: debug, info, warn, or error

Exposed Surface

Resources

  • apple-text://skill/{skill-name}

Prompts

  • repo command markdown files from ../commands/

Tools

  • apple_text_route
  • apple_text_get_catalog
  • apple_text_search_skills
  • apple_text_read_skill
  • apple_text_get_agent

Validation

  • npm run build compiles the MCP package
  • npm run smoke verifies the bundled production server through the official MCP SDK client
  • npm run smoke:dev verifies the live development loader against the repo checkout
  • npm run pack:check asserts the npm tarball includes the runnable server and bundle
  • npm run build:bundle regenerates bundle data and compiles the production server