1. Before you start
- Buy SayWhat once on the pricing section.
- Open the setup email, or sign in and visit Account → Setup.
- Copy the setup prompt (it includes your short-lived activation code). The code is single-use and expires in hours — not a permanent API key.
2. Paste into Cursor Agent
- Open Cursor → Agent chat.
- Paste the full setup prompt and send it.
- Let the agent detect Cursor, call
POST https://saywhat.foo/api/activate, and storeSAYWHAT_LICENSE_TOKENin the SayWhat MCP server env (withSAYWHAT_API_URL=https://saywhat.foo). - When it works, you should see a short confirmation like: SayWhat connected, plus adapter / activation / Preflight / health check lines.
3. What gets configured
A healthy Cursor install wires three thin pieces:
- Skill — tells the agent to call SayWhat before implementing.
- MCP tool
saywhat_preflight— talks to the hosted compiler. - Optional command
/saywhat— explicit Preflight on the latest instruction.
The agent should show the compact SayWhat.foo PreFlight receipt, then execute from the compiled assignment. It should not rewrite Cursor’s composer or use unsupported editor internals.
4. Verify it works
- Reload Cursor if MCP was just added.
- In Agent chat, send a harmless ask such as “say hello in a comment”.
- Confirm the agent calls
saywhat_preflight(orPOST /api/preflightwith your bearer token) before it edits files. - Optional health check:
GET https://saywhat.foo/api/health/licensewithAuthorization: Bearer <token>.
5. Manual fallback (if paste setup fails)
Only use this when the setup prompt cannot configure MCP for you.
- Activate yourself:
POST https://saywhat.foo/api/activate Content-Type: application/json { "activationCode": "<from email or /account/setup>", "adapter": "cursor", "installationName": "Cursor — your machine", "clientVersion": "cursor" } - Save the returned
licenseTokenonce. You cannot fetch it again later. - Add the SayWhat MCP server to your user
~/.cursor/mcp.json:{ "mcpServers": { "saywhat": { "command": "node", "args": ["<path-to-repo>/apps/cursor-plugin/mcp/server.mjs"], "env": { "SAYWHAT_API_URL": "https://saywhat.foo", "SAYWHAT_LICENSE_TOKEN": "<licenseToken>" } } } } - Install or symlink the Cursor plugin companion so the Skill and
/saywhatcommand are available (seeapps/cursor-pluginin the SayWhat repo), then reload Cursor.
6. Inspect panel fallback
If you want to review a compile without Agent Preflight, use the Open VSX / Cursor extension review panel: Command Palette → SayWhat: Run Preflight. That path still talks to the same compiler (compatible POST /api/enhance alias).
Troubleshooting
- Activation code expired or already used — generate a new one from /account/setup.
- MCP tool missing — confirm the SayWhat server is enabled in Cursor Settings → MCP, then reload the window.
- Agent skips Preflight — remind it to run
saywhat_preflight, or use/saywhat. The skill file is the doorway; the compiler still does the work. - Web-only — you can keep using the homepage compiler without an IDE install.
