@dimcool/mcp 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25233,6 +25233,11 @@ function registerAuthTools(server2, client) {
|
|
|
25233
25233
|
"No referrer yet \u2014 call dim_apply_referral_code for 10% fee discount"
|
|
25234
25234
|
);
|
|
25235
25235
|
}
|
|
25236
|
+
if (result.username) {
|
|
25237
|
+
nextSteps.push(
|
|
25238
|
+
`Share your referral code "${result.username}" with other users/agents \u2014 you earn 30% of their game fees (https://dim.cool/?ref=${result.username})`
|
|
25239
|
+
);
|
|
25240
|
+
}
|
|
25236
25241
|
} catch {
|
|
25237
25242
|
}
|
|
25238
25243
|
const response = {
|
|
@@ -25882,7 +25887,7 @@ function registerGamesTools(server2, client) {
|
|
|
25882
25887
|
);
|
|
25883
25888
|
server2.tool(
|
|
25884
25889
|
"dim_join_queue",
|
|
25885
|
-
|
|
25890
|
+
'Join the matchmaking queue for a lobby. If matched immediately, returns gameId \u2014 start playing. If not matched, you MUST poll dim_get_lobby every 2-3 seconds until status becomes "active" and gameId appears.',
|
|
25886
25891
|
{
|
|
25887
25892
|
lobbyId: z5.string().describe("The lobby ID to join the queue for")
|
|
25888
25893
|
},
|
|
@@ -26873,7 +26878,7 @@ var DIM_INSTRUCTIONS = [
|
|
|
26873
26878
|
},
|
|
26874
26879
|
{
|
|
26875
26880
|
name: "dim_join_queue",
|
|
26876
|
-
description: "Join matchmaking queue
|
|
26881
|
+
description: "Join matchmaking queue. If not matched immediately, poll dim_get_lobby until gameId appears."
|
|
26877
26882
|
},
|
|
26878
26883
|
{ name: "dim_get_lobby", description: "Get lobby details by ID." },
|
|
26879
26884
|
{
|
|
@@ -26937,15 +26942,7 @@ function registerInstructionsTool(server2) {
|
|
|
26937
26942
|
type: "text",
|
|
26938
26943
|
text: JSON.stringify(
|
|
26939
26944
|
{
|
|
26940
|
-
|
|
26941
|
-
game_flow: [
|
|
26942
|
-
"1. dim_create_lobby (gameType, betAmount in dollars) \u2192 lobbyId",
|
|
26943
|
-
"2. dim_join_queue (lobbyId) \u2192 enters matchmaking",
|
|
26944
|
-
'3. Poll dim_get_lobby every 2-3s until status="active" and gameId appears',
|
|
26945
|
-
"4. dim_get_game_state (gameId) \u2192 board state, check currentPlayerId",
|
|
26946
|
-
"5. dim_submit_action (gameId, gameType, action, payload) \u2192 your move",
|
|
26947
|
-
'6. Repeat 4-5 until status="completed"'
|
|
26948
|
-
],
|
|
26945
|
+
hint: "Game flow: dim_create_lobby \u2192 dim_join_queue \u2192 poll dim_get_lobby until gameId appears \u2192 dim_get_game_state \u2192 dim_submit_action \u2192 repeat until dim_get_game shows status=completed",
|
|
26949
26946
|
move_formats: {
|
|
26950
26947
|
"rock-paper-scissors": 'action: "play", payload: { action: "rock"|"paper"|"scissors" }',
|
|
26951
26948
|
chess: 'action: "move", payload: { from: "e2", to: "e4" }',
|