Optionality Mcp

io.github.lonnievPublished by GitHub account lonnievv0.8.0Updated Oct 28, 2026

Optionality — AI-judged options trading drill, Tollbooth-monetized MCP server

VerifiedStreamable HTTPWeb executableFinanceAI & ML

Overview

AI-generated overview

A remote, paid options-trading practice game where AI dealer and judge models grade your trade pitches and score them 0-100.

What you can do
  • Run drill rounds: an AI dealer builds an options scenario and a judge grades your free-text pitch across six dimensions
  • Work the option chain and risk chart: expirations, strikes, IV smile, Black-Scholes pricing, P/L and theta replay
  • Ask the Socratic clue desk mid-scenario for formula-backed educational answers, at a scoring penalty
  • Review a facts ledger showing which scenario facts you used, missed, or followed as red herrings
  • Track progress in a journal, leaderboard, streaks, shared entries and profile
  • Optionally escrow a game-scoped Nostr key to sign and send DMs from devices without a signer
When to use it
Useful for practicing options-structure decisions and pitch communication against AI-graded scenarios, including historical, fictional and live-event modes at four difficulty levels. Suited to traders who want repeated, scored drills with feedback rather than market data or execution.
Requirements
Remote streamable HTTP endpoint with OAuth sign-in required. A pre-funded balance bought over Bitcoin Lightning is needed to play; prices are dynamic and set by the operator. No environment variables or headers are declared.
Before you install
It is a paid service: rounds are monetized and you must pre-fund a balance over Lightning, so real money is spent. Optional nsec escrow means handing a game-scoped Nostr private key to the operator, encrypted at rest; self-custody with a NIP-07 signer avoids this. Rounds, pitches and shared entries are persisted, and opting in to sharing exposes them to others.

Installation

In SourceWeft

  1. Open Optionality Mcp in the dashboard and add it to a workspace.
  2. Connect the required credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.lonniev%2Foptionality-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.

{
  "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

  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

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

optionality-mcp/├── server.py    # FastMCP server (Python) → Horizon├── tools/       # dealer, judge, journal, leaderboard, profile, options chain, nsec escrow├── db/          # Neon persistence (journal, leaderboard, patrons, usage, migrations)├── llm.py       # server-side LLM client (operator's vaulted llm_api_key)├── prompts.py   # dealer / judge / clue-desk personas├── modal_app.py # detached runner for the LLM drills (Modal)└── frontend/    # React 19 + 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. 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:

RepoRole
tollbooth-dpycPython SDK — vault, auth, pricing, Lightning, Nostr identity
dpyc-communityGovernance registry: membership, advisories, threat model
dpyc-oracleCommunity concierge (free onboarding + member lookup)
tollbooth-authorityCertification backbone (Schnorr-signed certificates)
tollbooth-sampleSample Operator (canonical template)
tollbooth-pricing-studioiOS pricing-model editor / operator console
cypher-mcpMonetized graph answers: named Cypher templates over Neo4j/AuraDB
schwab-mcpCharles Schwab brokerage data
thebrain-mcpTheBrain personal knowledge graph
excalibur-mcpX/Twitter posting
taxsort-mcpTax classification + Cloudflare Pages UI
optionality-mcpOptions-trading practice game (this repo)
goodearth-mcpRegion-scoped climate analytics for small farms
beesknees-mcpThe Bee's Knees: a multiplayer race to the queen
roastify-mcpRoastify coffee catalog and packaging artwork
ChartRemotely-mcpPuts a security on a desktop chart remotely
tollbooth-webShared browser SDK for operator front ends
tollbooth-oauth2-collectorOAuth2 callback handler (advocate service)
tollbooth-shortlinksURL shortener utility

License

Apache 2.0 — see LICENSE and NOTICE.

Source: README.md at commit 238de25

Tools

0
This server asks you to sign in, so SourceWeft could not read its tools without an account and has not indexed them. What a connected account sees can depend on that account and its permissions.

Version history

2
  1. v0.8.0LatestOct 21, 2026
  2. v0.7.4Sep 16, 2026

Score

85% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts