Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-quotumorg-rh-preflight": {
"command": "uvx",
"args": [
"rh-preflight-mcp"
],
"env": {
"RH_PREFLIGHT_MODE": "ask_when",
"RH_PREFLIGHT_QUIET_DAYS": "30",
"RH_PREFLIGHT_ASK_QUIET": "true",
"RH_PREFLIGHT_ASK_UNMEASURED": "true",
"RH_PREFLIGHT_ASK_NO_RECORD": "true",
"RH_PREFLIGHT_ASK_NOT_VERIFIED": "false",
"RH_PREFLIGHT_ALLOW_UNATTENDED": "false",
"RH_PREFLIGHT_ASSUME_CHAIN": "<VALUE>",
"RH_PREFLIGHT_TOOL_PATTERNS": "action regex list",
"RH_PREFLIGHT_TX_CHECK": "on",
"RH_PREFLIGHT_TOLL_KEY_HEADER": "x-toll-pass",
"RH_PREFLIGHT_TOLL_WAIT_MAX_SECONDS": "30.0",
"RH_PREFLIGHT_ASK_PAYOUT_OTHER": "true",
"RH_PREFLIGHT_ASK_HOOKR_REFUSED": "true",
"RH_PREFLIGHT_TOLL_COIN_FINDINGS": "silent",
"RH_PREFLIGHT_ON_UNCHECKED": "ask",
"RH_PREFLIGHT_TX_TIMEOUT": "15.0",
"RH_PREFLIGHT_TIMEOUT": "4.0",
"RH_PREFLIGHT_HEY_CACHE_SECONDS": "600",
"RH_PREFLIGHT_SOURCES": "{}",
"RH_PREFLIGHT_ASK_WHEN": "{}",
"TOLL_API_KEY": "<YOUR_VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-quotumorg-rh-preflight": {
"command": "uvx",
"args": [
"rh-preflight-mcp"
],
"env": {
"RH_PREFLIGHT_MODE": "ask_when",
"RH_PREFLIGHT_QUIET_DAYS": "30",
"RH_PREFLIGHT_ASK_QUIET": "true",
"RH_PREFLIGHT_ASK_UNMEASURED": "true",
"RH_PREFLIGHT_ASK_NO_RECORD": "true",
"RH_PREFLIGHT_ASK_NOT_VERIFIED": "false",
"RH_PREFLIGHT_ALLOW_UNATTENDED": "false",
"RH_PREFLIGHT_ASSUME_CHAIN": "<VALUE>",
"RH_PREFLIGHT_TOOL_PATTERNS": "action regex list",
"RH_PREFLIGHT_TX_CHECK": "on",
"RH_PREFLIGHT_TOLL_KEY_HEADER": "x-toll-pass",
"RH_PREFLIGHT_TOLL_WAIT_MAX_SECONDS": "30.0",
"RH_PREFLIGHT_ASK_PAYOUT_OTHER": "true",
"RH_PREFLIGHT_ASK_HOOKR_REFUSED": "true",
"RH_PREFLIGHT_TOLL_COIN_FINDINGS": "silent",
"RH_PREFLIGHT_ON_UNCHECKED": "ask",
"RH_PREFLIGHT_TX_TIMEOUT": "15.0",
"RH_PREFLIGHT_TIMEOUT": "4.0",
"RH_PREFLIGHT_HEY_CACHE_SECONDS": "600",
"RH_PREFLIGHT_SOURCES": "{}",
"RH_PREFLIGHT_ASK_WHEN": "{}",
"TOLL_API_KEY": "<YOUR_VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-quotumorg-rh-preflight": {
"command": "uvx",
"args": [
"rh-preflight-mcp"
],
"env": {
"RH_PREFLIGHT_MODE": "ask_when",
"RH_PREFLIGHT_QUIET_DAYS": "30",
"RH_PREFLIGHT_ASK_QUIET": "true",
"RH_PREFLIGHT_ASK_UNMEASURED": "true",
"RH_PREFLIGHT_ASK_NO_RECORD": "true",
"RH_PREFLIGHT_ASK_NOT_VERIFIED": "false",
"RH_PREFLIGHT_ALLOW_UNATTENDED": "false",
"RH_PREFLIGHT_ASSUME_CHAIN": "<VALUE>",
"RH_PREFLIGHT_TOOL_PATTERNS": "action regex list",
"RH_PREFLIGHT_TX_CHECK": "on",
"RH_PREFLIGHT_TOLL_KEY_HEADER": "x-toll-pass",
"RH_PREFLIGHT_TOLL_WAIT_MAX_SECONDS": "30.0",
"RH_PREFLIGHT_ASK_PAYOUT_OTHER": "true",
"RH_PREFLIGHT_ASK_HOOKR_REFUSED": "true",
"RH_PREFLIGHT_TOLL_COIN_FINDINGS": "silent",
"RH_PREFLIGHT_ON_UNCHECKED": "ask",
"RH_PREFLIGHT_TX_TIMEOUT": "15.0",
"RH_PREFLIGHT_TIMEOUT": "4.0",
"RH_PREFLIGHT_HEY_CACHE_SECONDS": "600",
"RH_PREFLIGHT_SOURCES": "{}",
"RH_PREFLIGHT_ASK_WHEN": "{}",
"TOLL_API_KEY": "<YOUR_VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-quotumorg-rh-preflight": {
"command": "uvx",
"args": [
"rh-preflight-mcp"
],
"env": {
"RH_PREFLIGHT_MODE": "ask_when",
"RH_PREFLIGHT_QUIET_DAYS": "30",
"RH_PREFLIGHT_ASK_QUIET": "true",
"RH_PREFLIGHT_ASK_UNMEASURED": "true",
"RH_PREFLIGHT_ASK_NO_RECORD": "true",
"RH_PREFLIGHT_ASK_NOT_VERIFIED": "false",
"RH_PREFLIGHT_ALLOW_UNATTENDED": "false",
"RH_PREFLIGHT_ASSUME_CHAIN": "<VALUE>",
"RH_PREFLIGHT_TOOL_PATTERNS": "action regex list",
"RH_PREFLIGHT_TX_CHECK": "on",
"RH_PREFLIGHT_TOLL_KEY_HEADER": "x-toll-pass",
"RH_PREFLIGHT_TOLL_WAIT_MAX_SECONDS": "30.0",
"RH_PREFLIGHT_ASK_PAYOUT_OTHER": "true",
"RH_PREFLIGHT_ASK_HOOKR_REFUSED": "true",
"RH_PREFLIGHT_TOLL_COIN_FINDINGS": "silent",
"RH_PREFLIGHT_ON_UNCHECKED": "ask",
"RH_PREFLIGHT_TX_TIMEOUT": "15.0",
"RH_PREFLIGHT_TIMEOUT": "4.0",
"RH_PREFLIGHT_HEY_CACHE_SECONDS": "600",
"RH_PREFLIGHT_SOURCES": "{}",
"RH_PREFLIGHT_ASK_WHEN": "{}",
"TOLL_API_KEY": "<YOUR_VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-quotumorg-rh-preflight": {
"command": "uvx",
"args": [
"rh-preflight-mcp"
],
"env": {
"RH_PREFLIGHT_MODE": "ask_when",
"RH_PREFLIGHT_QUIET_DAYS": "30",
"RH_PREFLIGHT_ASK_QUIET": "true",
"RH_PREFLIGHT_ASK_UNMEASURED": "true",
"RH_PREFLIGHT_ASK_NO_RECORD": "true",
"RH_PREFLIGHT_ASK_NOT_VERIFIED": "false",
"RH_PREFLIGHT_ALLOW_UNATTENDED": "false",
"RH_PREFLIGHT_ASSUME_CHAIN": "<VALUE>",
"RH_PREFLIGHT_TOOL_PATTERNS": "action regex list",
"RH_PREFLIGHT_TX_CHECK": "on",
"RH_PREFLIGHT_TOLL_KEY_HEADER": "x-toll-pass",
"RH_PREFLIGHT_TOLL_WAIT_MAX_SECONDS": "30.0",
"RH_PREFLIGHT_ASK_PAYOUT_OTHER": "true",
"RH_PREFLIGHT_ASK_HOOKR_REFUSED": "true",
"RH_PREFLIGHT_TOLL_COIN_FINDINGS": "silent",
"RH_PREFLIGHT_ON_UNCHECKED": "ask",
"RH_PREFLIGHT_TX_TIMEOUT": "15.0",
"RH_PREFLIGHT_TIMEOUT": "4.0",
"RH_PREFLIGHT_HEY_CACHE_SECONDS": "600",
"RH_PREFLIGHT_SOURCES": "{}",
"RH_PREFLIGHT_ASK_WHEN": "{}",
"TOLL_API_KEY": "<YOUR_VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-quotumorg-rh-preflight": {
"command": "uvx",
"args": [
"rh-preflight-mcp"
],
"env": {
"RH_PREFLIGHT_MODE": "ask_when",
"RH_PREFLIGHT_QUIET_DAYS": "30",
"RH_PREFLIGHT_ASK_QUIET": "true",
"RH_PREFLIGHT_ASK_UNMEASURED": "true",
"RH_PREFLIGHT_ASK_NO_RECORD": "true",
"RH_PREFLIGHT_ASK_NOT_VERIFIED": "false",
"RH_PREFLIGHT_ALLOW_UNATTENDED": "false",
"RH_PREFLIGHT_ASSUME_CHAIN": "<VALUE>",
"RH_PREFLIGHT_TOOL_PATTERNS": "action regex list",
"RH_PREFLIGHT_TX_CHECK": "on",
"RH_PREFLIGHT_TOLL_KEY_HEADER": "x-toll-pass",
"RH_PREFLIGHT_TOLL_WAIT_MAX_SECONDS": "30.0",
"RH_PREFLIGHT_ASK_PAYOUT_OTHER": "true",
"RH_PREFLIGHT_ASK_HOOKR_REFUSED": "true",
"RH_PREFLIGHT_TOLL_COIN_FINDINGS": "silent",
"RH_PREFLIGHT_ON_UNCHECKED": "ask",
"RH_PREFLIGHT_TX_TIMEOUT": "15.0",
"RH_PREFLIGHT_TIMEOUT": "4.0",
"RH_PREFLIGHT_HEY_CACHE_SECONDS": "600",
"RH_PREFLIGHT_SOURCES": "{}",
"RH_PREFLIGHT_ASK_WHEN": "{}",
"TOLL_API_KEY": "<YOUR_VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| RH_PREFLIGHT_MODE | No | Policy mode: ask requests approval for every detected action; ask_when uses enabled rules; note appends the card and proceeds except for explicit stops and internal errors. Default: ask_when. Default: ask_when |
| RH_PREFLIGHT_QUIET_DAYS | No | Measured interval without a meaningful ship. Default: 30. Default: 30 |
| RH_PREFLIGHT_ASK_QUIET | No | Enable the quiet interval rule. Default: true. Default: true |
| RH_PREFLIGHT_ASK_UNMEASURED | No | Ask when builder activity is not measured. Default: true. Default: true |
| RH_PREFLIGHT_ASK_NO_RECORD | No | Ask when the builder source has no record. Default: true. Default: true |
| RH_PREFLIGHT_ASK_NOT_VERIFIED | No | Ask when the builder badge is not established. Default: false. Default: false |
| RH_PREFLIGHT_ALLOW_UNATTENDED | No | Only for cron identified by the public context: permit detected actions in ask modes without a human request. Does not change non-cron asks or hard stops. Default: false. Default: false |
| RH_PREFLIGHT_ASSUME_CHAIN | No | Set to 4663 for tools without an explicit chain field. Default: unset/null. |
| RH_PREFLIGHT_TOOL_PATTERNS | No | Configurable native and MCP tool classes, including swap, buy, sell, trade, approve, permit, transfer, pay, mint, bridge, deposit, stake and deploy. Default: action regex list. Default: action regex list |
| RH_PREFLIGHT_TX_CHECK | No | Toll simulation and Hookr transaction enrichment; off leaves local signature and calldata checks enabled. Default: on. Default: on |
| RH_PREFLIGHT_TOLL_KEY_HEADER | No | Header used to send the optional Toll partner key: x-toll-pass by default, or Authorization for a bearer header. Other values fall back to x-toll-pass. Default: x-toll-pass. Default: x-toll-pass |
| RH_PREFLIGHT_TOLL_WAIT_MAX_SECONDS | No | Extra time for Toll before-buy WAIT retries, from 0 to 120 seconds. Default: 30.0. Default: 30.0 |
| RH_PREFLIGHT_ASK_PAYOUT_OTHER | No | Ask when transaction proceeds go to another wallet. Default: true. Default: true |
| RH_PREFLIGHT_ASK_HOOKR_REFUSED | No | Ask when Hookr says this pool's rules refuse the sender. Default: true. Default: true |
| RH_PREFLIGHT_TOLL_COIN_FINDINGS | No | line permits neutral coin attribution and fixed Toll figures; silent omits coin findings and skips free check_coin. Default: silent. Default: silent |
| RH_PREFLIGHT_ON_UNCHECKED | No | An incomplete transaction, builder read or enabled dependent source rule asks, stops or adds a note. Internal errors always stop. Default: ask. Default: ask |
| RH_PREFLIGHT_TX_TIMEOUT | No | Toll and Hookr tx-check budget in seconds, maximum 25. Default: 15.0. Default: 15.0 |
| RH_PREFLIGHT_TIMEOUT | No | Builder and independent-source budget in seconds, capped at 25. Default: 4.0. Default: 4.0 |
| RH_PREFLIGHT_HEY_CACHE_SECONDS | No | HEY record cache in seconds, maximum 86400; 0 disables reads and writes to this cache. Default: 600. Default: 600 |
| RH_PREFLIGHT_SOURCES | No | JSON mapping from source names (priors, sherwood, hookr, wormhole, toll, dexscreener, geckoterminal, chain, offrouter, sentinelhood, hoodlock, trnch, borro) to on or off. Default: {}. Default: {} |
| RH_PREFLIGHT_ASK_WHEN | No | JSON mapping for ask_when rules, including stock_no_hey_record, stock_swap_above_usd, take_above_usd, payee_no_priors_record and vault_strategy_inactive. Default: {}. Default: {} |
| TOLL_API_KEY secret | No | Optional Toll partner API key. When unset, Toll transaction simulation makes no request and the card retains the Toll: not simulated gap; public Toll reads and other sources still run. The key is sent only to Toll's existing allowed host and routes, never as a tool argument or response field. |