CLI reference
chock gateway
Ask the user before running chock gateway: what it takes and prints, from the engine at the pinned commit.
Run the MCP gateway proxy (gateway run --repo . -- <server command>)
Syntax
This is the usage line argparse builds from this command's parser.
chock gateway [-h] {run} ...
Arguments and options
This command takes no arguments besides -h, --help.
Subcommands
| Subcommand | Summary |
|---|---|
chock gateway run | Serve stdio between the MCP client and the wrapped server |
Exit codes
- 2: argparse rejected the arguments, for example an option this command does not have. The site's tests run every command with an unknown option and check that it exits 2.
- Chock documents no other exit codes, and this page has no recorded run.
Help as printed
This is what --help prints, from the same parser. The usage line names the program as the engine's parser does.
usage: chock gateway [-h] {run} ...
Run the MCP gateway proxy: wraps ONE downstream MCP server and refuses tools/call requests that
match the repo's compiled gateway gates. Configure your MCP client to launch this command instead
of the server; put the real server command after `--`.
positional arguments:
{run}
run serve stdio between the MCP client and the wrapped server
options:
-h, --help show this help message and exit
Built from engine 5a4b6287a46e and catalog 1e60d211c1bb.