Documentation
¶
Overview ¶
Command mcpe2e drives a real panel (the `mistgate` binary, on loopback, a throwaway data dir) through the whole API-token and MCP surface: tokens of the three profiles made by an owner session with a step-up, a real go-sdk MCP client over Streamable HTTP and over the `mistgate mcp` stdio proxy, plan and apply, the owner's approval and rejection, a revoked token, the audit trail, the decoy on the public listener, and a scan of everything an agent can read for the secrets of the fixtures.
go build -o bin/mistgate ./cmd/mistgate && go run ./scripts/e2e/mcpe2e -bin bin/mistgate # both admin modes scripts/e2e-mcp.sh # the same, builds first scripts/dev-fleet.sh --mcp-e2e # every read tool on the dev fleet scripts/e2e/censor.sh # diagnosis assertions on the censor lab
-mode listener|prefix|both: the admin on its own listener (`setup --admin-listen`, the dev layout), or on the public listener under a secret path prefix (the production layout, where /mcp outside the prefix must be the decoy). Everything is plain HTTP on 127.0.0.1 (no firewall prompt on Windows), the data lives in a temp dir that is removed at the end (-keep leaves it and prints where). It prints a table of checks and exits 1 if one failed.