You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6. How to use the MCP commands (create_game with gameType: 'tic-tac-toe', play_tic_tac_toe, wait_for_player_move)
43
+
6. How to use the MCP commands (create_game with gameType: 'tic-tac-toe', play_game with gameType: 'tic-tac-toe', wait_for_player_move)
44
44
7. What happens with perfect play
45
45
46
46
Make it comprehensive but easy to understand for someone who has never played before.`
@@ -66,7 +66,7 @@ Make it comprehensive but easy to understand for someone who has never played be
66
66
3. Strategy tips for beginners and advanced players
67
67
4. How psychology and pattern recognition work in this game
68
68
5. What the different AI difficulty levels mean and how to counter them
69
-
6. How to use the MCP commands (create_game with gameType: 'rock-paper-scissors', play_rock_paper_scissors, wait_for_player_move)
69
+
6. How to use the MCP commands (create_game with gameType: 'rock-paper-scissors', play_game with gameType: 'rock-paper-scissors', wait_for_player_move)
70
70
7. Why unpredictability is key to mastery
71
71
72
72
Make it comprehensive and include both basic rules and advanced psychological strategies.`
Copy file name to clipboardExpand all lines: mcp-server/src/handlers/tool-handlers.ts
+17-27Lines changed: 17 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -7,31 +7,22 @@ import { elicitGameCreationPreferences } from './elicitation-handlers.js'
7
7
8
8
exportconstTOOL_DEFINITIONS=[
9
9
{
10
-
name: 'play_tic_tac_toe',
11
-
description: 'Make an AI move in Tic-Tac-Toe game. IMPORTANT: After calling this tool when the game is still playing, you MUST call wait_for_player_move to continue the game flow.',
10
+
name: 'play_game',
11
+
description: 'Make an AI move in a game. IMPORTANT: After calling this tool when the game is still playing, you MUST call wait_for_player_move to continue the game flow.',
12
12
inputSchema: {
13
13
type: 'object',
14
14
properties: {
15
15
gameId: {
16
16
type: 'string',
17
-
description: 'The ID of the Tic-Tac-Toe game to play',
17
+
description: 'The ID of the game to play',
18
18
},
19
-
},
20
-
required: ['gameId'],
21
-
},
22
-
},
23
-
{
24
-
name: 'play_rock_paper_scissors',
25
-
description: 'Make an AI choice in Rock Paper Scissors game. IMPORTANT: After calling this tool when the game is still playing, you MUST call wait_for_player_move to continue the game flow.',
26
-
inputSchema: {
27
-
type: 'object',
28
-
properties: {
29
-
gameId: {
19
+
gameType: {
30
20
type: 'string',
31
-
description: 'The ID of the Rock Paper Scissors game to play',
description: 'Wait for human player to make their move after AI has played. This tool should be called after any play_* tool when the game is still ongoing.',
49
+
description: 'Wait for human player to make their move after AI has played. This tool should be called after the play_game tool when the game is still ongoing.',
0 commit comments