
Arsenal Decision Engine
io.github.Faouzi122v2.0.1更新於 Oct 11, 2026
R_net LP risk evaluator for DeFAI agents. IL + Breakeven Corridor O(1). L402 Lightning paywall.
概覽
一個無狀態的遠端計算服務,為恆定乘積 LP 部位回傳無常損失、淨報酬與損益兩平區間指標。
- 功能
- 透過 MCP JSON-RPC 在遠端端點提供 evaluate_pool 工具,接收 APY、價格比率、持有天數等池參數。回傳無常損失百分比、累積收益、淨報酬、IL 與收益比、風險等級與損益兩平區間上下界,並附上對結果的 HMAC 標記。同一計算也可透過僅支援 GET 的 REST 路徑呼叫。它只做量測,不做預測,也不執行有狀態的交易邏輯。
- 適用情境
- 適合在助理或代理部署或調整標準恆定乘積/全區間 LP 部位之前,快速且確定性地判斷該部位位於損益兩平邊界之上或之下。它是量測輸入,不是交易或預測服務。
- 執行需求
- 遠端端點 streamable HTTP(也提到 stdio);免費層不需要安裝套件、帳號、錢包或 API 金鑰。需要能連線該主機的網路。免費層限制為每 IP 每天 100 次呼叫,稽核路徑為每 IP 每小時 3 次。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Arsenal Decision Engine,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"arsenal-decision-engine": {
"type": "http",
"url": "https://api.arsenal-quant.com/mcp"
}
}
}README
Arsenal Decision Engine 🛡️
The Risk-Validation Layer for Autonomous AI Agents (DeFAI)
[Arsenal-Quant-Project MCP server] [smithery badge]
Method and raw results are published — backtest script · result data (180 days of Binance ETH/USDC daily closes): 🔬 Breakeven Corridor is a deterministic algebraic boundary (where IL = accumulated yield). Any position whose price ratio stays within
[lower_be, upper_be]has R_net > 0 by mathematical definition — not a probabilistic model. 📐 This engine measures; it does not forecast. No predictive-accuracy figure is claimed — read the published result files and judge the method for yourself.
Mission
Transform DeFi uncertainty into deterministic, actionable risk metrics for autonomous agents. We do not run stateful trading bots or generate speculative prediction signals; we provide a stateless risk middleware layer that agents query before deploying or maintaining standard constant-product / full-range LP positions.
Built for agents. 100 free calls per IP per day — no wallet, no sign-up, custom parameters included. An L402 payment path is implemented in the gateway but is not operational in production: today, the engine is free to use.
What This Engine Does
Before an autonomous agent deploys capital or adjusts a standard constant-product / full-range LP position (such as Uniswap V2 or full-range V3), it submits the pool parameters (APY, price ratio, days held) to our API. The engine computes the exact mathematical risk, the net return ($R_{net}$), and the dynamic Breakeven Corridor bounds.
- No LLMs. No hallucinations. Pure algebraic calculation.
- Complexity: $\mathcal{O}(1)$ time and memory.
- Latency: $< 15\text{ms}$ local execution.
Two ways to call it
1. MCP JSON-RPC — the endpoint advertised on the MCP registry
Standard MCP handshake: initialize → tools/list → tools/call. Available over
streamable HTTP and stdio.
2. REST convenience route — no MCP client required
Both routes run the same calculation and the same quota. Note that
/mcp/evaluate is GET-only: a POST to that path returns 405 Allow: GET,
because JSON-RPC belongs on /mcp.
Engine Response (JSON Contract)
layer reports how the call was served: FREE while inside the free quota,
PREMIUM once an L402 payment has been verified. The call shown above is
served as FREE.
Access and Pricing
- Free tier —
evaluate_pool: 100 calls per IP per day, custom parameters included. No Lightning wallet is needed. This is the only tier currently in service. - Beyond the free quota: the gateway implements the L402 challenge and returns
402with aWWW-Authenticateheader. The payment rail is not operational in production — invoices issued today are not settleable, and no payment is expected or accepted. Treat the paid tier as announced, not available. GET /mcp/audit/latest: 3 free calls per IP per hour; beyond that the route returns402. That response documents the protocol; it is not a live payment path.
Python Integration Example
Developer Integration
- Integration cookbook & MCP guides:
COOKBOOK.md - MCP auto-discovery card:
https://api.arsenal-quant.com/.well-known/mcp/server-card.json
Why per-call pricing is the intended model
This engine does not prevent losses, and it makes no claim about how much money it saves you. What it does is compute — deterministically, in $\mathcal{O}(1)$ — whether a position sits above or below its breakeven boundary. Each response carries an HMAC tag over the result, which lets the engine detect tampering with its own output; it is a symmetric provenance marker, not a proof a third party can verify independently.
The intended model is per-call pricing, so the cost can be budgeted like any other input. That model is not yet in service: today every call is free.
來源:README.md,提交 c84bac2
工具
0版本歷史
1- v2.0.1最新Sep 16, 2026
