Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Engine reference — generated from the canonical engineering source. Do not edit this page by hand.

MCP Gateway — Fleet Documentation (WILDZERG Enterprise)

Status: pointer-style page. The MCP Gateway is an Enterprise-tier add-on deployed via wild/k0s, not part of this repository — there is no gateway code in server/, client/, mango/, or limon/. Everything below is what this repo can truthfully say; where the deployment lives, the wild/corp files are cited by name.

What it is

The Microsoft MCP Gateway (github.com/microsoft/mcp-gateway, MIT — a separate Microsoft component, licensed/distributed independently, integrated at the MCP protocol layer) is the enterprise component for managing fleets of MCP servers on Kubernetes. Decision (decision archive) fixed it as the third product in the ZERG ecosystem alongside ZERG and WILDZERG — an Enterprise-tier add-on, referenced separately from the base engine. The image is built from upstream and pushed to registry.nonsense.ws/mcp-gateway:spacebeam-1.0.0; the dev/staging gateway runs on the k0s node on blue ( — an internal deployment, not the product URL).

What the gateway provides (sourced from docs-site/guide/mcp.md §Enterprise)

Reverse proxy with session-aware stateful routing to MCP server pods Lifecycle management — deploy, update, delete MCP servers via REST API Tool Gateway Router — dynamic routing of tool calls to registered tool servers by name Management portal — React SPA at /portal/ for browsing and testing adapters in-browser RBAC — mcp.admin and mcp.engineer roles, bridged to GLAuth/Dex identity

Fleet topology

LayerComponentOwner
Agent executionLuna workers (client/)this repo — Luna is the MCP client + server (docs-site/guide/mcp.md; MCP client/server config in docs/mcp-setup.md)
MCP server fleet managementMCP Gateway on k0swild (wild/k0s/mcp-gateway.yaml — Deployment + Service + RBAC manifest)
Identity bridgeGLAuth/Dex roles → mcp.admin/mcp.engineerwild

Division of labor: “ZERG is the agent runtime” — the gateway’s built-in Foundry agent runtime is always disabled (FoundrySettings:Endpoint=""); Luna provides agent execution and the gateway provides the management plane (docs-site/guide/mcp.md:217).

Deployment options per docs-site/guide/deployment.md:15: k0s Kubernetes for WILDZERG Enterprise + MCP Gateway (k0s single-node or multi-node); dev uses the k0s node on blue, Enterprise customers run their own k8s cluster.

Licensing / seat gate

The MCP gateway is one of the Enterprise feature flags in the seats framework (docs/seats.md:12 — feature flags: clustering, SSO, audit retention, MCP gateway, multi-region, air-gap, custom branding). No in-repo code gates on it; the seat enforcement framework is docs/seats.md + SOL_SEATS_* config (docs/configuration-reference.md §Seats).

Where the real documentation lives

corp/docs/mcp-gateway-integration-strategy.md — three-layer MCP architecture (Luna client + Luna server + MCP Gateway management) corp/docs/k0s-evaluation.md — k0s deployment analysis and root cause resolution wild/k0s/mcp-gateway.yaml — the Kubernetes manifest (Deployment + Service + RBAC) wild/AGENTS.md — the k0s/gateway deployment and its upgrade flow

(corp and wild are separate repos; use the clone URLs in ci/corp-pin/ci/wild-pin semantics — see WILD_REF in the repo root.)

Fleet operations (as documented by this repo)

Luna-side MCP config (the worker half the operator controls from this repo): ~/.luna/mcp.json — stdio servers require hash-keyed approval, MCP/LSP tools are confine-not-refuse, osv_check.lua egress is gateable for air-gap. See docs/mcp-setup.md + docs/security.md. Gateway-side fleet ops (register servers, assign roles, portal testing): see the gateway’s own docs and the wild/corp pointers above — nothing in this repo implements or documents the gateway’s REST API. Air-gap: the gateway is a management plane over LAN-facing MCP servers; the egress doctrine (docs/air-gap-install.md) applies to Luna workers, which must reach the gateway inside the site, not across the gap.

See also

docs/mcp-setup.md — Luna MCP client/server configuration docs-site/guide/mcp.md — the portal’s MCP guide incl. the Enterprise section docs/seats.md — tier framework the Enterprise add-on sits on