server

module
v0.0.0-...-efa2025 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0

README

Wakeshift

Wakeshift lets an MCP server wake the AI agents that use it.
This is its server: run it yourself, or use the hosted service at wakeshift.ai.

Docs · How it works · Try it · Self-hosting · Agents

CI

Your MCP server has events: a build finished, a reply arrived, a job is done. MCP Events (SEP-3415) is the standard way to offer them, and few agents subscribe to it yet (opencode 2.4 does): Claude Code, Codex, Cursor and most others never hear about your event. This server closes that gap. Run it next to your MCP server and:

  • Clients that speak MCP Events get the standard. The server holds each subscription and delivers every occurrence by webhook, poll or push (events/stream), with the per-client compatibility today's clients need (docs/mcp-events.md).
  • Clients that don't are woken anyway. Claude Code, Codex, Cursor, GitHub Copilot CLI, opencode, pi, Antigravity CLI, OpenClaw, Hermes Agent and others are woken in the conversation that subscribed, through a bridge built for each one (docs/harnesses.md).
  • Webhooks become events. Point GitHub, Stripe, CI or any other webhook sender at a publish URL, and each POST reaches every subscribed agent, by push or by wake. You write no handler.

Your code is the same for every agent. The SDKs attach to the MCP server you already have.

Try it with your agent

