airi/services/minecraft/package.json
Rin 561b608c03
fix(minecraft): downgrade to mitigate upstream issue and mcp cleanup (#1192)
* fix(minecraft): downgrade minecraft-data to 3.102.3

Serialization error for play.toServer : Write error for undefined : The value of "value" is out of range. It must be >= -128 and <= 127. Received 218 stack=RangeError [ERR_OUT_OF_RANGE]: Write error for undefined : The value of "value" is out of range. It must be >= -128 and <= 127. Received 218

* fix(minecraft): close existing MCP transports on client reconnect

Handle client refresh scenarios by closing existing streamable and SSE transports before creating new ones, preventing resource leaks and connection conflicts.
2026-03-08 05:54:49 +08:00

52 lines
1.6 KiB
JSON

{
"name": "@proj-airi/minecraft-bot",
"type": "module",
"private": true,
"description": "An intelligent Minecraft bot powered by LLM. AIRI can understand natural language commands, interact with the world, and assist players in various tasks.",
"scripts": {
"dev": "tsx --env-file=.env --env-file-if-exists=.env.local src/main.ts",
"start": "tsx --env-file=.env --env-file-if-exists=.env.local src/main.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "tsc --noEmit",
"test": "vitest"
},
"dependencies": {
"@guiiai/logg": "catalog:",
"@modelcontextprotocol/sdk": "catalog:",
"@moeru/std": "catalog:",
"@proj-airi/server-sdk": "^0.8.4",
"@xsai/generate-text": "catalog:",
"@xsai/shared-chat": "catalog:",
"alien-signals": "^3.1.2",
"awilix": "^12.1.1",
"canvas": "^3.2.1",
"crossws": "catalog:",
"es-toolkit": "^1.44.0",
"eventemitter3": "^5.0.4",
"minecraft-data": "3.102.3",
"mineflayer": "^4.33.0",
"mineflayer-armor-manager": "^2.0.1",
"mineflayer-auto-eat": "^5.0.3",
"mineflayer-collectblock": "^1.6.0",
"mineflayer-pathfinder": "^2.4.5",
"mineflayer-pvp": "^1.3.2",
"mineflayer-tool": "^1.2.0",
"nanoid": "catalog:",
"prismarine-block": "^1.22.0",
"prismarine-entity": "^2.5.0",
"prismarine-item": "^1.17.0",
"prismarine-recipe": "^1.3.1",
"prismarine-viewer": "^1.33.0",
"prismarine-windows": "^2.9.0",
"valibot": "^1.2.0",
"vec3": "^0.1.10",
"ws": "catalog:",
"yaml": "catalog:",
"zod": "^4.3.6",
"zod-to-json-schema": "^3.25.1"
},
"devDependencies": {
"@types/ws": "catalog:"
}
}