kill-switch-mcp 1.0.0 → 1.0.1
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/server.js +0 -21
- package/package.json +9 -3
package/dist/server.js
CHANGED
|
@@ -17870,27 +17870,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
|
|
|
17870
17870
|
} catch {
|
|
17871
17871
|
console.error(`[Kill Switch] Warning: initial state not received within 20s`);
|
|
17872
17872
|
}
|
|
17873
|
-
const initialState = connection.sdk.getState();
|
|
17874
|
-
if (initialState?.player) {
|
|
17875
|
-
const x = initialState.player.worldX;
|
|
17876
|
-
const z = initialState.player.worldZ;
|
|
17877
|
-
const isOnTutorialIsland = x >= 3050 && x <= 3156 && z >= 3056 && z <= 3136;
|
|
17878
|
-
if (isOnTutorialIsland) {
|
|
17879
|
-
console.error(`[Kill Switch] New player detected on Tutorial Island, auto-skipping tutorial...`);
|
|
17880
|
-
try {
|
|
17881
|
-
await connection.bot.skipTutorial({ randomizeAppearance: true });
|
|
17882
|
-
await connection.sdk.waitForCondition(() => {
|
|
17883
|
-
const s = connection.sdk.getState();
|
|
17884
|
-
if (!s?.player)
|
|
17885
|
-
return false;
|
|
17886
|
-
return s.player.worldX < 3050 || s.player.worldX > 3156 || s.player.worldZ < 3056 || s.player.worldZ > 3136;
|
|
17887
|
-
}, 30000);
|
|
17888
|
-
console.error(`[Kill Switch] Tutorial skipped successfully`);
|
|
17889
|
-
} catch (e) {
|
|
17890
|
-
console.error(`[Kill Switch] Tutorial skip failed (continuing): ${e.message}`);
|
|
17891
|
-
}
|
|
17892
|
-
}
|
|
17893
|
-
}
|
|
17894
17873
|
activeBotName = botName;
|
|
17895
17874
|
const { actions, descriptions } = await loadActions(botName, connection.bot, connection.sdk);
|
|
17896
17875
|
activeActions = actions;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kill-switch-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Kill Switch MCP Server — AI battle royale powered by Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"kill-switch-mcp": "
|
|
7
|
+
"kill-switch-mcp": "dist/server.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/",
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@modelcontextprotocol/sdk": "^1.0.4"
|
|
19
19
|
},
|
|
20
|
-
"keywords": [
|
|
20
|
+
"keywords": [
|
|
21
|
+
"mcp",
|
|
22
|
+
"claude",
|
|
23
|
+
"kill-switch",
|
|
24
|
+
"ai",
|
|
25
|
+
"battle-royale"
|
|
26
|
+
],
|
|
21
27
|
"license": "MIT"
|
|
22
28
|
}
|