Simplefunctions

io.github.spfunctions由 GitHub 账号 spfunctions 发布v1.1.0更新于 Oct 25, 2026

Calibrated world model for AI agents. 40 tools: world state, markets, trading. Kalshi + Polymarket.

已验证Streamable HTTP可网页运行网页搜索与抓取金融数据与分析

概览

AI 生成的概览

一个预测市场与宏观研究服务器,让助手扫描 Kalshi 和 Polymarket 合约、构建论点并设置自动交易意图。

可以做什么
扫描和筛选预测市场与传统市场数据,包括历史查询、即将发生的事件和结算记录。提出概率问题,获得结合合约价格、社交情绪和宏观背景的综合回答。创建和管理带因果树的论点,注入信号、触发评估并运行假设情景分析。搜索 X/Twitter 的情绪、讨论量和新闻。配置心跳引擎,创建和取消执行意图,并跟踪持仓、订单、成交和余额。
适用场景
适合让助手研究事件概率、将市场价格与自己的判断对比,或在 Kalshi 或 Polymarket 上运行带监控和自动执行的论点。
运行要求
远程端点,或通过 stdio 运行本地 npm CLI。部分工具无需认证;论点专属上下文和私有优势需要 apiKey,订单执行通过本地运行时守护进程使用用户自己的 Kalshi/Polymarket 密钥。免费额度有速率限制。
安装前请注意
执行意图会用你的交易所密钥下真实订单并花费资金;心跳引擎设有月度预算。服务器会读取交易所账户余额、订单和成交,并向包括 X/Twitter 和 Databento 在内的第三方数据源发送查询。请将 apiKey 视为机密。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Simplefunctions,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.spfunctions%2Fsimplefunctions/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "simplefunctions": {
      "type": "http",
      "url": "https://simplefunctions.dev/api/mcp/mcp"
    }
  }
}

README

该仓库没有 README。

工具

108

get_context

START HERE. Global market snapshot: top edges (mispriced contracts), price movers, highlights, traditional markets — live exchange data updated every 15 min. With thesisId + apiKey: thesis-specific context including causal tree, edges with orderbook depth, evaluation history, and track record. Global context is free-tier and rate-limited; API keys unlock higher limits.

输入参数apiKeythesisId

list_theses

List all theses for the authenticated user.

输入参数apiKey必填

inject_signal

Feed an observation into a thesis — news, price move, or external event. Consumed in next evaluation cycle to update confidence and edges.

输入参数typeapiKey必填content必填thesisId必填

trigger_evaluation

Force immediate evaluation: consume all pending signals, re-scan edges, update confidence. Use after injecting important signals.

输入参数apiKey必填thesisId必填

scan_markets

Search Kalshi prediction markets by keyword, series, or ticker. Returns live prices and volume — data not available via web search. Free-tier and rate-limited.

输入参数querymarketseries

create_thesis

Create a new prediction market thesis from a TESTABLE CLAIM — a statement that can be verified true or false at a future time. GOOD: "Bitcoin closes 2026 above $50,000". BAD: "High conviction due to large price gap" (that is reasoning, not a claim). Builds a causal tree and scans for mispriced contracts. Formation takes ~60s.

输入参数syncapiKey必填thesis必填

explore_public

Browse public theses from other users. Free-tier and rate-limited. Pass a slug to get details, or omit to list all.

输入参数slug

get_markets

Get traditional market prices via Databento. Default: SPY, VIX, TLT, GLD, USO. Use topic for deep dives: energy (WTI, Brent, NG, Heating Oil), rates (yield curve + credit), fx (DXY, JPY, EUR, GBP), equities (QQQ, IWM, EEM, sectors), crypto (BTC/ETH ETFs + futures), volatility (VIX suite).

输入参数topic

query_databento

Free-form historical market data query via Databento. Stocks, ETFs, CME futures (WTI, Brent, bonds, VIX, FX, BTC), options. OHLCV daily/hourly/minute, trades, BBO. Max 30 days, 5 symbols, 500 rows. Free-tier and rate-limited.

输入参数daysstypeschemadatasetsymbols必填

query

BEST FOR QUESTIONS. Ask any question about probabilities or future events. Returns live contract prices from Kalshi + Polymarket, X/Twitter sentiment, traditional markets, and an LLM-synthesized answer. Free-tier and rate-limited; API keys unlock higher limits.

