Repository navigation
docs: announce MCP Events and document them on the MCP server page - #14466
Conversation
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR publishes a new blog post (
Reviewed commit: 12257c5 |
🟢 Tier S · Ready to merge
Adds an MCP Events announcement with a Pi demo and expands the hosted MCP server documentation with event catalogs, delivery modes, subscription behavior, permissions, limits, and setup steps. It also clarifies that events are hosted-only, adds a changelog entry, and updates the generated blog metadata and cover dimensions. Latest changes: The latest commits replace the article’s embedded video with light/dark demo GIFs, add the MCP Events changelog entry and a dark-mode docs screenshot, reorganize the event guidance, and refresh generated blog metadata.
📂 Walkthrough · 10
Reviewed the commits since |
| - **A catalog.** `events/list` tells the client which events exist and which arguments each one takes. | ||
| - **Subscriptions.** The client asks for an event with specific arguments, such as "new users in project X". | ||
| - **Delivery.** The server sends each matching event to the client as it happens, without the client asking again. |
There was a problem hiding this comment.
| - **A catalog.** `events/list` tells the client which events exist and which arguments each one takes. | |
| - **Subscriptions.** The client asks for an event with specific arguments, such as "new users in project X". | |
| - **Delivery.** The server sends each matching event to the client as it happens, without the client asking again. | |
| - **Catalog:** `events/list` tells the client which events exist and which arguments each one takes. | |
| - **Subscriptions:** The client asks for an event with specific arguments, such as "new users in project X". | |
| - **Delivery:** The server sends each matching event to the client as it happens, without the client asking again. |
|
|
||
| # Events you can subscribe to {% #events %} | ||
|
|
||
| The Appwrite MCP server launches with six events. Every event takes a required `project_id`, and payloads carry IDs and metadata only, so the agent fetches the details it needs with a normal tool call. |
There was a problem hiding this comment.
Are we planning to add more events? If so, we should mention this.
|
|
||
| Before the subscription is created, the server sends a verification challenge that the endpoint must echo back, so events can only go to an endpoint that asked for them. Every delivery is signed with the [Standard Webhooks](https://www.standardwebhooks.com/) scheme. A subscription lasts one hour by default (anywhere from 5 minutes to 24 hours on request), and the client refreshes it before it expires. | ||
|
|
||
| # How it works {% #how-it-works %} |
There was a problem hiding this comment.
We should merge the see it in action section with this one.
Having both feels redundant and unnecessary.
|
|
||
|  | ||
|
|
||
| # Two ways to receive events {% #delivery %} |
There was a problem hiding this comment.
This can be a subsection of the What are MCP Events section
|
|
||
| Because subscriptions are ordinary webhooks, you can see them in the Appwrite Console under your project's webhooks, named `MCP events` or `MCP events push`. They are deleted when you unsubscribe or close the stream, and if a client disappears without cleaning up, the short lease means its webhook expires on its own and is removed the next time you subscribe. | ||
|
|
||
| # Security and permissions {% #security %} |
There was a problem hiding this comment.
This section is not needed for the announcement. It can live in the docs
| - **Untrusted by default.** Event payloads are external data. Clients such as `pi-mcp-events` hand them to the model as data rather than as new instructions, so a user's name cannot hijack your agent. | ||
|
|
||
| # Limits {% #limits %} | ||
|
|
There was a problem hiding this comment.
This section is not needed in the announcement. It can live in the docs
|
|
||
| Each user can keep up to 25 streams open on each server instance. Events that happen while a stream is reconnecting are not replayed, so for critical workflows, have the agent re-check the current state after it reconnects. | ||
|
|
||
| # Try it with Pi {% #try-it %} |
There was a problem hiding this comment.
On second thought, I would not mind it if we shift the "How it works" section into the docs and just keep the "Try it out" section in the announcement. We can also probably have a separate blog on the details of how MCP events work if we need to but for the announcement this seems to be too long of a blog.
@atharvadeosthale what do you think?
…the Pi screenshot
…vents # Conflicts: # apps/console/src/lib/blog/generated/manifest.ts
What does this PR do?
Adds a blog post announcing MCP Events for the Appwrite MCP server (
mcp.appwrite.io). An agent can subscribe to project events such as new users, failed function executions, finished deployments and new documents. Events then arrive either over a push stream (events/stream) or at the agent's own webhook.The post covers:
It includes a 58s demo video. In the video, Pi subscribes to
users.user.created, Codex creates a user, Pi wakes up within about a second and reports the user, then unsubscribes.Files:
apps/console/src/content/blog/posts/announcing-mcp-events.markdocapps/console/public/images/blog/announcing-mcp-events/:/generator/covercli-codetemplate)apps/console/src/content/docs/tooling/ai/mcp-servers/index.markdoc: new Events section covering available events, delivery modes, subscriptions and permissions, limits, and a Pi walkthrough. Also adds Events to the feature list.apps/console/src/content/docs/advanced/self-hosting/mcp/index.markdoc: notes that the local stdio server does not support Events.manifest.tsandcover-dimensions.json. This also picks up 2 Firewall post title updates and a changelog cover entry that earlier merges never regenerated.Preview
Deployed from this branch to an Appwrite Sites preview:
Screenshots
Cover
Pi subscribes to
users.user.createdCodex creates a user, Pi wakes up and reports it
Pi unsubscribes and confirms no managed webhooks remain
Demo video: mcp-events-demo.mp4
Test Plan
bun run lint:contentandbun run lint:removed-blog-linkspass.Related PRs and Issues
Closes appwrite/mcp#127