diff --git a/dev-server-mcp/services.localhost.json b/dev-server-mcp/services.localhost.json new file mode 100644 index 0000000..70b2404 --- /dev/null +++ b/dev-server-mcp/services.localhost.json @@ -0,0 +1,28 @@ +{ + "_comment": [ + "A first end-to-end configuration, deliberately dependency-free.", + "", + "'node-app' runs whatever server.js the execution wrote, with node alone and no install step.", + "That is the point: npm ci needs a lockfile, so the shortest honest loop for an agent starting", + "from an empty directory is a server built on node's own http module. Once that works, move to", + "services.example.json, where execution-web installs a real dependency tree.", + "", + "The service reads its port from PORT as well as from the argument, because an agent writing a", + "server from scratch is more likely to reach for process.env.PORT than to parse argv." + ], + "services": { + "node-app": { + "command": "node", + "args": ["server.js", "${port}"], + "cwd": ".", + "workspaceMode": "execution", + "publicUrl": "http://dev-server-worker:${port}", + "healthUrl": "http://127.0.0.1:${port}/", + "startupTimeoutMs": 20000, + "shutdownTimeoutMs": 5000, + "env": { + "PORT": "${port}" + } + } + } +}