The wake-up call for AI agents
Send MCP Events from your server and wake agents the moment they happen.
Works with
- Codex, ChatGPT (Work chats on the web)
- Cursor
- Claude Code, Claude Cowork
- Copilot CLI
- opencode
- Antigravity
- pi
- Hermes Agent
- Grok Bot
Your users connect your server and you can wake their agents
-
Users connect your MCP server
Nothing changes for them. They don't sign up for Wakeshift or see a Wakeshift screen. Connecting your server is the consent and it's recorded in an audit log.
-
Their agent subscribes
Your
start_crawltool subscribes the session it was called from, or the user asks their agent to watch for an update. -
You emit and the agent wakes
When the crawl finishes your backend calls
emit. The session that subscribed wakes up and carries on. The event is marked as coming from your app, so the agent doesn't mistake it for an instruction from its user.
Sending an event isn't enough if nothing wakes the agent
Polling burns tokens and misses results. Most agents can't subscribe to MCP Events yet, and most clients that can subscribe follow earlier drafts. Wakeshift delivers your events per the final spec, speaks each client's draft and bridges to the agents that can't subscribe: Claude Code, Codex, Cursor, Copilot CLI and more.
Polling
What agents do todayThe agent finds out late or never.
while (!done) { done = await check_crawl("example.com") await sleep(30_000) // and again, and again }
- Spends calls and tokens when nothing has changed
- Always lags behind by up to a full polling interval
- Stops when the conversation ends, so your user never gets the result
Events alone
No wake layerMost of your users' agents never hear it.
// POST https://their-callback/… { "event": "crawl.finished" } // Claude Code, Codex, Cursor: nothing
- Only reaches clients with built-in MCP events support
- Claude Code, Codex and Cursor can't subscribe yet, so they get nothing
- Webhooks require a public callback URL most local agents don't have
Woken
With WakeshiftThe agent wakes up and acts on it.
await crawlFinished.emit({ site: "example.com" }, { pages: 1834 }) // the conversation that subscribed wakes up // and picks up where it left off
- Wakes the session that subscribed, in Claude Code, Codex, Cursor and more
- One integration for every agent: zero setup for most users, a one-time install for the rest
- Arrives in seconds, not on the next polling tick
Built for work that outlives a tool call
Your tool returns right away, while the real work takes minutes, hours or days. When it finishes, the agent wakes up and hands your user the result.
A job finishes
A render, crawl or build finishes long after the tool returns. Without a wake-up, the agent either burns turns checking or never comes back for the result.
Long-running jobsA person replies
An email, text or approval comes back tomorrow. No agent is still waiting around by then.
Waiting on a personSomething changes
An alert fires, a price drops or a deploy breaks. The second your backend knows, the agent knows too.
How events workThree calls to wire it in
defineEventDefine an event with typed arguments and payload.
attachHook Wakeshift into your MCP server so agents can subscribe.
emitCall it from the webhook handler you already have, or have another service post to a publish URL. Every subscriber wakes.
Subscribe right inside your tools. Have start_crawl subscribe the caller automatically, so the agent hears back when the crawl finishes without the user having to ask. See the tool
SDKs for TypeScript, Python and Go, or any language over HTTP
import { createServer } from "node:http"import { McpServer, createMcpHandler } from "@modelcontextprotocol/server"import { toNodeHandler } from "@modelcontextprotocol/node"import { Wakeshift } from "@wakeshift/sdk"import { z } from "zod"const wake = new Wakeshift() // reads WAKESHIFT_KEYconst crawlFinished = wake.defineEvent("crawl.finished", { description: "A site crawl finished", args: z.object({ site: z.string() }), payload: z.object({ pages: z.number() }), text: (crawl, { site }) => `Crawl of ${site} finished: ${crawl.pages} pages`, public: true, // open to every agent, not only your tools})const mcp = createMcpHandler(() => { const server = new McpServer({ name: "crawler", version: "1.0.0" }) wake.attach(server) // agents can now subscribe return server})createServer(toNodeHandler(mcp)).listen(3000)// When the crawl finishes, wake every agent waiting on itawait crawlFinished.emit({ site: "example.com" }, { pages: 1834 })
import asynciofrom mcp.server.mcpserver import MCPServerfrom pydantic import BaseModelfrom wakeshift import Wakeshiftclass Site(BaseModel): site: strclass Crawl(BaseModel): pages: intwake = Wakeshift() # reads WAKESHIFT_KEYcrawl_finished = wake.define_event( "crawl.finished", description="A site crawl finished", args=Site, payload=Crawl, text=lambda crawl, s: f"Crawl of {s.site} finished: {crawl.pages} pages", public=True, # open to every agent, not only your tools)server = MCPServer("crawler")wake.attach(server) # agents can now subscribe# When the crawl finishes, wake every agent waiting on itasyncio.run(crawl_finished.emit({"site": "example.com"}, {"pages": 1834}))
package crawlerimport ( "context" "fmt" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/wakeshift/wakeshift-go")func Serve(ctx context.Context, srv *mcp.Server, key string) error { wake, err := wakeshift.New(wakeshift.WithKey(key)) if err != nil { return err } crawlFinished, err := wakeshift.DefineEvent(wake, "crawl.finished", wakeshift.EventDef[Site, Crawl]{ Description: "A site crawl finished", Public: true, // open to every agent, not only your tools Text: func(c Crawl, s Site) string { return fmt.Sprintf("Crawl of %s finished: %d pages", s.Site, c.Pages) }, }) if err != nil { return err } wake.Attach(srv, wakeshift.AttachOptions{}) // agents can now subscribe // When the crawl finishes, wake every agent waiting on it _, err = crawlFinished.Emit(ctx, Site{"example.com"}, Crawl{1834}) return err}type Site struct { Site string `json:"site"`}type Crawl struct { Pages int `json:"pages"`}
Apps built on Wakeshift
Run it yourself or let us host it
Wakeshift is an open-source server that delivers your MCP server's events per the final spec and wakes the agents that can't subscribe yet. Run it yourself or use ours.
Run it yourself
The same server, open source under Apache-2.0. Run it on your own infrastructure.
Self-host WakeshiftLet us host it
We handle the database, scaling and certificates. The published agent plugins already trust our service. Free up to 50,000 deliveries a month.
Start freeStart free and pay as your app grows
Every plan includes 50,000 deliveries a month. You don't pay for retries or for events that no agent receives.
Free
Build and try your app.
- 50,000 deliveries a month
- 10 deliveries a second
- 7 days of event history
Starter
Run your app in production.
- 50,000 deliveries a month included
- 50 deliveries a second
- 30 days of event history
Custom
For apps that outgrow Starter. Tell us your volume and we'll quote a price.
- Volume discounts and custom throughput
- SSO and data residency
- A named contact
A delivery is one event reaching one agent. Compare plans
Prefer to run it yourself? The server is open source
Get an agent waking in five minutes
Add events to your MCP server
Follow the quickstart to wire up your first event and wake a real agent.
Get startedTry it first
Grab a webhook URL that wakes your own agent on every POST. No sign-up, no server required.
Try it nowAdd Wakeshift to this MCP server following https://wakeshift.ai/AGENTS.mdLet your agent add it
Paste this into Claude Code, Codex or Cursor inside your MCP server repo. It'll suggest events, wire up the ones you pick and verify an agent wakes.
Learn more in the quickstartWant to talk before you try it? Talk to us