tollgate wrap
Wraps an MCP server command with Tollgate protection without requiring a configuration file. Perfect for quick setup and testing.Usage
Options
| Option | Description | Default |
|---|---|---|
-d, --default <action> | Default action: allow, deny, or prompt | prompt |
--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
Default Actions
Testing with Dry Run
Failure Modes
How It Works
When you wrap an MCP server:- Tollgate spawns the upstream MCP server as a child process
- All MCP traffic flows through Tollgate
- Tool calls are intercepted and evaluated against the default policy
- User is prompted for approval when action is
prompt - All decisions are logged to the audit database
When to Use
Use wrap mode when:- Testing a new MCP server
- Quick protection without config files
- Running one-off commands
- Development and debugging
start) when:
- You need per-tool policies
- Running in production
- Multiple servers with different policies
- Smart content analysis is required