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

@sendtoapp/mcp

v0.1.18

Published

Model Context Protocol server for SendToApp: read the reference, register apps, mint links and wire up branded domains.

Downloads

2,757

Readme

@sendtoapp/mcp

An MCP server for SendToApp. Point an agent at it and it can read the reference, register an app, mint and revoke links, wire up branded domains, and check that the association files iOS and Android fetch are actually correct.

Node 22 or newer. No runtime dependencies beyond @sendtoapp/protocol.

Configure

Hosted, or local

The server also runs on the platform, which needs no install at all:

claude mcp add --transport http sendtoapp https://sendtoapp.com/mcp \
  --header "Authorization: Bearer stak_..."

Reach for this package when your client only speaks stdio, or to point at a deployment other than sendtoapp.com.

{
  "mcpServers": {
    "sendtoapp": {
      "command": "npx",
      "args": ["-y", "@sendtoapp/mcp"],
      "env": { "SENDTOAPP_ACCOUNT_KEY": "stak_…" }
    }
  }
}

In Claude Code that file is .mcp.json in the project, or claude mcp add. In Claude Desktop it is claude_desktop_config.json.

The credential

One: SENDTOAPP_ACCOUNT_KEY. Create it under Account → Account keys in the dashboard; it is shown once.

| Variable | Needed for | | --- | --- | | SENDTOAPP_ACCOUNT_KEY | everything: registering apps, and working on every app the account owns | | SENDTOAPP_EMAIL + SENDTOAPP_PASSWORD | the older way to prove the same account; an account key is better | | SENDTOAPP_BASE_URL | pointing at something other than https://sendtoapp.com |

The account key reaches every app the account owns, including apps registered after the key was made, so there is nothing to configure per app. Ten apps is one key, not ten.

It cannot change the password or the email address, close the account, create another key, or open the operator console. Revoking it changes nothing else — no password change, no device signed out.

An app API key is not a credential for this server. register_app and rotate_api_key return one, and it belongs in your own backend's secrets, where confining a leak to one app is worth something. It cannot register an app or read the account, so as an agent's credential it was strictly worse than the account key while taking longer to set up. Setting SENDTOAPP_API_KEY here does nothing.

Both variables are optional and the server starts without either — the reference tools still work, and whoami says what is missing.

The password is used once, locally, to derive the same key the browser derives (PBKDF2-SHA256, 600,000 iterations). It is never sent. What travels is the derived key, and what is kept is a session cookie held in memory for the life of the process.

Tools

Reference — search_reference, read_reference. Bundled, so they work offline and match the version of the server that is running.

Account — whoami, get_account, list_apps, register_app.

App — get_app, update_app, rotate_api_key, delete_app.

Links — create_link, list_links, revoke_link.

Branded domains — list_domains, add_domain, verify_domain, set_primary_domain, remove_domain.

Integration — integration_snippets returns the exact files to add for Expo or React Native CLI with the host filled in; check_association fetches both association files and reports what would stop iOS or Android accepting them.

revoke_link, remove_domain, rotate_api_key and delete_app are marked destructive so a client asks before running them.

The six reference documents are also exposed as MCP resources under sendtoapp://reference/….

What it will not do

There is no tool to read an API key back. Keys are stored as digests, so no such tool could exist — rotate_api_key issues a replacement instead, and the old key stops working immediately.

There is no tool to change a password, change the account email or close the account. Those need the current password on every call by design, and routing them through an agent would weaken that.

Testing

tests/mcp.test.js in the platform repository drives this server against the real Worker over an injected fetch with an in-memory D1 — no ports, but every request is genuinely parsed, authorised and answered by production code.

npm run test:mcp runs the whole customer journey against the real binary over real pipes: create an account, connect, read the reference, register an app, check the association files iOS and Android would fetch, mint a link and follow it as each platform, bring a branded domain online through DNS, replace the key and confirm the old one is dead, revoke, and shut down cleanly. It starts workerd, a DNS stub and a virtual-host proxy itself, so it needs nothing running.

npm run test:mcp:live points the same transport checks at a deployment that is already up:

SENDTOAPP_BASE_URL=https://sendtoapp.com \
SENDTOAPP_EMAIL=… SENDTOAPP_PASSWORD=… SENDTOAPP_APP_HOST=… \
npm run test:mcp:live

Credentials are optional there; the run skips the tools that need them and says so.

Documentation

Full documentation is at sendtoapp.com/docs, and sendtoapp.com is what the platform does in one page.

Quick start · Expo and React Native · Install recovery · Knowing when a link failed · Troubleshooting · HTTP API

The rest of SendToApp

MIT licensed. Built by SendToApp.