
Optionality Mcp
io.github.lonniev由 GitHub 帳號 lonniev 發布v0.8.0更新於 Oct 28, 2026
Optionality — AI-judged options trading drill, Tollbooth-monetized MCP server
概覽
遠端付費的選擇權交易練習遊戲,由 AI 莊家出題、AI 評審為你的交易提案評分(0-100)。
- 可以做什麼
- 進行演練回合:AI 莊家建構選擇權情境,評審依六個面向為你的自由文字提案評分
- 使用選擇權鏈與風險圖:到期日、履約價、波動率微笑、Black-Scholes 定價、損益與時間價值衰減回放
- 在情境中向蘇格拉底式提示台提問,取得有公式依據的教學解答,但會扣分
- 查看事實清單,了解你採用、遺漏了哪些情境事實,以及是否被紅鯡魚誤導
- 透過日誌、排行榜、連續得分、共享紀錄與個人檔案追蹤進度
- 可選託管遊戲專用 Nostr 金鑰,在沒有簽章器的裝置上代為簽署並發送私訊
- 適用情境
- 適合在歷史、虛構與即時事件三種模式、四個難度等級下,反覆練習選擇權結構決策與提案表達,並取得 AI 評分回饋。適合想要反覆計分演練的交易者,而非取得行情資料或下單執行。
- 執行需求
- 遠端 streamable HTTP 端點,必須以 OAuth 登入。需先透過比特幣閃電網路預先儲值餘額才能遊玩;價格由營運方動態設定。未宣告環境變數或請求標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Optionality Mcp,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.lonniev%2Foptionality-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"optionality": {
"type": "http",
"url": "https://optionality-mcp.fastmcp.app/mcp"
}
}
}README
optionality-mcp
MCP server and React drill UI for an AI-judged options trading practice game. Built on FastMCP.
Optionality is an instance of a Tollbooth-DPYC™ service: engagement is monetized with convenient Don't Pester Your Customer™ (DPYC™) Bitcoin commerce. Patrons pre-fund a balance over Lightning and play without per-request payment ceremonies. All prices are dynamic and set by the operator — the Welcome page shows live quotes. Patrons can also enter Tollbooth-DPYC coupons to take advantage of discounts when they are offered.
How a Round Works
- The Dealer deals. A dealer LLM composes a complete options scenario: ticker, spot, IV regime and skew, macro backdrop, catalyst, key levels, and constraints — optionally including a max-loss budget the structure must fit.
- You pitch. Free text, the way you'd pitch a senior PM. Multi-leg structures, single legs, or a deliberate stand-aside — declining to trade is a legitimate, gradeable answer.
- The Judge grades. A judge LLM parses your pitch into structured legs, scores it across six dimensions, and proposes an alternative structure you can overlay on the risk chart.
Six judging dimensions: Strategy Selection, Strikes & Tenor, Risk/Reward, Macro Integration, Tail Risk, and Communication — each 0–20, rolled into a 0–100 score with letter grades A+ through F.
Core Pedagogy — Red Herrings
Each scenario embeds 1–2 facts that are factually TRUE but immaterial, woven inline into the narrative and never flagged. Citing them as trade drivers penalizes the trainee; recognizing them as noise and setting them aside earns points. The drill is signal-from-noise on a tape where everything you read is true.
A Facts Ledger accompanies every evaluation: which scenario facts you integrated, which you missed, which red herrings you caught, and which you followed.
Scenario Modes & Difficulty
Three historicity modes:
- Historical Fiction — real, identifiable market moments (SVB week, the gilt crisis), grounded in the actual macro and IV regime of the day
- Fiction — invented regimes: counterfactual shocks, de-peg cascades, gamma squeezes
- Live Events — web-search-grounded scenarios anchored to this week's actual tape, with cited sources
Four difficulty personas: Apprentice, Journeyman, Adept, Sovereign. Leaderboard points are difficulty-weighted, so rankings can't be padded on easy mode. A Mulligan mode replays an already-judged scenario fresh.
Options Math — One Source of Truth
The server builds the full option chain from the dealer's scaffold — three expirations, a strike ladder around spot, a three-anchor IV smile honoring put-bid skew — and prices it with Black–Scholes. The same math runs client-side, so the trainee, the charts, and the judge all see identical numbers.
- Option chain modal in broker convention: calls left, strikes and smile center, puts right; tap a mid to buy or sell; running net-premium readout
- Risk profile chart with expiration P/L, breakeven markers, and a DTE slider that replays theta bleed across the holding period
- Judge-alternative overlay to compare your payoff curve against the structure the judge would have run
Socratic Clue Desk
Mid-scenario, ask anything. Educational questions get direct, formula-backed answers; tactical questions get redirected to the dimension worth more thought — the responsibility stays with the trainee. The desk never reveals the scenario's hidden facts or red herrings. Clues carry a scoring penalty.
Journal, Leaderboard & Peer Learning
- Journal — every round persisted: open drafts, submitted pitches, full evaluations with leg tables and charts
- Leaderboard — six sort orders (weighted average, weighted best, raw average, raw best, streak, played), filterable by mode and difficulty
- Streaks — consecutive scores of 70+, current and all-time
- Shared entries — opt in to share an evaluated round so others can study the pitch, the grade, and the ledger
- Profile — display name, avatar, bio
- Usage — transparency tab showing per-model token consumption, per-tool spend, and the patron's account statement
Optional Nsec Escrow
A patron on a device without a NIP-07 signer (an iPad, say) can opt in to let Optionality hold a game-scoped nsec and sign Nostr DMs for them. escrow_nsec deposits a freshly generated nsec (it must derive to the patron's npub), encrypted at rest and bound to that npub; send_patron_dm signs and publishes a DM as the patron with it; get_escrow_status says whether one is held; withdraw_nsec returns the nsec once and deletes it, after which the patron keeps the key in their own Nostr client. Self-custody with a NIP-07 signer needs none of this.
Repo Layout
Heavy LLM tools (deal, judge, clue desk) use a claim-check async pattern: the call returns a claim immediately and the client polls a free fetch tool, so slow generations survive client timeouts. When the operator has delivered Modal credentials, those jobs run detached on Modal (modal_app.py) instead of on the MCP host.
DPYC Ecosystem
optionality-mcp is one Operator in the DPYC federation — independent MCP servers that share a Nostr identity model, Bitcoin Lightning payments, and the tollbooth-dpyc SDK. Peer repos:
License
來源:README.md,提交 238de25
工具
0版本歷史
2- v0.8.0最新Oct 21, 2026
- v0.7.4Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分