
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 分