Webhooks (apps/try) is a small app on this server that gives you a webhook URL: each POST to it wakes the agent watching it. It needs Docker, and no code. (To see a wake without running anything, use the hosted one at https://try.wakeshift.ai.) In a clone of this repository:

sh deploy/webhooks-env.sh                        # once: writes .env with fresh keys and secrets
docker compose --profile webhooks up --build     # or both at once: make webhooks
  1. Open http://localhost:8380 and choose Get a link.

  2. Pick your agent on the link's page (Claude Code, Codex, Cursor, opencode and others) and run the command it shows, such as claude mcp add --transport http webhooks http://localhost:8380/t/…/mcp. Then ask the agent to watch for webhooks.

  3. Post to the webhook URL the page shows:

    curl -X POST 'http://localhost:8380/in/…' -H 'Content-Type: application/json' -d '{"hello":"world"}'
    

    The agent wakes with what you posted, and the page shows the post arrive. (Without the Content-Type, curl sends a form, and the agent gets it as one.)

Claude Code is woken with nothing more to install (it runs a background wait). Codex and the other agents that need Wakeshift's connector need this server to serve it (the connector and installs).

Everything listens on 127.0.0.1 only. docker compose --profile webhooks down -v stops it and removes its data. Plain docker compose up leaves Webhooks out. Its settings are in self-hosting.

Run it

Prerequisites

  • Git to clone this repository and openssl to generate the server secret.
  • A running Docker engine with the Compose plugin. On macOS, install and open Docker Desktop for your Mac's chip. Complete its first-run prompts and wait for the engine to start. On Linux, your user needs access to the Docker daemon: add it to the docker group, or the first command fails with permission denied. Run docker compose version and docker info before continuing. If Docker Desktop is running but its CLI is missing on macOS, open a new terminal or add $HOME/.docker/bin to PATH when using Docker Desktop's user CLI installation.
  • Port 8370 free for Wakeshift. Compose also uses port 5439 for Postgres. See the override below if 5439 is in use.
  • For the JavaScript example, Node.js 22.12 or later and npm. Check them with node --version and npm --version.
  • To test a real wake, install one interactive harness (claude or codex) and have a way to authenticate. The user enters their Anthropic API key locally for Claude Code or completes codex login in a browser for Codex. Have the user handle sign-in and hook approval in their own terminal. Keep API keys out of chat and source control.
  • Install Go 1.27 to build the Codex connector, render a local Claude Code marketplace, or run the console with make run. Check go version from the clone. The Codex installer also needs curl and shasum or sha256sum. The console also needs Node.js.

Clone this repository and run the following from the clone. Keep this terminal open so the server stays running.

git clone https://github.com/wakeshift/server.git
cd server
docker compose run --build --rm --no-deps --entrypoint /appkey server -app example
export WAKESHIFT_APPS='<the JSON after WAKESHIFT_APPS= in what it printed>'
export WAKESHIFT_SECRET_KEY=$(openssl rand -base64 48)
docker compose up --build

The first command makes your app's key and prints two lines:

  • WAKESHIFT_KEY=wst_…: your app's private key. Put it in your MCP server's environment, with WAKESHIFT_CORE=http://localhost:8370, and keep it out of version control.
  • WAKESHIFT_APPS=[…]: the app's public key, which registers it with the server.

docker compose up then starts Postgres 17 and the server at http://localhost:8370, both on this machine's loopback only. Postgres is published on 127.0.0.1:5439; if that port is taken, export WAKESHIFT_DB_PORT=5440 (or any free port) first. The server migrates the database at startup, and MCP Events push is on. To sign in to the console on your own machine, use make run instead (self-hosting); to run the server anywhere else, see docs/self-hosting.md.

To stop, press Ctrl-C; docker compose down -v then removes the database. Apps registered through WAKESHIFT_APPS work with the SDKs but don't appear in the console's app list, which shows only the apps people create there.

1. Attach the SDK

In a second terminal, create a directory for the JavaScript example or use your existing MCP server's project. The Python and Go SDKs are also available.

npm install @wakeshift/sdk @modelcontextprotocol/server zod

Save this example as server.mjs. Export the WAKESHIFT_KEY printed by /appkey and set WAKESHIFT_CORE=http://localhost:8370 in the terminal that will launch your harness.

import { McpServer } from "@modelcontextprotocol/server"
import { StdioServerTransport } from "@modelcontextprotocol/server/stdio"
import { Wakeshift } from "@wakeshift/sdk"
import { z } from "zod"

const server = new McpServer({ name: "my-server", version: "1.0.0" }) // or your existing one
const wake = new Wakeshift() // reads WAKESHIFT_KEY and WAKESHIFT_CORE from the environment

export const buildFinished = wake.defineEvent("build.finished", {
  description: "A CI build finished",
  args: z.object({ repo: z.string() }),
  payload: z.object({ status: z.string() }),
  public: true, // open to subscribe_events and to MCP Events clients
})

if (process.argv[2] === "emit") {
  await buildFinished.emit({ repo: "api" }, { status: "passed" })
} else {
  wake.attach(server)
  await server.connect(new StdioServerTransport())
}

attach answers events/list, events/subscribe, events/poll and events/stream, and adds a subscribe_events tool for agents whose clients don't speak MCP Events. Tools of your own can subscribe the conversation that called them too (events), and who may subscribe covers personal, authorize and the default, where only your tools subscribe.

2. Point your webhooks at it

Make a publish URL for the event, and give it to the service that sends the webhooks:

const { url } = await buildFinished.createPublishUrl({ repo: "api" })

Each POST to url emits one occurrence, with the body as its payload. Or emit from your own code: await buildFinished.emit({ repo: "api" }, { status: "passed" }). Publish URLs covers signed senders (Svix and Standard Webhooks), retries and revoking.

3. Get push, and wake an agent

  • A client that speaks MCP Events (Mastra, opencode 2.4 and later) subscribes to build.finished itself and gets each occurrence on its events/stream request, in order, with no public URL. A native subscription to a public event belongs to a user, so it needs your server's sign-in (attach's identify); without sign-in, a tool of yours hands the client a one-time voucher instead (who may subscribe).
  • Claude Code can wake through a background Monitor. To test hook-based wakes, render a marketplace for your server, add its local path with claude plugin marketplace add /absolute/path/to/agent-plugins, and install with claude plugin install wakeshift@wakeshift. Register the example with claude mcp add --scope user example -- node /absolute/path/to/server.mjs. Open an interactive claude session.
  • Codex needs a connector that trusts this server. Follow the connector build and Compose volume steps, then download the local installer with curl --fail --silent --show-error http://localhost:8370/install/codex.sh -o install-codex.sh and run sh install-codex.sh. Register the example with codex mcp add example -- node /absolute/path/to/server.mjs. Open an interactive session with plain codex and approve the Wakeshift hooks when prompted. Idle wakes need Codex’s background server. Put any configuration overrides in config.toml and launch without -c or --no-daemon. If you use a throwaway CODEX_HOME on macOS, choose a short absolute path so Wakeshift can connect to the Codex control socket.
  • For other agents, see docs/harnesses.md.

In Claude Code or Codex, ask: “Use the example MCP server's subscribe_events tool to watch build.finished for repo api. Then stop and wait. Do not poll.” Confirm the subscription succeeded and wait for the session to become idle. From a separate terminal with the same app key and core URL, run node /absolute/path/to/server.mjs emit. The idle conversation should wake and receive the event. Test one harness at a time so each wake is easy to verify.

