PayStage Trade Preflight — Claude Code MCP server: install
The PayStage Trade Preflight MCP server for Claude Code checks HIP-3 and trade.xyz orders against a local TradePolicy. It returns a decision before an order enters a trading flow.
MIT ★ 6 updated 2026-11-16
claude mcp add trade-preflight -- npx -y @paystage/trade-preflightWhat PayStage Trade Preflight does
The server compares a proposed HIP-3 or trade.xyz order with a TradePolicy and returns allow, review, or do_not_trade. Its response includes rule-by-rule results.
Evaluation runs locally, and the server does not submit or sign orders. If the caller omits a market snapshot, it makes a read-only POST to https://api.hyperliquid.xyz/info. The tool takes an order and a policy object or file path, and runs with npx -y @paystage/trade-preflight.
What it helps with
- check an order against custom risk rules
- flag an order for human review
- block a trade that breaks a hard policy rule
- read the reasons behind each policy result
Example prompts for the agent
- Check this BTC-USD buy order for 100 USDC against the TradePolicy.
- Evaluate this HIP-3 order and return the decision with rule results.
- Use the policy file to check this order; send it for review if the market is unknown.
How to install PayStage Trade Preflight
Platform CLI
claude mcp add trade-preflight -- npx -y @paystage/trade-preflightPlatform CLI
codex mcp add trade-preflight -- npx -y @paystage/trade-preflightConfig file
{
"mcpServers": {
"trade-preflight": {
"command": "npx",
"args": [
"-y",
"@paystage/trade-preflight"
]
}
}
}Config file
{
"servers": {
"trade-preflight": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@paystage/trade-preflight"
]
}
}
}Platform CLI
gemini mcp add trade-preflight npx -y @paystage/trade-preflightStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about PayStage Trade Preflight
How do I install PayStage Trade Preflight in Claude Code?
Run claude mcp add trade-preflight -- npx -y @paystage/trade-preflight. This adds the MCP server and starts it through npx.
What does PayStage Trade Preflight do?
It checks proposed HIP-3 or trade.xyz orders against a local TradePolicy and returns allow, review, or do_not_trade. It does not submit or sign orders.
What does PayStage Trade Preflight need to run?
It takes an order and a TradePolicy object or file path. Without a supplied market snapshot, it sends a read-only POST to https://api.hyperliquid.xyz/info; the server runs with npx -y @paystage/trade-preflight.