Skip to main content
Glama

SimpleFunctions CLI (sf)

Reference and issue mirror for @spfunctions/cli, the supported SimpleFunctions command-line interface for prediction-market infrastructure.

The current CLI is distributed through npm. Install the package and treat the installed sf binary as the source of truth:

npm i -g @spfunctions/cli
sf login
sf status --json
sf world --json
sf describe --all --json

sf is the primary local surface for SimpleFunctions. It queries live Kalshi + Polymarket state, inspects markets and orderbooks, exports structured JSON for coding agents, runs thesis and portfolio workflows, and keeps execution commands explicit and permission-gated.

What this repository is

  • Public reference page for the npm package.

  • Issue tracker for @spfunctions/cli.

  • Installation, support, and discovery pointer for the current sf surface.

Related MCP server: MCP Predictive Market

What this repository is not

  • It is not the current full operator-runtime source tree.

  • It is not the canonical command inventory.

  • It should not be used to infer current command counts, market counts, or execution behavior.

Use sf describe --all --json for the installed command manifest. Use https://simplefunctions.dev/api/internal/statistics for current public surface counts.

First useful workflow

sf status --json
sf world --json
sf discover --quality --json
sf inspect <ticker> --json

If a command is unavailable in your installed version, run:

npm i -g @spfunctions/cli@latest
sf describe --all --json

Product surface order

  1. CLI: primary local control plane for humans, shell scripts, cron, Claude Code, Codex, and other coding agents.

  2. HTTP/Data API: network surface for services, dashboards, notebooks, and remote workers.

  3. SDKs and agent runtime: planned wrappers over stable CLI/API object contracts.

  4. MCP: compatibility adapter for MCP-only hosts, not the canonical product center.

License

The public mirror is MIT-licensed. The supported npm distribution may include private SimpleFunctions runtime code.

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
1dRelease cycle
3Releases (12mo)
Commit activity

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Enables interaction with the Kalshi prediction market platform through their REST API. Supports trading and market operations with secure RSA key authentication for both production and demo environments.
    Last updated
    23
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Aggregates prediction market data from 5 major platforms (Manifold, Polymarket, Metaculus, PredictIt, Kalshi), enabling users to search markets, compare odds across platforms, detect arbitrage opportunities, and track predictions through natural language.
    Last updated
    8
    3
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Provides AI-powered tools for searching Polymarket prediction markets and calculating financial metrics like expected value and Kelly bet sizing. It enables users to perform arbitrage scanning, news-based sentiment analysis, and market research through natural language interfaces.
    Last updated
  • A
    license
    A
    quality
    D
    maintenance
    Prediction market probability oracle for AI agents. 26 tools across 500+ live markets from Kalshi and Polymarket. Cross-source arbitrage detection, structured TPF signals, Kelly Criterion sizing, agent performance tracking, and webhook alerts.
    Last updated
    9
    61
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Machine-payable prediction-market briefs and probability-change monitoring for AI agents.

  • Polymarket + Hyperliquid + macro for AI agents. 38 tools, signal backtest, SSE streaming. Free tier.

  • Quant tools + an NFL fantasy draft assistant for AI agents — Kalshi & Polymarket EV, edge, ADP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/spfunctions/simplefunctions-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server