Each wake arrives marked as information from your app, never as the user speaking.

Which agents it wakes

Agent How it's woken What the user installs
Claude Code Wakeshift's plugin (hooks that wake an idle session), or a background Monitor the agent starts Nothing, or the plugin
Codex A hook that starts a per-thread connector, which starts a turn through Codex's app server The plugin, once
Cursor, GitHub Copilot CLI, Antigravity CLI A background command the agent starts, which ends when an event arrives Nothing (hooks are optional)
opencode Wakeshift's plugin, or MCP Events push from opencode 2.4 (its default install is still 1.x, which has none) The plugin, once, or nothing on 2.4 and later
pi Wakeshift's extension The extension, once
OpenClaw, Hermes Agent Wakeshift's plugin, which starts a run in the same chat; or their own MCP Events webhooks, which start a new run The plugin, once, or nothing
Claude Cowork A background Monitor inside the task Nothing
ChatGPT (Work chats), Mastra, TanStack AI, Vercel AI SDK Their own MCP Events support Nothing

docs/harnesses.md has every harness, the bridge for each, and the versions tested. To reproduce the matrix with real agents on your machine, see bench/README.md.

SDKs and plugins

Everything an app or an agent's machine runs is open source too, under the same license:

The published plugins trust https://app.wakeshift.ai. Self-hosting says how to point each one at your server.

Or use the hosted service

wakeshift.ai runs this server for you: no database, no scaling, no certificates, and the published plugins already trust it. Your code is the same either way; only WAKESHIFT_CORE changes.

Docs

  • docs/self-hosting.md: settings, sign-in, Postgres, proxies and push in production.
  • docs/mcp-events.md: what the server implements of SEP-3415, and where it deviates.
  • docs/harnesses.md: how each agent is woken.
  • How it works: how a subscription and a wake flow between your app, the server and the agent.
  • bench/README.md: the harness runner, to reproduce the matrix with real agents.
  • docs/codebase.md and AGENTS.md: where things are, and the rules for changing them.
  • wakeshift.ai/docs: the developer documentation (SDKs, events, publish URLs, the HTTP API). site/docs/ is that site's source: its links are site paths and some of it is template placeholders, which don't render on GitHub, so read it there.

Contributing and security

Issues and pull requests are welcome; see CONTRIBUTING. Commits are signed off under the Developer Certificate of Origin. Report a security problem privately, not in an issue: see SECURITY.

License

Apache License 2.0; see LICENSE and NOTICE. The Wakeshift name and logos aren't licensed: see TRADEMARKS.

Directories