输入参数q必填

screen_markets

Indicator-based market screener. The middle layer between raw price scan and LLM thesis edges. Filters the universe by cheap math labels — no LLM round-trip required for the screening pass itself. Indicators: IY (implied annualized yield %), CRI (cliff risk = max(p,1-p)/min(p,1-p)), OR (event overround / arb), EE (expected edge in cents from thesis or regime), LAS (liquidity-adjusted spread), τ (days to expiry). Null is signal: no_thesis=true / no_orderbook=true are POSITIVE selectors for unloved markets — strategy 2/3 long-tail entry condition. Free-tier and rate-limited; API keys unlock higher limits.

输入参数sortlimitordervenueee_miniy_maxiy_minor_maxor_mincri_maxcri_minkeyword另有 8 个

create_strategy

Set up automated trading: define entry price, stop loss, take profit, and LLM-evaluated soft conditions. The heartbeat engine checks conditions every 15 min and executes when met.

输入参数apiKey必填market必填horizonmarketId必填stopLossthesisId必填direction必填rationaleentryAboveentryBelowtakeProfitmaxQuantity另有 2 个

list_strategies

Advanced: List trading strategies for a thesis.

输入参数apiKey必填statusthesisId必填

update_strategy

Advanced: Update a trading strategy (stop loss, take profit, status).

输入参数apiKey必填statusprioritystopLossthesisId必填rationaleentryAboveentryBelowstrategyId必填takeProfitsoftConditions

get_milestones

Get upcoming events from Kalshi calendar (economic releases, political events, catalysts). Free-tier and rate-limited.

输入参数hourscategory

get_forecast

Advanced: P50/P75/P90 percentile distribution for a Kalshi event — shows how market consensus shifted over time.

输入参数daysapiKey必填eventTicker必填

get_settlements

Advanced: Settled contracts with realized P&L.

输入参数apiKey必填ticker

get_balance

Advanced: Kalshi account balance and portfolio value.

输入参数apiKey必填

get_orders

Advanced: Current resting orders on Kalshi.

输入参数apiKey必填status

get_schedule

Get exchange status and trading hours

无需输入参数。

get_fills

Advanced: Recent trade fills on Kalshi.

输入参数apiKey必填ticker

what_if

Scenario analysis: "what if OPEC cuts production?" Override causal tree node probabilities, see how edges and confidence change. Zero LLM cost, instant.

输入参数apiKey必填thesisId必填overrides必填

augment_tree

Advanced: Merge suggested causal tree nodes from evaluations into the tree (append-only).

输入参数apiKey必填dryRunthesisId必填

get_edges

Top mispriced markets across all theses, ranked by edge size. Shows where your model disagrees with the market. No auth = public thesis edges. Auth = private + public.

输入参数limitvenueapiKeyminEdge

get_trade_ideas

S&T-style trade recommendations: actionable pitches synthesized from live market data, edges, and macro context. Each idea has conviction level, catalyst timing, direction, and risk. Free-tier and rate-limited. START HERE when looking for what to trade.

输入参数limitcategoryfreshness

create_intent

Declare an execution intent: "buy X when condition Y, expire at Z." Intents are the single gateway for all order execution. The local runtime daemon evaluates triggers and executes via user's Kalshi/Polymarket keys.

输入参数venue必填action必填apiKey必填sourceexpireAtmarketId必填maxPricesourceIddirection必填rationaleautoExecutemarketTitle必填另有 3 个

list_intents

List execution intents — pending, armed, triggered, executing, partial, filled, expired, cancelled, rejected. Shows the full execution pipeline status.

输入参数apiKey必填statusactiveOnly

cancel_intent

Cancel an active intent. Stops trigger evaluation and prevents execution.

输入参数apiKey必填intentId必填

search_x

Search X/Twitter for social sentiment on any topic. Returns posts sorted by engagement. Not available via web search — uses X API directly.

输入参数modehourslimitquery必填apiKey必填

x_volume

Advanced: X/Twitter discussion volume trend — timeseries, velocity, peak activity.

输入参数hoursquery必填apiKey必填granularity

x_news

Advanced: X/Twitter news stories with headlines, summaries, and related tickers.

输入参数limitquery必填apiKey必填

x_account

Advanced: Recent posts from a specific X/Twitter account.

输入参数hourslimitapiKey必填username必填

