Skip to content

FAQ

How is this different from letting the agent call my REST API?

Section titled “How is this different from letting the agent call my REST API?”

The agent would hold credentials and act with no limits. With the gateway the agent holds a token for one player, sees only the tools you list, and every call passes tiers, rate limits, caps, cooldowns and optional player approval before your backend sees a signed request. Your backend never has to trust an agent. See how a call flows.

For a REST game, no new endpoints: the manifest maps tools onto the endpoints you have. You must verify the signature the gateway adds, so your backend knows the call came from the gateway and which player it is for. Go backends can import pkg/agentsig. Other languages follow PROTOCOL.md, which is a few lines of HMAC.

A list of tools with names, descriptions and parameter types, taken from your manifest, and results with a machine-readable code when something fails. Coach grants see read tools only.

Any MCP client that speaks streamable HTTP and OAuth 2.1 can connect to /mcp. Desktop clients that only run local stdio servers use the gwbridge stdio bridge. See connect an agent.

Not through the gateway’s design. The agent only has a token that works at /mcp. Your backend accepts a call only with a valid signature, a fresh timestamp and a one-time idempotency key, and the signing key is not in the agent’s hands. Keep your backend closed to unsigned callers, or this stops being true.

Policy checks fail closed: every call, reads included, gets policy_unavailable and nothing reaches your backend. See tiers and policy.

Calls to tools with confirm: true fail closed with confirmation_unavailable. OAuth token checks fail, so MCP calls are refused, and studio endpoints answer 503. The runbook lists what each outage does.

Can a player’s chat text steer another player’s agent?

Section titled “Can a player’s chat text steer another player’s agent?”

Only if your backend echoes it in a tool result. Backend output is data, but a model may still follow instructions in it. Do not return other players’ free text. See best practices.

Every attempt counts against a per-player rate limit, valid or not. Cooldowns and daily caps bound what it can change. A player can revoke the agent at once. Your studio can remove a tool by uploading a manifest without it.

Kill switches exist in the policy store, but the only HTTP surface today is the dev admin API. In production, upload or roll back a manifest, or revoke grants. A signed kill-switch endpoint is not built yet.

One event per attempt: time, tenant, player, tool, tier, outcome, code and a SHA-256 hash of the arguments. The arguments themselves are never stored. See audit events.

--audit-retention sets it, 30 days by default, and 0 keeps them forever. The gateway also logs each event to stdout as JSON.

A gateway process serves one tenant, set by --tenant. Tenant isolation with row-level security in Postgres is planned, not built. Run one deployment per studio for now.

No. You run it. Hosting is an open question in DECISIONS.md.

Configure Redis and Postgres first. Without them each replica keeps its own limits and stores, and a player could get the budget twice. The Helm chart in deploy/helm/gamewarden runs several (tutorial 9).

The gateway is one small static Go binary. It needs Redis and Postgres for production use. The repository has load test tooling (test/load) so you can measure your own numbers.

Not by flag. They are fixed at 120 reads and 30 actions per player per minute. Use caps and cooldowns in the manifest to shape behavior.

Yes. Upload a manifest with the admin key, and roll back to any earlier version. Replicas pick up the change within --manifest-poll.

My game logic runs in the client, for example in Unity. Can I use it?

Section titled “My game logic runs in the client, for example in Unity. Can I use it?”

Yes, with the relay. Mark tools "backend": "relay" and the game client opens an outbound WebSocket with a ticket your backend mints. Calls go down that socket. See the relay section of PROTOCOL.md and tutorial 10. There is a C# client packaged for the Unity Package Manager (install it from the git URL in its README), with a sample that runs against the real gateway in the Unity 6.3 editor and in Mono and IL2CPP macOS players, and in a WebGL player in headless Chromium (list your page’s origin in --relay-allowed-origins). Mobile and Windows players have not been tried yet.

Any. The contract is a manifest plus a signed HTTP request. Go has a library, other languages implement the signing described in the protocol document.

It should not. The backend stays authoritative for energy, cooldowns and the economy, and the agent gets no side door.

Yes. examples/city is a fake backend that runs with docker compose up, and the separate tinycity-mock repository is a fictional game for testing.

It is a 0.1 release, before 1.0. The manifest format, the signed request and some protocol details may still change, and each change has an entry in DECISIONS.md and the changelog. Pin a version.

Privately, see SECURITY.md. Do not open a public issue.

Read CONTRIBUTING.md. Add tests for behavior changes and put compatibility changes in docs/DECISIONS.md first.