cc-libs/tools/mcp-bridge/package.json

33 lines
1.3 KiB
JSON

{
"name": "mcp-bridge",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"build": "tsc --noEmit false",
"check": "eslint .",
"ci": "npm run build && npm run test",
"dev": "tsx src/index.ts",
"start": "node dist/src/index.js",
"test": "node --test dist/test/*.test.js",
"test-integration": "node -e \"console.log('TODO: add mcp-bridge integration tests that launch CraftOS-PC headless, start the bridge, connect a ComputerCraft websocket client from inside CraftOS, and exercise the MCP probe path end-to-end. The intended harness should verify startup ordering, websocket hello/response framing, timeout behavior when a computer is silent, and cleanup of both the CraftOS process and Node bridge server. Keep this separate from unit tests because it will need host ports, a CraftOS watchdog, and careful failure diagnostics similar to the existing Lua timeout fixtures.')\""
},
"dependencies": {
"ws": "^8.17.1"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^20.14.10",
"@types/ws": "^8.5.10",
"eslint": "^10.4.1",
"globals": "^17.6.0",
"tsx": "^4.16.2",
"typescript": "^5.5.3",
"typescript-eslint": "^8.61.0"
},
"allowScripts": {
"esbuild@0.28.0": true,
"fsevents@2.3.3": true
}
}