Sports Context Protocol

io.github.Dswane由 GitHub 账号 Dswane 发布v0.1.2更新于 Oct 28, 2026

Self-learning operational context layer for AI sports agents. Profile 001: golf.

概览

AI 生成的概览

本地 MCP 服务器,为体育智能体提供高尔夫球场的运营上下文、预订与定价安全检查、决策账本和自学习记忆。

可以做什么
  • 以资源形式读取球场上下文、开球时间表、政策、事件、天气、节奏和学习记忆
  • 按偏好时间查询可用开球时段
  • 检查预订或报价是否允许、被阻止或有风险,并记录该决策
  • 在确认前为开球时段创建临时软性保留
  • 直接记录决策并提交结果反馈,使服务器更新其学习记忆
  • 读取已学到的洞察,并按球手、运营者或开发者视角解释某个操作结果
适用场景
适合试验在高尔夫球场接听电话、预订开球时间、报价或调整预订的 AI 智能体,也适合体验决策安全与结果学习的闭环。它是仅含一个合成球场的 alpha 演示,适合原型和评估,不适合生产使用。
运行要求
以 npm 包(sports-context-protocol)通过 stdio 在本地运行,可用 npx 启动,或安装构建后用 npm run dev / npm start 启动。需要 Node.js 和 npm。未声明任何认证、API 密钥、环境变量或请求头,也不使用真实球场数据或外部集成。
安装前请注意
多个工具会写入数据:预订与定价检查会写入决策事件,软性保留会占用开球时段,结果反馈会改变学习记忆,因此状态会在会话之间保留。所有数据均为合成数据,项目未与任何真实球场或服务商合作或集成,结果不应视为真实的可用性或价格。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

SCP Golf — Profile 001 of the Sports Context Protocol

The context, safety, and memory layer for sports agents. Golf first.

Before a sports agent acts, it checks SCP. Then SCP learns from what happened.

SCP — Sports Context Protocol — is an open context layer for AI agents operating in sports. Every sport venue has the same five things underneath: inventory, rules, actions, consequences, and memory. SCP is the standard way an agent reads those before it acts, and learns from the outcome after.

SCP Golf is Profile 001 — the first working profile. Golf is the cleanest wedge because an agent cannot safely book, price, move, or recommend anything at a course without understanding tee-sheet state, protected inventory, pricing policy, pace risk, events, and operator memory. Golf makes the problem impossible to ignore.

This repository is SCP Golf Alpha: a synthetic demo course, a local MCP server, booking and pricing safety checks, soft holds, a decision ledger, and a self-learning memory. No real course data, no integrations, no database.

Why golf agents need this

AI golf agents are coming — answering calls, booking tee times, quoting prices, moving reservations. The problem: most agents only know the conversation. They do not know the course: the tee-sheet state, the member protections, the league blocks, the pricing floor, the pace risk, the operator's preferences, and what happened the last time a similar decision was made.

SCP Golf gives them that, and then it learns.

What the alpha does

  • Models one synthetic course — Harbor Ridge Golf Club — for Saturday, June 6, 2026: a 67-slot tee sheet with member, league, and outing blocks.
  • Exposes the course as 11 MCP resources (read-only context).
  • Exposes 9 MCP tools for safe booking, pricing, soft holds, decision logging, outcome feedback, and learning insights.
  • Exposes 4 MCP prompts (reusable workflows).
  • Logs every decision to a ledger and learns from outcomes — operator overrides, pace issues, price rejections — so the next similar decision is better.

Install

bash
npm installnpm run buildnpm run typechecknpm run test

Run

bash
npm run dev      # runs the MCP server on stdio (tsx, no build needed)npm start        # runs the compiled server from dist/

Test it interactively with the MCP Inspector:

bash
npx @modelcontextprotocol/inspector npm run dev

The tools

ToolWhat it does
get_course_contextFull operating context — read this before acting.
get_available_inventoryAvailable tee times near a preferred time.
check_booking_actionIs a booking allowed, blocked, risky? Writes a decision.
check_pricing_actionIs a quoted/discounted price allowed? Writes a decision.
create_soft_holdTemporary hold on a tee time before confirmation.
write_decision_eventLog a decision directly.
submit_outcome_feedbackThe learning tool. Feed an outcome back to SCP.
get_learning_insightsWhat SCP has learned.
explain_actionExplain a result for golfer / operator / developer.

The resources

scp://course/demo and its children: context, tee-sheet, booking-policy, pricing-policy, events, weather, pace, decision-ledger, learning-memory, soft-holds.

The self-learning loop

This is the heart of SCP. It is operational learning — no model training.

  1. An agent calls a tool. SCP builds a decision fingerprint (a bucketed, deterministic description of the kind of decision).
  2. SCP checks rules and learned memory keyed on that fingerprint.
  3. SCP recommends a safe action and logs a decision event.
  4. Feedback arrives via submit_outcome_feedback.
  5. SCP scores the outcome and updates its learning memory.
  6. The next decision with a matching fingerprint is shaped by that memory.

The demo moment: ask for Saturday ~09:00, have an operator override the result once, ask again — SCP now recommends the operator's preferred time. See docs/LEARNING_LOOP.md.

Docs

Status

Alpha. Synthetic data. Booking safety first. Self-learning from decision outcomes. Not partnered with any course, not integrated with any provider, not live with any operator.

License

MIT

来源:README.md,提交 eb40bbd

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分