# Environments

Every address of every environment. Put them in each Worker's `wrangler.jsonc` vars, one set per environment, and never read them from a token or a request.

## Buun Group

| Part | Local | Preview | Production |
|---|---|---|---|
| Issuer | `http://localhost:28500` | `https://id-preview.buungroup.com` | `https://id.buungroup.com` |
| Account portal | `http://localhost:28501` | `https://account-preview.buungroup.com` | `https://account.buungroup.com` |
| MCP gateway | `http://localhost:28502` | `https://mcp-preview.buungroup.com` | `https://mcp.buungroup.com` |
| Staff console | `http://localhost:28503` | `https://staff-preview.buungroup.com` | `https://staff.buungroup.com` |
| These docs | `http://localhost:28504` | `https://developers-preview.buungroup.com` | `https://developers.buungroup.com` |
| Status page | `http://localhost:28505` | `https://status-preview.buungroup.com` | `https://status.buungroup.com` |

## Product MCP servers the gateway reaches

| Product | Local | Preview | Production |
|---|---|---|---|
| Plotwork | `http://localhost:3102/mcp-oauth` | `https://mcp-preview.plotwork.dev/mcp-oauth` | `https://mcp.plotwork.dev/mcp-oauth` |
| Flung | `http://localhost:3020/mcp-oauth` | `https://mcp-preview.flung.dev/mcp-oauth` | `https://mcp.flung.dev/mcp-oauth` |

A product's MCP address is its `aud` in every traded token. It must match, character for character, the resource server staff register and the gateway's catalogue.

## What differs

| Setting | Local | Preview | Production |
|---|---|---|---|
| `http://localhost` resource servers | Taken | Refused | Refused |
| Sign-in codes | Written to the log without a mail key | Emailed | Emailed |
| Search engines | Turned away | Turned away | Allowed on these docs only |

Source: https://developers.buungroup.com/reference/environments
