Create an environment
Sign in
Open app.waniwani.ai and sign in.
Create an MCP environment
From the dashboard, create a new MCP environment. Name it after the server and stage, for example:
my-app-prodmy-app-stagingmy-app-local
Configure the key
SetWANIWANI_API_KEY in the environment where your MCP server runs. The SDK reads it automatically when you call waniwani() with no arguments.
.env
.env file, your platform’s secret manager on Vercel, Alpic, Fly, Railway, and so on).
Per-environment keys
Use a separate key per stage. Mixing environments pollutes your metrics and makes rotation harder.| Stage | Environment name | Where the env var lives |
|---|---|---|
| Production | my-app-prod | Platform secret manager |
| Staging | my-app-staging | Platform secret manager |
| Local dev | my-app-local | .env (gitignored) |
Rotate a key
Rotate from the environment settings in the dashboard. Clients using the old key start receiving401 Unauthorized; the SDK’s transport detects auth failures and stops retrying, so you get a clean shutdown instead of a retry storm.
Troubleshooting
If events do not appear in the dashboard:- Confirm
WANIWANI_API_KEYis set in the process running the MCP server (setting it only in your shell is not enough). - Check for typos. The key is a single string, no quotes, no trailing whitespace.
- Look for
[waniwani]lines in your server logs. - Trigger a tool call. The dashboard only shows events from real traffic.