Path Synopsis
apps
agentkit
Package agentkit is what Wakeshift's own apps (Agent Chat, the games) do beyond the public Go SDK (wakeshift): loading the app from its deployed key, an agent's sessions and stream links, pull delivery for harnesses nothing can wake (a wait tool, and notes on other tools' results while messages wait), and the house helpers (logging for Cloud Run, MCP request logs, rate limits).
Package agentkit is what Wakeshift's own apps (Agent Chat, the games) do beyond the public Go SDK (wakeshift): loading the app from its deployed key, an agent's sessions and stream links, pull delivery for harnesses nothing can wake (a wait tool, and notes on other tools' results while messages wait), and the house helpers (logging for Cloud Run, MCP request logs, rate limits).
agentpicker
Package agentpicker renders the "connect your agent" picker every demo app shows: a row of agents (tiers 1 and 2), "More agents" for the rest, and for the one chosen, how to add the app, what to say, and whether it's woken while idle and what to install or approve.
Package agentpicker renders the "connect your agent" picker every demo app shows: a row of agents (tiers 1 and 2), "More agents" for the rest, and for the one chosen, how to add the app, what to say, and whether it's woken while idle and what to install or approve.
email
Package email lays out the transactional email Wakeshift and its apps send: one HTML template (tables, inline styles, 560 pixels wide, so it holds up in Gmail, Outlook and Apple Mail) and the plain text sent beside it.
Package email lays out the transactional email Wakeshift and its apps send: one HTML template (tables, inline styles, 560 pixels wide, so it holds up in Gmail, Outlook and Apple Mail) and the plain text sent beside it.
email/emailtest
Package emailtest checks a rendered email against its golden files, testdata/<name>.html and testdata/<name>.txt.
Package emailtest checks a rendered email against its golden files, testdata/<name>.html and testdata/<name>.txt.
gamekit
Package gamekit is what Wakeshift's game apps (Secret Agent, Nightfall, Sketch Stadium) share: an MCP server with players' sign-in (oauth.go), the calling conversation's session, rooms (seats, each with its conversation's game.update subscription, the moderator's announcements, players' talk and a log, sent to the seated players: events.go, outbox.go), and signed follow-along links to a page where a player's operator watches.
Package gamekit is what Wakeshift's game apps (Secret Agent, Nightfall, Sketch Stadium) share: an MCP server with players' sign-in (oauth.go), the calling conversation's session, rooms (seats, each with its conversation's game.update subscription, the moderator's announcements, players' talk and a log, sent to the seated players: events.go, outbox.go), and signed follow-along links to a page where a player's operator watches.
gamekit/gametest
Package gametest helps test the game apps: a database of the game's own, its timers running, several instances of a game behind one URL (as Cloud Run serves them), and agents that play.
Package gametest helps test the game apps: a database of the game's own, its timers running, several instances of a game behind one URL (as Cloud Run serves them), and agents that play.
legal
Package legal serves an app's terms and privacy policy, from Markdown embedded in the app, at /terms (and /tos) and /privacy on the app's own host.
Package legal serves an app's terms and privacy policy, from Markdown embedded in the app, at /terms (and /tos) and /privacy on the app's own host.
legal/legaltest
Package legaltest checks that an app serves its own legal pages.
Package legaltest checks that an app serves its own legal pages.
linkpreview
Package linkpreview writes the tags a page's link preview is made from, when someone shares its link in iMessage, Slack, X, LinkedIn, Discord, WhatsApp and the like: Open Graph's, X's (twitter:), and the canonical link.
Package linkpreview writes the tags a page's link preview is made from, when someone shares its link in iMessage, Slack, X, LinkedIn, Discord, WhatsApp and the like: Open Graph's, X's (twitter:), and the canonical link.
linkpreview/previewtest
Package previewtest checks that an app's page has a link preview (apps/linkpreview).
Package previewtest checks that an app's page has a link preview (apps/linkpreview).
secretagent
Package secretagent is Secret Agent: a three-player social deduction game for agents (Claude Code, Codex and others, of different people).
Package secretagent is Secret Agent: a three-player social deduction game for agents (Claude Code, Codex and others, of different people).
bench
app/go/gosdk command
Command gosdk is the bench's toy app on the official Go MCP SDK (github.com/modelcontextprotocol/go-sdk), wrapped with the Go SDK (pkg/wakeshift), served as the SDK's README serves a stateless Streamable HTTP server (WB_APP=go-sdk; bench/app/CONTRACT.md).
Command gosdk is the bench's toy app on the official Go MCP SDK (github.com/modelcontextprotocol/go-sdk), wrapped with the Go SDK (pkg/wakeshift), served as the SDK's README serves a stateless Streamable HTTP server (WB_APP=go-sdk; bench/app/CONTRACT.md).
app/go/mcpgo command
Command mcpgo is the bench's toy app on mark3labs/mcp-go (github.com/mark3labs/mcp-go), wrapped with the Go SDK's mcp-go adapter (pkg/wakeshift/mcpgo), served as mcp-go's README serves a Streamable HTTP server (WB_APP=go-mcpgo; bench/app/CONTRACT.md).
Command mcpgo is the bench's toy app on mark3labs/mcp-go (github.com/mark3labs/mcp-go), wrapped with the Go SDK's mcp-go adapter (pkg/wakeshift/mcpgo), served as mcp-go's README serves a Streamable HTTP server (WB_APP=go-mcpgo; bench/app/CONTRACT.md).
app/go/toy
Package toy is what the bench's Go toy apps share (bench/app/CONTRACT.md): the contract's words, the event, the bench's side API and the plumbing around the MCP endpoint.
Package toy is what the bench's Go toy apps share (bench/app/CONTRACT.md): the contract's words, the event, the bench's side API and the plumbing around the MCP endpoint.
cmd
appkey command
Command appkey makes an app's Ed25519 key.
Command appkey makes an app's Ed25519 key.
wakeshift command
Command wakeshift runs the Wakeshift server.
Command wakeshift runs the Wakeshift server.
wakeshift-agent-plugins command
Command wakeshift-agent-plugins writes Wakeshift's plugin marketplace, github.com/wakeshift/agent-plugins (plugins/agent-plugins), into a directory for one Wakeshift, keeping each plugin's pinned connector unless told to stamp it with a release's:
Command wakeshift-agent-plugins writes Wakeshift's plugin marketplace, github.com/wakeshift/agent-plugins (plugins/agent-plugins), into a directory for one Wakeshift, keeping each plugin's pinned connector unless told to stamp it with a release's:
wakeshift-connector command
Command wakeshift-connector is Wakeshift's connector on users' machines, installed as ~/.wakeshift/bin/wakeshift by /install/<harness>.sh: it lets Wakeshift messages wake their agents' conversations in local harnesses (Codex, Claude Code, Cursor, Copilot CLI, opencode, pi, Antigravity).
Command wakeshift-connector is Wakeshift's connector on users' machines, installed as ~/.wakeshift/bin/wakeshift by /install/<harness>.sh: it lets Wakeshift messages wake their agents' conversations in local harnesses (Codex, Claude Code, Cursor, Copilot CLI, opencode, pi, Antigravity).
internal
accounts
Package accounts stores people (users), how they sign in (identities) and which workspaces they belong to (memberships).
Package accounts stores people (users), how they sign in (identities) and which workspaces they belong to (memberships).
adminapi
Package adminapi is the core's internal admin API: the only way the admin service changes core data.
Package adminapi is the core's internal admin API: the only way the admin service changes core data.
agenthooks
Package agenthooks is agent-hosted webhook delivery: a conversation whose harness wakes it when a URL the agent made is POSTed to registers that URL, and Wakeshift POSTs the conversation's messages there.
Package agenthooks is agent-hosted webhook delivery: a conversation whose harness wakes it when a URL the agent made is POSTed to registers that URL, and Wakeshift POSTs the conversation's messages there.
agents
Package agents stores agents: durable roles such as claude-code or codex-reviewer.
Package agents stores agents: durable roles such as claude-code or codex-reviewer.
appapi
Package appapi is the API apps call, under /api/apps/v1.
Package appapi is the API apps call, under /api/apps/v1.
appkey
Package appkey reads and writes app keys: the app's Ed25519 private key, as the console shows it once.
Package appkey reads and writes app keys: the app's Ed25519 private key, as the console shows it once.
apps
Package apps is the platform's app registry: the products built on Wakeshift (Agent Chat, Sources), what each may do (its manifest), and how each proves who it is (a signed assertion).
Package apps is the platform's app registry: the products built on Wakeshift (Agent Chat, Sources), what each may do (its manifest), and how each proves who it is (a signed assertion).
audit
Package audit is the workspace's append-only record of consents and revocations: who allowed an app to act for an agent, who signed an agent in, and what was revoked, by whom or by what.
Package audit is the workspace's append-only record of consents and revocations: who allowed an app to act for an agent, who signed an agent in, and what was revoked, by whom or by what.
auth
Package auth signs people in to the console and keeps them signed in.
Package auth signs people in to the console and keeps them signed in.
beacon
Package beacon is the connector beacon: what a Wakeshift tool result carries for Wakeshift's hook on the user's machine, in _meta["wakeshift/connector"] (the model never sees _meta) or, for harnesses whose hooks see only the result's text, in a line of it (Text).
Package beacon is the connector beacon: what a Wakeshift tool result carries for Wakeshift's hook on the user's machine, in _meta["wakeshift/connector"] (the model never sees _meta) or, for harnesses whose hooks see only the result's text, in a line of it (Text).
botkeys
Package botkeys is how a Grok Bot proves to Wakeshift that it's the bot a session recorded: the bot makes an Ed25519 key with openssl in a protected file in its own folder (~/.local/share/wakeshift/<bot id>/signing.pem), and signs challenges Wakeshift issues with it.
Package botkeys is how a Grok Bot proves to Wakeshift that it's the bot a session recorded: the bot makes an Ed25519 key with openssl in a protected file in its own folder (~/.local/share/wakeshift/<bot id>/signing.pem), and signs challenges Wakeshift issues with it.
codexconnector
Package codexconnector delivers one Codex thread's Wakeshift events into that thread.
Package codexconnector delivers one Codex thread's Wakeshift events into that thread.
config
Package config reads the server's configuration from the environment.
Package config reads the server's configuration from the environment.
connectcli
Package connectcli is the wakeshift command on users' machines (built from cmd/wakeshift-connector, installed as ~/.wakeshift/bin/wakeshift by /install/<harness>.sh):
Package connectcli is the wakeshift command on users' machines (built from cmd/wakeshift-connector, installed as ~/.wakeshift/bin/wakeshift by /install/<harness>.sh):
connector
Package connector is what runs on a user's machine to let Wakeshift messages wake an agent's conversation in a local harness (Cursor, Copilot CLI, opencode, Antigravity, Claude Code; Codex has its own runtime in internal/codexconnector but shares the trust model here).
Package connector is what runs on a user's machine to let Wakeshift messages wake an agent's conversation in a local harness (Cursor, Copilot CLI, opencode, Antigravity, Claude Code; Codex has its own runtime in internal/codexconnector but shares the trust model here).
connectorversion
Package connectorversion is how Wakeshift's connectors (the hooks, the connector for Codex and the plugins on users' machines) say which version they are, and how the core decides one is too old to serve.
Package connectorversion is how Wakeshift's connectors (the hooks, the connector for Codex and the plugins on users' machines) say which version they are, and how the core decides one is too old to serve.
console
Package console is the API behind the React console: agents and their stream links, subscriptions and the event log.
Package console is the API behind the React console: agents and their stream links, subscriptions and the event log.
core
Package core assembles the server: sign-in, token signing (and the refusals of Sign in with Wakeshift for apps, now turned off), the console and app APIs, delivery streams, and the background work (the pipeline runner and notification listener).
Package core assembles the server: sign-in, token signing (and the refusals of Sign in with Wakeshift for apps, now turned off), the console and app APIs, delivery streams, and the background work (the pipeline runner and notification listener).
coretest
Package coretest runs a whole Wakeshift core in a test (the same setup as the server) and acts as its users, agents and apps.
Package coretest runs a whole Wakeshift core in a test (the same setup as the server) and acts as its users, agents and apps.
db
Package db is Wakeshift's access to Postgres.
Package db is Wakeshift's access to Postgres.
dblimit
Package dblimit counts request limits in Postgres (the rate_counts table), so a limit holds across the core's instances rather than per instance in memory.
Package dblimit counts request limits in Postgres (the rate_counts table), so a limit holds across the core's instances rather than per instance in memory.
dbtest
Package dbtest gives tests their own migrated database.
Package dbtest gives tests their own migrated database.
deliveries
Package deliveries is the outbox: what each agent (or session) is owed, and how far each delivery got.
Package deliveries is the outbox: what each agent (or session) is owed, and how far each delivery got.
downloads
Package downloads serves Wakeshift's connector (wakeshift) and its per-harness installers, and the plugins for harnesses that take one.
Package downloads serves Wakeshift's connector (wakeshift) and its per-harness installers, and the plugins for harnesses that take one.
events
Package events is the event log: append-only, per tenant, in one order.
Package events is the event log: append-only, per tenant, in one order.
framing
Package framing is how every Wakeshift message is put in front of a model: a short plain preface saying it comes from outside the conversation and isn't the user's instruction, and how to answer, then each message in a tag
Package framing is how every Wakeshift message is put in front of a model: a short plain preface saying it comes from outside the conversation and isn't the user's instruction, and how to answer, then each message in a tag
grants
Package grants records consents.
Package grants records consents.
harnesses
Package harnesses is what Wakeshift's core knows about each agent harness: how to recognize it (the MCP clientInfo name it sends, else a _meta key or User-Agent token only it sends: Recognize), how its conversations are woken, how a tool result's beacon reaches its hook and is bound to the conversation, and what to tell its agent about installing Wakeshift's hooks (the install command and the harness's own trust step).
Package harnesses is what Wakeshift's core knows about each agent harness: how to recognize it (the MCP clientInfo name it sends, else a _meta key or User-Agent token only it sends: Recognize), how its conversations are woken, how a tool result's beacon reaches its hook and is bound to the conversation, and what to tell its agent about installing Wakeshift's hooks (the install command and the harness's own trust step).
hookproof
Package hookproof is what a connector hook's own key signs for redeem by call: the core (appapi) checks it, the hook (connector) makes it.
Package hookproof is what a connector hook's own key signs for redeem by call: the core (appapi) checks it, the hook (connector) makes it.
httpx
Package httpx holds the JSON API's response and request helpers.
Package httpx holds the JSON API's response and request helpers.
iap
Package iap verifies the identity that Google's Identity-Aware Proxy puts on every request it lets through to a backend: the signed header x-goog-iap-jwt-assertion.
Package iap verifies the identity that Google's Identity-Aware Proxy puts on every request it lets through to a backend: the signed header x-goog-iap-jwt-assertion.
iap/iaptest
Package iaptest signs IAP assertions for tests, with a key of its own that the Verifier it makes trusts in place of IAP's.
Package iaptest signs IAP assertions for tests, with a key of its own that the Verifier it makes trusts in place of IAP's.
jws
Package jws signs and verifies compact JWS tokens with Ed25519 (EdDSA): the access tokens Wakeshift issues and the assertions apps sign.
Package jws signs and verifies compact JWS tokens with Ed25519 (EdDSA): the access tokens Wakeshift issues and the assertions apps sign.
mail
Package mail sends the core's email: organization invites and the waitlist's invitations.
Package mail sends the core's email: organization invites and the waitlist's invitations.
mcpevents
Package mcpevents is Wakeshift's side of MCP Events webhook delivery: how ChatGPT (and any client of the MCP Events extension, SEP-3415) is woken.
Package mcpevents is Wakeshift's side of MCP Events webhook delivery: how ChatGPT (and any client of the MCP Events extension, SEP-3415) is woken.
mcpevents/clientsgen
Package clientsgen writes the copies of the MCP Events client table: sdk/typescript/test/mcp-events-clients.json is the one source; the core embeds a byte-for-byte copy (internal/mcpevents/event, which the Go SDK compiles in), and the TypeScript and Python SDKs ship it as generated constants.
Package clientsgen writes the copies of the MCP Events client table: sdk/typescript/test/mcp-events-clients.json is the one source; the core embeds a byte-for-byte copy (internal/mcpevents/event, which the Go SDK compiles in), and the TypeScript and Python SDKs ship it as generated constants.
mcpevents/clientsgen/gen command
Command gen writes the MCP Events client table's generated copies (package clientsgen).
Command gen writes the MCP Events client table's generated copies (package clientsgen).
mcpevents/event
Package event is the MCP Events contract an app's MCP server and the core share: dialects, error codes, capability keys and headers.
Package event is the MCP Events contract an app's MCP server and the core share: dialects, error codes, capability keys and headers.
notify
Package notify fans Postgres notifications out to the goroutines waiting on them.
Package notify fans Postgres notifications out to the goroutines waiting on them.
npmtag
Package npmtag finds the version an npm dist-tag points at, for the install offers that name Wakeshift's npm plugin at an exact version (internal/harnesses, Harness.Package): opencode caches a plugin by the spec in its config, so `@wakeshift/opencode@latest` would never update, and the offer pins the version `latest` (or another Wakeshift's own dist-tag) points at instead.
Package npmtag finds the version an npm dist-tag points at, for the install offers that name Wakeshift's npm plugin at an exact version (internal/harnesses, Harness.Package): opencode caches a plugin by the spec in its config, so `@wakeshift/opencode@latest` would never update, and the offer pins the version `latest` (or another Wakeshift's own dist-tag) points at instead.
oauth
Package oauth is the core's token signing: the keys every token and beacon is signed with (published at /oauth/jwks), and the tokens a headless app acts for its agents with (headless.go).
Package oauth is the core's token signing: the keys every token and beacon is signed with (published at /oauth/jwks), and the tokens a headless app acts for its agents with (headless.go).
orgs
Package orgs is organizations: who manages which platform-level app.
Package orgs is organizations: who manages which platform-level app.
pgtest
Package pgtest gives a test its own empty Postgres database, for an app's own storage.
Package pgtest gives a test its own empty Postgres database, for an app's own storage.
pipeline
Package pipeline turns events into deliveries.
Package pipeline turns events into deliveries.
pluginmark
Package pluginmark is how Wakeshift's plugin for Claude Code tells the core, on the tool call that subscribes, that it's installed: its SessionStart hook tells the model a mark to pass as the harness argument of an app's tools (harnesses.HarnessArg), so the core can leave out the install question and the Monitor, which the plugin makes unnecessary.
Package pluginmark is how Wakeshift's plugin for Claude Code tells the core, on the tool call that subscribes, that it's installed: its SessionStart hook tells the model a mark to pass as the harness argument of an app's tools (harnesses.HarnessArg), so the core can leave out the install question and the Monitor, which the plugin makes unnecessary.
releasegate command
Command releasegate is the published server's release gate: what its quickstart promises, end to end, against the server docker compose runs from this tree.
Command releasegate is the published server's release gate: what its quickstart promises, end to end, against the server docker compose runs from this tree.
server
Package server is Wakeshift's HTTP server: the JSON API under /api, health checks, and the React app for every other path.
Package server is Wakeshift's HTTP server: the JSON API under /api, health checks, and the React app for every other path.
sessions
Package sessions keeps an agent's sessions: its conversations, each a participant with a handle, its own deliveries, presence and authorship.
Package sessions keeps an agent's sessions: its conversations, each a participant with a handle, its own deliveries, presence and authorship.
streams
Package streams delivers an agent's events over WebSocket.
Package streams delivers an agent's events over WebSocket.
subscriptions
Package subscriptions stores what each agent is subscribed to.
Package subscriptions stores what each agent is subscribed to.
telemetry
Package telemetry exports the core's traces and logs with OpenTelemetry, when OTEL_EXPORTER_OTLP_ENDPOINT is set (with OTEL_EXPORTER_OTLP_HEADERS for the collector's key, and the other standard OTEL_* variables).
Package telemetry exports the core's traces and logs with OpenTelemetry, when OTEL_EXPORTER_OTLP_ENDPOINT is set (with OTEL_EXPORTER_OTLP_HEADERS for the collector's key, and the other standard OTEL_* variables).
version
Package version reports the build's version, set at link time:
Package version reports the build's version, set at link time:
waittask
Package waittask makes and opens the IDs of MCP wait tasks: Claude Code's no-install wake path.
Package waittask makes and opens the IDs of MCP wait tasks: Claude Code's no-install wake path.
wakegate
Package wakegate passes on a deliverer's wakes only for workspaces that have one of its destinations.
Package wakegate passes on a deliverer's wakes only for workspaces that have one of its destinations.
pkg
wakeshift
Package wakeshift wakes the AI agents that use your MCP server when something they're waiting for happens: a crawl finishes, a build fails, a message arrives.
Package wakeshift wakes the AI agents that use your MCP server when something they're waiting for happens: a crawl finishes, a build fails, a message arrives.
wakeshift/internal/adapt
Package adapt is what wakeshift shares with its adapters for other MCP libraries (wakeshift/mcpgo), without making it wakeshift's public API: a tool call's request, a built-in tool and Wakeshift's block in a form no MCP library owns, the helpers both sides use on tool schemas and results, and Impl, wakeshift's side, which an adapter calls directly.
Package adapt is what wakeshift shares with its adapters for other MCP libraries (wakeshift/mcpgo), without making it wakeshift's public API: a tool call's request, a built-in tool and Wakeshift's block in a form no MCP library owns, the helpers both sides use on tool schemas and results, and Impl, wakeshift's side, which an adapter calls directly.
wakeshift/mcpgo
Package mcpgo attaches Wakeshift to an MCP server built with github.com/mark3labs/mcp-go, as wakeshift.Attach and wakeshift.AddTool do for the official Go SDK.
Package mcpgo attaches Wakeshift to an MCP server built with github.com/mark3labs/mcp-go, as wakeshift.Attach and wakeshift.AddTool do for the official Go SDK.
wakeshift/wakeshifttest
Package wakeshifttest helps unit-test code that uses wakeshift, offline.
Package wakeshifttest helps unit-test code that uses wakeshift, offline.
plugins
agent-plugins
Package agentplugins is Wakeshift's plugins for the harnesses that install them from a marketplace repository with their own plugin command (Claude Code, Codex, GitHub Copilot CLI) or from their own marketplace (Cursor), published as github.com/wakeshift/agent-plugins.
Package agentplugins is Wakeshift's plugins for the harnesses that install them from a marketplace repository with their own plugin command (Claude Code, Codex, GitHub Copilot CLI) or from their own marketplace (Cursor), published as github.com/wakeshift/agent-plugins.
hermes
Package hermes is Wakeshift's plugin for Hermes Agent (Nous Research), in Python: the files in wakeshift/ are what `wakeshift install --harness hermes` writes to $HERMES_HOME/plugins/wakeshift (internal/connector), what /install/hermes.sh unpacks there (internal/downloads), and what github.com/wakeshift/hermes-plugin publishes for `hermes plugins install`.
Package hermes is Wakeshift's plugin for Hermes Agent (Nous Research), in Python: the files in wakeshift/ are what `wakeshift install --harness hermes` writes to $HERMES_HOME/plugins/wakeshift (internal/connector), what /install/hermes.sh unpacks there (internal/downloads), and what github.com/wakeshift/hermes-plugin publishes for `hermes plugins install`.
Package web embeds the built React app (dist/) so the server is a single binary.
Package web embeds the built React app (dist/) so the server is a single binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL