Install
Install with PiG
pig install npm:@pratikgajjar/pi-mcp-eventsInstall with Pi
pi install npm:@pratikgajjar/pi-mcp-eventsPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"image": "https://raw.githubusercontent.com/pratikgajjar/pi-mcp-events/main/assets/demo.png",
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.2 (README.md). PiG does not review it.
pi-mcp-events
An MCP server sends an event. Your pi session wakes and acts on it.

Install
pi install npm:@pratikgajjar/pi-mcp-events
It uses the servers in pi's own mcp.json. No adapter, no fork, no build step.
How it works
Subscribe
Ask the agent: "Subscribe to message.received on letagents."
Or list subscriptions for every session in ~/.pi/agent/mcp-events.json:
{ "subscriptions": [{ "server": "letagents", "event": "message.received" }] }
/mcp-events shows the subscriptions and their state.
Good to know
- Spec: SEP-3415, accepted commit
4165cc2. Push and poll. - Safe input: event data reaches the model as untrusted data, never as your instruction.
- Replay: per-session outboxes keep accepted events until Pi persists them. Crashes may replay duplicates. Delivery is not exactly-once.
- Bounds: complete payloads arrive in pages. Disk quotas pause intake, never evict pending events. See durability and recovery.
- Not supported: webhooks (a laptop has no public URL) and OAuth servers.
Related projects
- @sanity-labs/pi-mcp-events: adds webhooks, but needs Node 24, a build step and a config per project. Ours runs from source and its subscriptions follow you to every project.
- @realmikekelly/pi-mcp-events: works only with a forked
pi-mcp-adapter. Ours uses pi's built-in MCP. - richardanaya/pi-mcp-extensions: events are one part of a larger set (skills, tasks, apps). Ours does events only.
License
MIT