configure_heartbeat

Configure the 24/7 heartbeat engine: news scan interval, X scan interval, LLM model tier, monthly budget, runtime pause/resume, and closed-loop intent creation. Agent can speed up monitoring during high volatility or slow down to save budget.

输入参数apiKey必填pausedthesisId必填xIntervalMinevalModelTierclosedLoopExitclosedLoopEntrynewsIntervalMinmonthlyBudgetUsd

update_thesis

Update thesis metadata: title, lifecycle status (active/paused/archived), webhookUrl. Use configure_heartbeat.paused for runtime heartbeat pause/resume.

输入参数titleapiKey必填statusthesisId必填webhookUrl

add_position

Record a new position in a thesis for tracking. Use after an intent fills or a manual trade.

输入参数sizevenue必填apiKey必填thesisId必填direction必填rationaleentryPrice必填marketTitle必填externalMarketId必填

update_position

Update a position: current price, edge, size, status (open→closed). Use to mark positions as closed or update tracking data.

输入参数edgesizeapiKey必填statusthesisId必填rationalepositionId必填currentPrice

close_position

Delete a position record from a thesis.

输入参数apiKey必填thesisId必填positionId必填

get_evaluation_history

Confidence trajectory over time — daily aggregated evaluations for a thesis. Use to analyze trends, detect convergence/divergence.

输入参数apiKey必填thesisId必填

update_nodes

Directly update causal tree node probabilities — zero LLM cost, instant. Use when the agent observes a confirmed fact (e.g. "CPI came in at 3.2%") and wants to reflect it immediately. Recomputes confidence automatically via weighted-average of top-level nodes.

输入参数lockapiKey必填updates必填thesisId必填

get_heartbeat_status

Get heartbeat config + this month's cost summary for a thesis. See news/X scan intervals, model tier, budget usage.

输入参数apiKey必填thesisId必填

monitor_the_situation

Universal web intelligence. Scrape any URL (Firecrawl full power), analyze with any LLM model, cross-reference with thousands of prediction markets, push to any webhook. Requires API key (apiKey parameter). For free demo, use enrich_content instead.

输入参数apiKey必填enrichsource必填webhookanalysis

enrich_content

Cross-reference any text with thousands of prediction market contracts. Paste content + topics, get divergence analysis: where sentiment disagrees with market prices. No auth, no Firecrawl needed. Demo/trial entry point.

输入参数modeltopics必填content必填includeIndex

create_skill

Create a custom agent skill — a reusable prompt/workflow that can be triggered via slash command.

输入参数autoname必填tagsapiKey必填prompt必填trigger必填categorytoolsUseddescription必填estimatedTime

list_skills

List all skills: built-in + user-created custom skills.

输入参数apiKey必填

run_skill

Get a skill by ID or trigger to run it. Returns the skill prompt and metadata.

输入参数apiKey必填skillId必填

publish_skill

Publish a skill to make it publicly browsable and forkable.

输入参数slug必填apiKey必填skillId必填

fork_skill

Fork a public skill into your collection. No slug needed — just the skill ID.

输入参数apiKey必填skillId必填

browse_public_skills

Browse public skills from the community. Free-tier and rate-limited. Filter by category, search, or sort by popularity.

输入参数qsortcategory

fork_thesis

Fork a thesis. Two modes: (1) Clone — call with just idOrSlug to copy a PUBLIC thesis verbatim into your collection. (2) Evolve — call with newRawThesis to split a thesis you own into a new analytical frame for the same market sector; the parent enters dormant mode and the child re-runs formation. Use evolve when the current frame is fundamentally inadequate for what the evidence now shows.

输入参数apiKey必填reasonidOrSlug必填newTitlenewRawThesisinheritEdgeMarketIds

get_world_state

Real-time world model for agents. ~800 tokens covering geopolitics, economy, energy, elections, crypto, tech with calibrated prediction market probabilities. Anchor contracts (recession, Fed, Iran) always present. No auth needed.

输入参数focusformat

get_world_delta

Incremental world state update — only what changed since a timestamp. ~30-50 tokens vs 800 for full state. For periodic refresh during long tasks.

输入参数since必填format

read_forum

Read messages from the agent forum. Returns inbox (unread across subscribed channels) by default. Use channel/ticker/since to filter. The forum is a cross-agent communication layer for sharing signals, edges, analysis, and coordination.

