体育分析命令行工具

EdgeFinder CLI 是一款面向体育分析场景的 AI 驱动命令行工具和 MCP 服务器,可提供 NFL、NBA、MLB 的比赛分析、赛程、排名、Polymarket 赔率以及投资组合查询功能。

  • by andrewnexys
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 andrewnexys/edgefinder-cli

使用说明

EdgeFinder CLI

A native Rust CLI and MCP server for EdgeFinder sports analysis. Get AI-powered NFL, NBA, and MLB analysis, schedules, standings, Polymarket odds, and portfolio data from a terminal or AI agent.

Install

Install Rust 1.88 or newer, then build directly from GitHub:

cargo install --git https://github.com/andrewnexys/edgefinder-cli edgefinder-cli

For local development:

git clone https://github.com/andrewnexys/edgefinder-cli.git
cd edgefinder-cli
cargo install --path .

CLI access requires an EdgeFinder Starter, Pro, or Ultimate subscription.

Sign in

edgefinder login
edgefinder ask "Who should I bet on tonight?"

The login command sends a magic link and saves the resulting API key to ~/.edgefinder/config.json. On Unix-like systems, the file is created with 0600 permissions.

You can also configure an existing key:

export EDGEFINDER_API_KEY=ef_live_...
# or
edgefinder config set api-key ef_live_...

Use edgefinder logout to remove a saved key.

Commands

# AI analysis (NFL is the default)
edgefinder ask "Who should I bet on tonight?"
edgefinder ask --nba "Lakers vs Celtics prediction"
edgefinder ask --mlb "Yankees vs Red Sox prediction"

# Schedules, odds, and standings
edgefinder schedule nfl
edgefinder schedule nba --date 2026-02-20
edgefinder odds nfl --week 12
edgefinder odds nba
edgefinder standings nba

# Polymarket portfolio
edgefinder portfolio summary
edgefinder portfolio positions --league nba
edgefinder portfolio trades --limit 20

# Account and configuration
edgefinder status
edgefinder config show

Structured commands support --json. Run edgefinder --help or edgefinder <command> --help for the complete interface.

Running edgefinder with no subcommand starts an interactive session. Use /nfl, /nba, or /mlb to switch leagues while preserving conversation history.

MCP server

The same native binary includes a newline-delimited JSON-RPC stdio MCP server:

{
  "mcpServers": {
    "edgefinder": {
      "command": "edgefinder",
      "args": ["mcp"],
      "env": {
        "EDGEFINDER_API_KEY": "ef_live_..."
      }
    }
  }
}

Available tools:

Tool Description
ask NFL, NBA, or MLB sports analysis
get_schedule NFL or NBA schedules and scores
get_standings NFL or NBA standings
get_odds NFL or NBA Polymarket odds
get_portfolio Portfolio summary, positions, or trades
analyze_position AI analysis of an open, traded, or closed position
get_status Account and subscription status

For URL-based connector UIs, use the hosted endpoint at https://chat.edgefinder.io/api/mcp. Prefer an Authorization: Bearer ... header. Query-string API keys are supported only when a connector cannot set headers, because URLs may be logged.

Development

cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets
cargo build --release

The Rust implementation uses rustls for TLS and does not require OpenSSL at runtime.

Plugins

The Codex plugin manifest in .codex-plugin/plugin.json uses the installed edgefinder binary for MCP. The OpenClaw package in openclaw-plugin/ bundles the corresponding skill and expects the native binary on PATH.

License

MIT