Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Refs #316 / #318。#318 に積む Draft です。
MCP Events の
events/list/events/subscribeに、麻雀・Reversi共通のgame.turnを追加します。購読には既存のaccess:mcpとread:accountが必要で、引数は空です。他人や部屋を指定する購読や、通常の User Webhook の変更はありません。{ game: "mahjong", roomId, phaseId, revision }を通知します。見送りのみ・結果確認は対象外です。{ game: "reversi", gameId, revision }を通知します。自動パスで同じ人に戻る場合はその人だけです。WebSocketの順序・タイミングは従来どおりで、Webhookのキュー追加だけが既に発行されたキャッシュとタイマーの書き込み成功を待ちます。Why
MCPクライアントがプレイヤー自身の対局を追うとき、ポーリングを続ける代わりに署名済み通知を受け取れます。実際の対局状態や操作は既存のAPI/ゲーム機能に残します。
Additional info
7187c459と同一のテスト差分6ファイルのみ取り込み、登録された全migration・認証migration・未適用なし・必要なdown/upの検査を維持しました。専用PostgreSQL/Redisで変更前の失敗を確認し、変更後は6 fixture・115件成功。feat(mahjong): 麻雀(四麻) #318 がdevelopを同期すればこの取り込み差分は重複になります。Checklist