The MCP server gains a second session, --browser: the game in the player's tab, reached through the agent relay npm run dev hosts at /agent (loopback unless --host; Host and Origin checked, no token). The player turns it on in Settings → Agent API, a section only the development page has, and picks the clock: a pace of 30 s to 5 min a day that nobody can pause, or the agent's own. Headless gets the running clock too (--clock realtime --pace MS) and both get a wait tool. All of it lives in src/agent/ (development page only). The game offers HOOKS, UI.clockLocked, setSpeed() and runClock(dt), the frame's day block moved out unchanged, and nothing more: the page players get grows by under 1 KB gzipped and runs exactly as before.
35 lines
1 KiB
JSON
35 lines
1 KiB
JSON
{
|
|
"name": "seriesoftubes",
|
|
"version": "2.7.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",
|
|
"mcp:browser": "node scripts/mcp.js --browser"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"devDependencies": {
|
|
"@modelcontextprotocol/node": "2.1.2",
|
|
"@modelcontextprotocol/server": "2.4.0",
|
|
"jsdom": "24.1.3",
|
|
"playwright-core": "1.56.0",
|
|
"ws": "8.22.0"
|
|
}
|
|
}
|