PayStage Trade Preflight

xyz.paystage由 paystage.xyz 發布v0.1.2更新於 Nov 6, 2026

MCP tool: evaluate HIP-3/trade.xyz orders against a local TradePolicy before trading

發布方自己的服務:Preflight

已驗證STDIO僅桌面金融開發者工具

概覽

AI 產生的概覽

本機 MCP 伺服器,用你自訂的 TradePolicy 檢查擬送出的 Hyperliquid HIP-3 / trade.xyz 訂單,回傳 allow、review 或 do_not_trade。

可以做什麼
  • 依本機 TradePolicy 評估擬送出的 HIP-3 / trade.xyz 訂單,給出 allow、review 或 do_not_trade 決策。
  • 查看每條規則的結果與理由,了解決策依據。
  • 支援最大名目金額、允許市場、允許方向、最大槓桿以及未知市場處理方式等規則。
  • 以確定性、離線方式執行,可作為自有下單流程前的閘門。
適用情境
當代理程式準備送出 HIP-3 / trade.xyz 訂單,而你想在訂單進入自有執行流程前用本機規則攔截或提示時使用。它只做策略檢查,不下單也不提供建議。
執行需求
需要本機 Node.js 執行環境來執行 npm 套件 @paystage/trade-preflight,通常透過 npx 啟動。未宣告任何環境變數或憑證;策略以工具參數傳入。評估策略不需網路存取。
安裝前請注意
它不下單、不路由訂單,也不推薦交易,輸出不構成投資建議;決策品質取決於你提供的策略。策略(含限額與允許市場)以工具參數傳入,依賴此閘門前請先核對策略內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PayStage Trade Preflight,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@paystage/trade-preflight

MCP tool: evaluate HIP-3 / trade.xyz orders against a local TradePolicy before trading.

Not financial advice. This is a local policy gate only — it does not place orders, route orders, or recommend trades. It evaluates a proposed order against rules you define and returns a decision.

Published on npm as @paystage/[email protected].

What it does

Given a proposed HIP-3 / trade.xyz order and a local policy file, the server returns one of:

  • allow — the order satisfies every rule in the policy
  • review — the order needs a human or higher-level check before proceeding
  • do_not_trade — the order violates a hard rule in the policy

The decision is deterministic and local. No network calls are required to evaluate a policy; the tool is a gate you put in front of your own order flow.

Install

Run directly with npx:

sh
npx -y @paystage/trade-preflight

Or install it:

sh
npm install @paystage/trade-preflight

The package exposes a stdio MCP server (bin: paystage-trade-preflight).

MCP configuration

json
{  "mcpServers": {    "paystage-trade-preflight": {      "command": "npx",      "args": ["-y", "@paystage/trade-preflight"]    }  }}

No environment variables are required. The policy is passed as a tool argument.

Tool

evaluate_hip3_trade

Evaluates a proposed HIP-3 / trade.xyz order against a local TradePolicy.

Inputs (shape):

  • order — the proposed order (market, side, size, price/limit, etc.)
  • policy — the local TradePolicy object (or a path to it, depending on your setup)

Output:

  • decision — allow | review | do_not_trade
  • reasons — list of rule results explaining the decision

Example policy shape:

json
{  "version": 1,  "max_notional": { "value": "100.00", "asset": "USDC", "decimals": 6 },  "allowed_markets": ["BTC-USD", "ETH-USD"],  "allowed_sides": ["buy", "sell"],  "max_leverage": 1,  "unknown_market": "review"}

Decisions

DecisionMeaning
allowOrder satisfies all policy rules.
reviewOrder needs a human or higher-level check.
do_not_tradeOrder violates a hard policy rule.

Links

License

MIT

來源:packages/trade-preflight/README.md,提交 8fd4e68

工具

1

evaluate_hip3_trade

Evaluate a Hyperliquid HIP-3 (trade.xyz) order against a TradePolicy before an agent trades. Returns decision allow | review | do_not_trade.

輸入參數policyproposal必填snapshot

版本歷史

1
  1. v0.1.2最新Oct 30, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Preflight 整合