Documentation
¶
Overview ¶
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. Run it from the tree's root, with Docker:
go run ./internal/releasegate
It makes an app key in memory (never printed or written), then:
- builds and starts docker-compose.yml's Postgres and server (docker compose up --build), with the key's public half in WAKESHIFT_APPS as the app "example" and a fresh WAKESHIFT_SECRET_KEY;
- waits for /ready, which the server answers once its migrations ran on the fresh database (as the owner role, not a superuser);
- checks the app is registered: the Go SDK, with the key, asks the server which app it is;
- serves an MCP server for the app (go-sdk, with the Go SDK attached) and, as an MCP Events client would, opens events/stream on it: the subscription is made and held on the server (push);
- emits an event with the SDK, and posts a webhook signed the Standard Webhooks way to a publish URL made with a signing secret (an unsigned post is refused);
- reads both, in order, as notifications/events/event on the client's stream.
With -webhooks it also starts Webhooks (apps/try, the compose profile webhooks), registered with a second fresh key, and then (webhooks.go):
- gets a link from its page, as a person does;
- connects to the link's MCP URL as Claude Code, calls watch, and runs the wait the result says to run (as Claude Code's Monitor does);
- POSTs {"hello":"world"} (JSON) to the webhook URL, as curl does, and reads the event on that wait.
It stops the services (docker compose down -v) unless -keep is given, printing the server's log first when a step failed. It wakes no real agent: the bridges (connectors and plugins) are tested in their own repositories.