Skip to main content
A coding agent can do most of an integration in your codebase: the embed, the session endpoint, your Content Security Policy and, for a live casino, the wallet endpoints. The dashboard writes the instructions for it, with your casino’s values filled in, and these docs are published in forms agents read directly.

Copy the instructions from the dashboard

At the top of the Integration page, Instructions for your coding agent holds a Markdown text for your agent. As the page says: Paste them into the agent you use. They cover every step below with your casino's values, and they hold no secrets.
  1. Choose what the instructions cover: All steps, Embed, Session tokens or Wallet.
  2. Select Copy instructions. The text of the scope you chose goes to your clipboard.
  3. Paste it into the agent you use, in your site’s repository.
The dashboard fills the text in when you open the page, so copy it again after you change your settings or deploy another game server.

What the instructions contain

With All steps, the text has these sections, in order: Embed, Session tokens and Wallet hold the values and the step for that part only. Embed has no secrets section; Session tokens names only SESSION_SECRET, and Wallet only WALLET_SECRET.

Keep the secrets yourself

Your casino has two secrets: SESSION_SECRET, which signs session tokens, and WALLET_SECRET, which checks your game server’s wallet calls. The Integration page shows their values once, when an owner or an admin selects Reveal secrets.
  • Put them in your servers’ environment yourself, through your secret manager or your hosting settings.
  • Never paste them into a chat with an agent, a prompt, a ticket or a commit.
The instructions tell the agent the same: read the secrets from the environment, never ask you to paste one into the chat, never hard-code, log, print or commit one, and stop and name any variable that is missing.

Check a secret by its fingerprint

The agent checks that a variable holds the right secret without seeing it, by computing its fingerprint: the first 12 hex digits of HMAC-SHA256 over the text kinematic-secret-fingerprint, keyed with the secret. The instructions give the fingerprint of each secret, and the Secrets table on Integration shows the same values.
fingerprint.mjs
The script prints only fingerprints. If one differs from the dashboard’s, the variable holds another value.

When the agent finishes

The instructions end with When you finish, list what you changed, the environment variables I must set and where, and the checks you could not run. Read that list, then:
  1. Set the environment variables it names, yourself.
  2. Run the checks it could not run, such as opening the page in a browser and pressing BET.
  3. Confirm that the bet appears on Live.
  4. Once your casino is in live mode with your wallet URL, run Check my wallet on Integration. See Test your integration.

Review what the agent wrote

Before you deploy, check these points in its changes:
  • The session endpoint answers only for a signed-in player, and sub is that player’s stable ID.
  • Tokens expire within an hour, and the endpoint passes the element’s publicKey into cnf unchanged.
  • No secret appears in code, logs, client bundles or the repository.
  • The wallet verifies every signature over the raw body before it parses JSON.
  • The wallet records each receipt in the same transaction as the balance change, and answers a repeated ID with the original receipt.
Then run the checks in Test your integration.

Give your agent the docs

The menu at the top of every page copies the page as Markdown, opens it in ChatGPT, Claude or Perplexity, and connects the MCP server to Cursor or VS Code.

Connect the MCP server

The server can search these docs, read pages and report a page that looks wrong. It cannot see your casino, your settings or your secrets.

When something fails

The dashboard’s instructions build an integration. To have an agent find the cause of a problem in an existing one, give it this prompt:
Debugging prompt

Agents in your browser

When you are signed in to the dashboard in a browser that supports WebMCP, an agent in that browser can call these tools on your casino’s pages: The tools change nothing in your casino, and every member of your team can use them. No browser turns WebMCP on by default yet; in Chrome, turn on chrome://flags/#enable-webmcp-testing.