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 集成