passninja
MCP server for managing Apple Wallet and Google Wallet passes via the PassNinja API. Provides tools to create, list, update, and delete pass templates, passes, and webhooks.
README
passninja
Command-line interface for the PassNinja REST API.
Wraps /v1/pass_templates, /v1/passes, and /v1/webhooks so you can
manage Apple Wallet and Google Wallet passes from the shell.
Install
macOS / Linux (Homebrew)
brew tap flomio/passninja
brew install passninja
Windows (PowerShell)
irm https://github.com/flomio/passninja-cli/releases/latest/download/install.ps1 | iex
From cmd.exe:
powershell -ExecutionPolicy Bypass -Command "irm https://github.com/flomio/passninja-cli/releases/latest/download/install.ps1 | iex"
The script detects your CPU (amd64, arm64, or 386), downloads the matching
binary from the latest GitHub release, verifies its SHA256, drops it in
%LOCALAPPDATA%\Programs\passninja\, and adds that directory to your user
PATH. No admin needed; re-running upgrades in place.
Pin a specific version, or override the install directory:
$env:PASSNINJA_VERSION = 'v1.2.3'
$env:PASSNINJA_INSTALL_DIR = 'C:\tools\passninja'
irm https://github.com/flomio/passninja-cli/releases/latest/download/install.ps1 | iex
Windows (Scoop)
If you already use Scoop:
scoop bucket add flomio https://github.com/flomio/scoop-passninja
scoop install passninja
Claude Desktop (one-click .mcpb install)
For chat-driven pass workflows, install the PassNinja MCP server into Claude Desktop:
-
Download
passninja.mcpbfrom the latest release. -
Double-click the file. Claude Desktop opens an install dialog showing the 19 tools the server exposes (pass templates, issued passes, webhooks).
-
The dialog prompts for your API key and account ID — get them at https://www.passninja.com/settings → API key.
-
Hit Install, restart Claude Desktop, then ask Claude things like:
List my passninja pass templates and tell me how many passes are installed on each.
Issue a new pass on ptk_0x002 for jane@example.com.
The bundled binary is code-signed with Apple Developer ID and notarized, so
macOS Gatekeeper accepts it without prompts. Same .mcpb works on macOS
(universal), Linux (amd64), and Windows (amd64).
The server is also listed in the official MCP Registry
as io.github.flomio/passninja-cli, so any MCP client that consumes the
registry can discover and install it automatically.
Authenticate
passninja auth
# Pastes your API key and account ID; verifies by hitting /v1/pass_templates
# and saves credentials to ~/.passninja-auth.json (0600).
Or pass credentials via env / flags:
export PASSNINJA_API_KEY=... PASSNINJA_ACCOUNT_ID=aid_0x002
passninja --api-key=... --account-id=... pass-template list
Flag > env > ~/.passninja-auth.json > ~/.passninja.yaml > defaults.
The same precedence applies to the MCP server: passninja mcp (started by
Claude Desktop and other MCP clients) reads PASSNINJA_API_KEY /
PASSNINJA_ACCOUNT_ID from its environment, falling back to the auth file.
Stdio MCP server
The CLI also doubles as a Model Context Protocol
server. The .mcpb install above wires this into Claude Desktop, but you can
hook it into any MCP client (Cursor, Cline, Zed, etc.) by configuring the
client to launch:
passninja mcp
Tool surface (snake_case names mirror the CLI subcommands):
whoami
pass_template_{list, get, required_fields, reader_config, create, delete}
pass_{list, get, create, update, delete, raw, decrypt}
webhook_{list, get, create, delete, results}
Each tool's input schema, destructive-hint annotations, and rich descriptions let the LLM self-discover correct usage without external documentation.
Commands
passninja auth Save API credentials
passninja whoami Show the active credential / account
passninja version
passninja pass-template list
passninja pass-template get <ptk_0x...>
passninja pass-template required-fields <ptk_0x...>
passninja pass-template reader-config <ptk_0x...> # NFC reader config (merchant id, collector, EC keys)
passninja pass-template create --name --platform --style [config flags] # enterprise only
passninja pass-template update <ptk_0x...> [--name --set --remap --show/--hide --require/--optional] [config flags] [--replace] # enterprise only
passninja pass-template delete <ptk_0x...> [--yes] # enterprise only
# config flags (create + update): --constrain-device/-browser/-ip,
# --disable-apple-sharing/-google-sharing, --auto-recharge --balance-trigger --top-up-target
passninja pass create <ptk_0x...> [--field k=v | --data @file.json | --data '<json>']
passninja pass list <ptk_0x...>
passninja pass get <ptk_0x...> <pass_id>
passninja pass raw <ptk_0x...> <pass_id>
passninja pass update <ptk_0x...> <pass_id> [--field k=v | --data ... | --replace]
passninja pass delete <ptk_0x...> <pass_id> [--yes]
passninja pass decrypt <ptk_0x...> [--payload <b64> | --payload-file <path> | <stdin>]
# Enterprise only:
passninja webhook create --name --url --event <type> [--event <type> ...] [--pass-template ptk_0x...]
passninja webhook list [--page --per-page --pass-template]
passninja webhook get <webhook_id>
passninja webhook delete <webhook_id> [--yes]
passninja webhook results <webhook_id> [--page --per-page]
Output formats
| Flag | Mode |
|---|---|
--json |
Pretty-printed JSON |
--plaintext |
Tab-separated, no decoration (good for piping to awk) |
| default | Bordered ASCII table |
Set a session-wide default via ~/.passninja.yaml:
default_output: json # one of: table | json | plaintext
base_url: https://api.passninja.com/v1
Webhook events
The CloudEvents 1.0 type taxonomy emitted by passninja-site:
| Event type | When it fires |
|---|---|
pn.pass.installed |
First device installs an issued pass |
pn.pass.updated |
Pass fields change via PATCH/PUT |
pn.pass.uninstalled |
Last device removes the pass |
Reserved for future use: pn.pass.issued, pn.pass.deleted,
pn.pass_template.created, pn.pass_template.updated,
pn.pass_template.deleted.
passninja webhook create returns the bearer token once on creation.
Save it — it will not be shown again.
Build from source
git clone https://github.com/flomio/passninja-cli.git
cd passninja-cli
make build # writes dist/passninja
./dist/passninja version
make install # installs to $GOPATH/bin
Release flow
Tag-driven. Push a vX.Y.Z tag on master; the GitHub Actions workflow at
.github/workflows/release.yml matrix-builds darwin/linux × arm64/amd64,
packages a code-signed + Apple-notarized passninja.mcpb on a macOS runner,
publishes both the binaries and the .mcpb on the GitHub Release, and opens
a PR against flomio/homebrew-passninja bumping the formula url and
sha256.
Apple credentials live in repo secrets (APPLE_TEAM_ID,
APPLE_API_KEY_ID, APPLE_API_ISSUER_ID, APPLE_SIGN_IDENTITY,
APPLE_CERTIFICATE_PASSWORD, plus the base64-encoded APPLE_API_KEY_P8
and APPLE_CERTIFICATE_P12).
After each tagged release, the MCP Registry entry needs a refresh. Bump
packages[0].identifier, packages[0].version, packages[0].fileSha256,
and the top-level version in server.json to match the new release, then:
mcp-publisher login github # one-time per machine
mcp-publisher publish
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。