kill-switch-mcp 1.2.15 → 1.3.2

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.
Files changed (2) hide show
  1. package/dist/server.js +7 -6
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -3929,7 +3929,7 @@ var TOURNAMENT_ABI = [
3929
3929
  {
3930
3930
  name: "hasDeposited",
3931
3931
  type: "function",
3932
- inputs: [{ name: "", type: "address" }],
3932
+ inputs: [{ name: "", type: "bytes32" }],
3933
3933
  outputs: [{ name: "", type: "bool" }],
3934
3934
  stateMutability: "view"
3935
3935
  }
@@ -4059,6 +4059,7 @@ async function ensureTempoSetup() {
4059
4059
  };
4060
4060
  }
4061
4061
  async function joinTournament(tournamentAddress, username) {
4062
+ username = username.toLowerCase();
4062
4063
  const wallet = await readTempoWallet();
4063
4064
  if (!wallet?.key) {
4064
4065
  throw new Error("No Tempo wallet found. Run setup_game_wallet first.");
@@ -4081,11 +4082,12 @@ async function joinTournament(tournamentAddress, username) {
4081
4082
  const have = formatUnits(balance, 6);
4082
4083
  throw new Error(`Insufficient balance. Need $${needed} USDC, have $${have}.`);
4083
4084
  }
4085
+ const usernameBytes = pad(stringToHex(username), { size: 32 });
4084
4086
  const alreadyDeposited = await pub.readContract({
4085
4087
  address: tournamentAddress,
4086
4088
  abi: TOURNAMENT_ABI,
4087
4089
  functionName: "hasDeposited",
4088
- args: [wallet.walletAddress]
4090
+ args: [usernameBytes]
4089
4091
  });
4090
4092
  if (alreadyDeposited) {
4091
4093
  throw new Error("You have already deposited in this tournament.");
@@ -4122,7 +4124,6 @@ async function joinTournament(tournamentAddress, username) {
4122
4124
  }
4123
4125
  }
4124
4126
  await pub.waitForTransactionReceipt({ hash: approveHash });
4125
- const usernameBytes = pad(stringToHex(username), { size: 32 });
4126
4127
  const depositHash = await walletClient.writeContract({
4127
4128
  address: tournamentAddress,
4128
4129
  abi: TOURNAMENT_ABI,
@@ -4165,7 +4166,7 @@ YOU are the brain of your bot. Your human talks strategy, you execute it in the
4165
4166
 
4166
4167
  1. \`login\` — connects to the game (creates account if needed)
4167
4168
  2. \`join_game\` — shows available games and buy-in tiers, or joins an existing queued game
4168
- 3. \`wait_for_game_start\` — blocks until teleported to the arena
4169
+ 3. \`wait_for_game_start\` — waits up to 60s for the match to begin. **Loop this**: if it times out, check if you're still in lobby and call it again. Games can take minutes to fill.
4169
4170
  4. \`execute_code\` — fight! Use \`bot\`, \`sdk\`, and \`actions\` globals.
4170
4171
 
4171
4172
  Before writing any execute_code, read \`killswitch://sdk-reference\` for the complete API.
@@ -5042,7 +5043,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
5042
5043
  if (!connection) {
5043
5044
  return errorResponse("Not connected. Call login first.");
5044
5045
  }
5045
- const timeoutSecs = Math.min(Math.max(args?.timeout || 300, 10), 600);
5046
+ const timeoutSecs = Math.min(Math.max(args?.timeout || 60, 10), 600);
5046
5047
  const ARENA_MIN_X = 3077;
5047
5048
  const ARENA_MAX_X = 3134;
5048
5049
  const ARENA_MIN_Z = 3324;
@@ -5074,7 +5075,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
5074
5075
  }
5075
5076
  await new Promise((resolve) => setTimeout(resolve, 2000));
5076
5077
  }
5077
- return errorResponse(`Tournament didn't start within ${timeoutSecs} seconds. Try calling wait_for_game_start again.`);
5078
+ return errorResponse(`Still waiting for the match to begin (${timeoutSecs}s elapsed). The game needs 2+ players to start the countdown. Call wait_for_game_start again to keep waiting.`);
5078
5079
  }
5079
5080
  case "join_game": {
5080
5081
  const connection = getActiveConnection();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kill-switch-mcp",
3
- "version": "1.2.15",
3
+ "version": "1.3.2",
4
4
  "description": "Kill Switch MCP Server — AI battle royale powered by Claude Code",
5
5
  "type": "module",
6
6
  "bin": {