mcpe2e

command
v0.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

-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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL