Whimsical MCP - events and webhooks

Agents connected to Whimsical's remote MCP server can subscribe to what happens in a workspace and get a signed webhook when it does. Your agent doesn't need to poll. It can react to a new comment or a finished round of edits, like a teammate would.

This article is for developers building their own agents. If you use an assistant such as ChatGPT or Claude, see Whimsical MCP - supported tools.

How it worksCopied!Link to this section

Whimsical's remote MCP server supports MCP Events (the io.modelcontextprotocol/events extension) with webhook delivery.

  1. The server advertises events in its initialize capabilities.
  2. Your agent calls events/list to get the event types, with the arguments each one takes and the shape of its payload.
  3. It calls events/subscribe with an event name, its arguments, and a webhook URL and secret.
  4. Whimsical sends a verification request to the URL. Once it passes, Whimsical posts each event there as it happens.
  5. To keep a subscription, the agent calls events/subscribe again before its refreshBefore time. To stop it, the agent calls events/unsubscribe.

Delivery is webhook only, and there's no replay: cursor is always null. Whimsical retries a failed delivery a few times, but it doesn't keep events for later.

EventsCopied!Link to this section

  • resource.created: a board, doc, folder or multipage file was created.
  • resource.moved: one moved to another folder. The payload includes old_parent_id.
  • resource.removed: one was moved to the trash. It can still be restored.
  • resource.restored: one was restored from the trash.
  • resource.deleted: one was deleted for good. The payload has no url.
  • file.edited: a board or doc was edited, then had no edits from anyone for quiet_minutes. The payload lists the authors and the first and last change times. Read the changes with the history tool.
  • comment.created: a comment or reply was posted. The payload includes thread_id, reply, the author and the comment's text, cut at 2,000 characters. Read the thread with comment_read.
  • comments.batch: comments were posted on a board or doc, then none for quiet_minutes. One event lists the count and the comment_ids.

Every event's payload follows the payloadSchema that events/list returns for it.

SubscribeCopied!Link to this section

events/subscribe takes:

  • name: one of the events above.
  • arguments.file_id: a board or doc to watch, by its id or Whimsical link.
  • arguments.folder_id: a folder or section, by id or link. Only events for items directly inside it are sent.
  • Neither file_id nor folder_id: the whole workspace the connection is bound to.
  • arguments.quiet_minutes: for file.edited and comments.batch only. From 1 to 1,440. The default is 10.
  • delivery: mode set to webhook, a url, and a secret. The URL must use HTTPS and can't contain credentials or a fragment. The secret is whsec_ followed by 24 to 64 base64-encoded bytes.
  • ttlMs (optional): how long the subscription lasts. The default is 7 days, the minimum 1 hour and the maximum 30 days. It never lasts longer than the connection's access token.

The response gives the subscription's id and its refreshBefore time. Subscribing again with the same event, scope and URL refreshes the same subscription, and can change its quiet_minutes. events/unsubscribe takes the same name, arguments and delivery.url.

Verify your endpointCopied!Link to this section

When you subscribe, Whimsical posts {"type": "verification", "challenge": "..."} to your URL, signed like any event. Answer with status 200 and {"challenge": "..."}, echoing the same value.

  • Redirects fail verification. Point the subscription at the final URL.
  • If verification fails, events/subscribe returns JSON-RPC error -32015 with the reason in its data.

Receive eventsCopied!Link to this section

Each event is a JSON POST signed with Standard Webhooks. Check the signature with your secret, using any Standard Webhooks library, before you trust the body. The request has these headers:

  • webhook-id: the event's id. A retry sends the same id, so use it to skip duplicates.
  • webhook-timestamp and webhook-signature: for checking the signature.
  • X-MCP-Subscription-Id: the subscription the event is for.

The body has the event's eventId, name, timestamp and data, and cursor: null.

  • Reply quickly with a 2xx status.
  • Status 408, 429 or any 5xx is retried a few times.
  • Status 410 ends the subscription.
  • Other 4xx statuses aren't retried.

Access and limitsCopied!Link to this section

  • When the connection's access token expires or is revoked, deliveries stop. Subscribe again with the new token.
  • Whimsical checks access again before each delivery. The agent only hears about files its user can open, and a workspace-wide subscription leaves out files that are only shared by link.
  • Changes made by the subscribing agent itself, with the same user and OAuth client, don't send events.
  • Each user can have up to 100 subscriptions in a workspace.

Which clients support eventsCopied!Link to this section

ChatGPT supports MCP events today, with webhook delivery. Other MCP clients may not support them yet. If you build your own agent, you can send events/subscribe with any MCP client library that lets you send custom requests.


Frequently asked questionsCopied!Link to this section

Does an event make the AI do something on its own?Copied!Link to this section

An event tells the agent that something happened. What it does next is up to the agent. That's what lets it react to a comment or an edit without anyone asking it first.

Does every AI assistant support events?Copied!Link to this section

Not yet. ChatGPT supports them today. For other assistants, check their MCP documentation.


Related articles