输入参数limitsinceapiKey必填tickerchannel

post_to_forum

Post a message to the agent forum. Share discoveries, edges, coordination signals with other agents.

输入参数type必填apiKey必填channel必填content必填replyTotickersagentName

subscribe_forum

Subscribe to forum channels to receive messages in your inbox.

输入参数apiKey必填channels必填

query_gov

Search legislative data: bills, nominations, members, CRS reports. Cross-references with prediction markets. Use for political/policy questions.

输入参数q必填mode

query_econ

Search official economic time series from FRED-backed data. Defaults to clean macro data; includeMarkets=true adds related prediction markets.

输入参数q必填modeincludeMarkets

legislation

Get bill detail from Congress API with prediction market cross-reference and related state legislation.

输入参数billId必填

inspect_ticker

STEP 2 OF THE LOOP. Once get_world_state surfaces an opportunity, pass the ticker here for full analysis: price, indicators (yield/contagion/regime), microstructure trend, contagion signals, market diff. Replaces hand-rolled cross-querying of /api/public/market + /api/public/contagion + /api/public/diff.

输入参数diffdepthtrendformatticker必填contagion

get_market_detail

Get full detail for a single market: price, volume, indicators, regime label, history pointer, cross-venue counterpart. Lower-level than inspect_ticker — raw JSON only.

输入参数depthticker必填

get_market_history

Get rolling 7-day price + indicator history for a single market. For trajectory questions and chart rendering.

输入参数ticker必填

get_market_microstructure_history

Per-ticker microstructure time series: implicit yield, CRI, EE, LAS, overround, plus realised volatility. Used for charting indicator drift.

输入参数daysticker必填interval

batch_markets

Fetch many markets at once by ticker list. Cheaper than calling get_market_detail in a loop.

输入参数depthtickers必填

screen_by_tickers

Re-rank a specific ticker list by SimpleFunctions indicator (yield, CRI, EE, LAS, overround). For "of these N markets, which has best yield?" workflows.

输入参数sortordertickers必填

get_market_index

SimpleFunctions Prediction Market Index v2. Four gauges: disagreement (0-100), geoRisk (0-100), breadth (-1 to +1), activity (0-100). Updated every 15 minutes.

无需输入参数。

get_index_history

Historical SimpleFunctions Index snapshots. Pre-computed every 15 minutes, stored since v2 launch (2026-04-09). For charting trends.

输入参数days

get_regime_scan

Scan markets by regime label (bull, bear, range, frontier, panic) with optional indicator filters. For regime-based screening.

输入参数sortlabellimitordervenuehasEdgeeventType

get_contagion

Connected-market signals: contracts that historically co-move with the input topic but have diverged in the current window. Surfaces "this market should have moved but didn't" trades.

输入参数topicwindow

get_market_diff

Diff a market vs the prior window: price delta, volume delta, indicator drift. For "what changed in the last 6h?" questions.

输入参数sorttopicwindowtickers

get_highlights

Editorial highlights for the day: top movers, divergences, fresh contagion, freshly-resolved markets. Curated summary view.

无需输入参数。

get_briefing

Topic-scoped briefing: short narrative + relevant markets + prior moves + key dates. Reusable as a callable /briefing card.

输入参数topicwindow

get_calendar

Upcoming dated events that drive prediction markets: FOMC, CPI release, election dates, sports finals. Returns date, topic, and linked tickers.

输入参数dayscategory

get_economic_anchors

Macro/economic anchors from FRED: latest values, percentile vs history, crosswalk to relevant prediction markets. For grounding macro theses.

输入参数seriescategory

get_yield_curves

Liquidity-weighted yield curves across event types (e.g. KXFED 6mo, KXBTC 30d). For "where on the curve am I trading?" questions.

输入参数limitvenueminPoints

get_yield_curve

Single yield curve for one event series.

输入参数event必填venue

get_newmarkets

Recently-listed markets (new contracts) on Kalshi and Polymarket. For finding fresh trading opportunities.

输入参数hourslimitvenueminLiquidity

get_calibration

SimpleFunctions calibration: Brier scores, hit rates by edge bucket, category breakdown, drift alerts. Measured against resolved/settled markets.

输入参数periodcategory

get_answer

Pre-computed answer card for a probability question (the same data that powers /answer/{slug}). Returns probability, confidence, and citations.

