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 分