scripts/mcp.js speaks MCP over stdio and loads the game from src/ in jsdom, seeded, like the tests. Tools: new_game, load_save, export_save, status, advance (with per-day timings), network, city, find, traceroute, peering_check, hot_spots, actions, act, screen, panel, click, open_link. Actions go through ACT as buttons do; files, slots, settings and the clock stay out of reach, and nothing evaluates code in the page. Nothing is hosted and the page is unchanged. See docs/MCP.md.
31 lines
888 B
JSON
31 lines
888 B
JSON
{
|
|
"name": "seriesoftubes",
|
|
"version": "2.4.0",
|
|
"description": "A cartoon browser game about building the internet.",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"homepage": "https://seriesoftub.es/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/fjaeckel/seriesoftubes.git"
|
|
},
|
|
"scripts": {
|
|
"test": "node scripts/test.js",
|
|
"test:timings": "node scripts/test-timings.js",
|
|
"build": "node scripts/build.js",
|
|
"i18n:check": "node scripts/i18n-check.js",
|
|
"i18n:fix": "node scripts/i18n-check.js --fix",
|
|
"dev": "node scripts/dev.js",
|
|
"page": "node scripts/lib/page.js",
|
|
"serve": "npm run build && npx --yes serve@14.2.4 _site",
|
|
"perf": "node scripts/perf-bench.js",
|
|
"mcp": "node scripts/mcp.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"devDependencies": {
|
|
"jsdom": "24.1.3",
|
|
"playwright-core": "1.56.0"
|
|
}
|
|
}
|