@pratikgajjar/pi-mcp-events0.1.2
pi extension: MCP Events (SEP-3415) for the MCP servers in pi's mcp.json. An event wakes the pi session.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
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