Back to home@xby-skill

xby-nba-stats

No description

Stars
0
Language
TypeScript
Created
Aug 28, 2026
Updated
Aug 28, 2026
GitHub repo

Introduction

xby-nba-stats

DeepSeek Harness (DSH) 的插件:NBA数据服务

一个提供实时和历史NBA数据的模型上下文协议服务器,包括球员统计、比赛得分、球队信息和高级分析。

功能

  • set_xby_apikey — 在聊天中设置 API 密钥(自动持久化,重启有效)
  • get_server_info — Server version + runtime settings (timeouts, retries, cache, concurrency).
  • resolve_team_id — Resolve team name/city/nickname → team_id.
  • resolve_player_id — Resolve player name → player_id (official stats endpoint).
  • find_game_id — Find game_id by date and matchup. If date omitted, finds most recent matchup via schedule.
  • get_todays_scoreboard — Today's games.
  • get_scoreboard_by_date — Games for a specific date.
  • get_game_details — Detailed game info for a specific game_id.
  • get_box_score — Full box score for a game_id.
  • search_players — Search players by name substring.
  • get_player_info — Player bio/profile info.
  • get_player_season_stats — Player stats for a season.
  • get_player_game_log — Player game log for a season.
  • get_player_career_stats — Player career totals/averages.
  • get_player_hustle_stats — Player hustle stats.
  • get_league_hustle_leaders — League leaders in a hustle stat category.
  • get_player_defense_stats — Opponent FG% when defended by player.
  • get_all_time_leaders — All-time leaders for a stat category.
  • get_all_teams — All teams.
  • get_team_roster — Team roster.
  • get_standings — League standings.
  • get_league_leaders — Current season per-game league leaders for a stat category (Points/Assists/Rebounds/etc.).
  • get_schedule — Team upcoming schedule.
  • get_player_awards — Player awards/accolades.
  • get_season_awards — Major awards for a season.
  • get_shot_chart — Shot chart data summary.
  • get_shooting_splits — Shooting splits summary.
  • get_play_by_play — Play-by-play summary.
  • get_game_rotation — Rotation/substitution summary.
  • get_player_advanced_stats — Player advanced metrics summary.
  • get_team_advanced_stats — Team advanced metrics summary.

安装

方式一:从 GitHub 直接安装(推荐)

# 格式: dsh plugin --profile <profile> add github:<owner>/<repo>
dsh plugin --profile web add github:xby_skill/xby-nba-stats

方式二:从本地目录安装(开发模式)

# 仅用于本地开发调试
dsh plugin --profile web add /absolute/path/to/xby-nba-stats

方式三:通过 cordis.patch.yml 开发调试

dsh web --profile web --patch /absolute/path/to/dsh-ocr-plugin/cordis.patch.yml

配置

获取 API 密钥

前往 小笨羊官网 注册并获取 API 密钥。