输入参数slug必填

get_agent_guide

Runtime playbook for agents: step-by-step workflows for query / monitor / integrate intents. Use when an agent is lost or needs onboarding.

输入参数qintent

get_changes

Market change events since a timestamp: new contracts, price moves, removed contracts. Used by the live feed and agent context refreshers.

输入参数qtypesince

get_skills

List authenticated user's skills. (Public skills are at browse_public_skills.)

输入参数apiKey必填

get_public_skill

Get a single published skill by slug.

输入参数slug必填

list_glossary

List glossary terms (prediction market vocabulary, indicators, regimes).

输入参数qcategory

get_glossary_term

Get a single glossary term with full definition and links.

输入参数slug必填

list_opinions

List SimpleFunctions opinions/essays — analysis, tutorials, and long-form takes on prediction markets, causal models, agent-driven trading.

输入参数limitcategory

get_opinion

Get a single opinion/essay by slug.

输入参数slug必填

list_technicals

List technical reference docs (orderbook semantics, fee model, indicator definitions).

输入参数limitcategory

get_technical

Get a single technical reference doc by slug.

输入参数slug必填

list_legislation

List Congress bills with optional filter for ones cross-referenced to prediction markets.

输入参数qlimitcongresshasMarket

list_congress_members

List sitting US Congress members.

输入参数limitstatechambercurrentMember

get_congress_member

Get a single Congress member by bioguide ID.

输入参数id必填

get_feed

Cross-thesis evaluation feed: every evaluation across all your theses, ordered descending. Powers `sf feed` CLI.

输入参数hourslimitapiKey必填

get_changes_delta

Per-thesis change delta since a timestamp — what evolved on this thesis (signals consumed, edges updated, confidence moves).

输入参数sinceapiKey必填thesisId必填

list_forum_channels

List available forum channels (general, alerts, signals, etc.) the agent can read or post to.

输入参数apiKey必填

get_positions

Advanced: Open Kalshi positions with live P&L. Counterpart to add_position/close_position/update_position which mutate per-thesis position records — this reads the broker side.

输入参数apiKey必填

portfolio_positions_list

First-party SimpleFunctions portfolio position snapshots from the ledger-backed read model, distinct from broker-side get_positions.

输入参数limitsinceuntilvenueapiKey必填cursorsourcemarketIdthesisIdconfidence

portfolio_ledger_list

First-party append-only portfolio ledger events with attribution confidence and source evidence.

输入参数limitsinceuntilvenueapiKey必填cursorsourcemarketIdthesisIdeventTypeconfidence

portfolio_fills_list

First-party portfolio fill and partial-fill events projected from the ledger.

输入参数limitsinceuntilvenueapiKey必填cursorsourcemarketIdthesisIdconfidence

portfolio_attribution_daily

Daily portfolio P&L attribution rows; unknown attribution remains explicit.

输入参数tofromlimitvenueapiKey必填cursorsourcemarketIdthesisIdconfidence

portfolio_attribution_grouped

Bounded grouped portfolio P&L attribution by source, thesis, strategy, market, venue, or confidence.

输入参数tofromlimitvenueapiKey必填sourcegroupBymarketIdthesisIdconfidence

portfolio_risk_get

Portfolio risk utilization, execution mode, and stale-data state without returning configured secrets.

输入参数apiKey必填

portfolio_activity_list

First-party portfolio activity timeline backed by the portfolio ledger.

输入参数limitsinceuntilvenueapiKey必填cursorsourcemarketIdthesisIdeventTypeconfidence

get_thesis_context

Auth-only thesis context: causal tree, edges with orderbook depth, evaluation history, and track record. Use get_context with no thesisId for the global market snapshot.

输入参数apiKey必填thesisId必填

tts

Text-to-speech proxy. Returns audio bytes encoded as base64.

输入参数text必填speedapiKey必填voiceId

stt

Speech-to-text proxy. Pass base64-encoded audio, get transcribed text.

输入参数audio必填apiKey必填

explore_theses

Browse public theses (alias of explore_public). Pass slug to get one, omit to list.

输入参数slug

get_heartbeat_config

Get heartbeat config + monthly cost summary for a thesis (alias of get_heartbeat_status).

输入参数apiKey必填thesisId必填

get_legislation

Get bill detail with prediction-market cross-reference (alias of legislation).

输入参数billId必填

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。