tollgate start
Starts the Tollgate proxy for a configured MCP server with full policy control.Usage
Options
| Option | Description | Default |
|---|---|---|
-s, --server <name> | Server name from config (required) | - |
-c, --config <path> | Path to tollgate.yaml config file | ./tollgate.yaml |
--audit-path <path> | Custom path for audit database | ~/.dotset/tollgate.db |
--timeout <ms> | Approval timeout in milliseconds | 60000 |
--dry-run | Evaluate policies without executing tools | - |
--failure-mode <mode> | Behavior when upstream fails | fail-closed |
Examples
Basic Usage
With Options
Dry Run Mode
Configuration File
Thestart command requires a tollgate.yaml configuration file. Create one with:
Example Configuration
Server Selection
The-s/--server option must match a server name defined in your config:
When to Use
Usestart when:
- You need per-tool policies
- Using smart content analyzers (SQL, filesystem, shell)
- Running in production environments
- Managing multiple MCP servers with different policies
wrap when:
- Quick testing without config files
- Uniform policy for all tools
- One-off commands