optionality-mcp

optionality-mcp

An AI-judged options trading practice game with a dealer LLM that generates scenarios and a judge LLM that evaluates pitches. It includes red herrings, difficulty modes, options math, and monetization via Tollbooth-DPYC Bitcoin Lightning.

Category
访问服务器

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

  1. 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.
  2. 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.
  3. 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

Repo Layout

optionality-mcp/
├── server.py    # FastMCP SSE server (Python) → Horizon
├── tools/       # dealer, judge, journal, leaderboard, profile, options chain
├── prompts.py   # dealer / judge / clue-desk personas
└── frontend/    # React 18 + Vite + TS UI → Cloudflare Pages

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.

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:

Repo Role
tollbooth-dpyc Python SDK — vault, auth, pricing, Lightning, Nostr identity
dpyc-community Governance registry: membership, advisories, threat model
dpyc-oracle Community concierge (free onboarding + member lookup)
tollbooth-authority Certification backbone (Schnorr-signed certificates)
tollbooth-sample Sample Operator (canonical template)
tollbooth-pricing-studio iOS pricing-model editor / operator console
cypher-mcp Monetized graph answers: named Cypher templates over Neo4j/AuraDB
schwab-mcp Charles Schwab brokerage data
thebrain-mcp TheBrain personal knowledge graph
excalibur-mcp X/Twitter posting
taxsort-mcp Tax classification + Cloudflare Pages UI
optionality-mcp Options analytics (brokerage-data Operator)
tollbooth-oauth2-collector OAuth2 callback handler (advocate service)
tollbooth-shortlinks URL shortener utility

License

Apache 2.0 — see LICENSE and NOTICE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选