From d4bc154b7626cf48fb675ae42b1536b0aaa33b7b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 21:01:48 +0000 Subject: [PATCH 1/7] Simplify startup log to landing page, llms.txt, and shell Trim the server startup banner to only print the landing page, the /llms.txt documentation endpoint, and the interactive shell. Drop the MCP, REST (/exec, /health), and RESTful filesystem (/fs) sections from the log to reduce noise; those endpoints are unchanged and still discoverable via the landing page and /llms.txt. https://claude.ai/code/session_018G1zBF3m4kagRDHydHBaqm --- sandbox/src/main.ts | 47 +++++++-------------------------------------- 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/sandbox/src/main.ts b/sandbox/src/main.ts index 7992433..9ced168 100644 --- a/sandbox/src/main.ts +++ b/sandbox/src/main.ts @@ -1180,48 +1180,15 @@ server.listen(port, () => { console.log(` GET ${serverUrl}/`); console.log(' Connection details, quick links, and endpoint URLs\n'); + // LLMs.txt documentation endpoint + console.log('📄 LLMs documentation:'); + console.log(` GET ${serverUrl}/llms.txt`); + console.log(' Markdown reference of all endpoints for LLMs\n'); + // Shell terminal endpoint + console.log('🖥️ Shell terminal:'); console.log(` GET ${serverUrl}/shell/`); - console.log(` Interactive shell terminal\n`); - - // MCP Server URL - console.log('📡 MCP Server Endpoint:'); - console.log(` ${serverUrl}/mcp\n`); - - // REST API Endpoints - console.log('🔧 Available REST Endpoints:'); - console.log(` POST ${serverUrl}/exec`); - console.log(` Execute shell commands or code (JavaScript, TypeScript, Python)`); - console.log(` Body: { command: string, language?: string, cwd?: string, timeoutSecs?: number }`); - console.log(` Languages: js, javascript, ts, typescript, py, python, bash, sh (omit for shell)\n`); - - console.log(` GET ${serverUrl}/health`); - console.log(` Health check\n`); - - // RESTful Filesystem Endpoints - console.log('🗂️ RESTful Filesystem Endpoints:'); - console.log(` GET ${serverUrl}/fs/{path}`); - console.log(` Read file or list directory (add ?download=1 to download)`); - console.log(` Example: GET /fs/app/output/log.txt\n`); - - console.log(` PUT ${serverUrl}/fs/{path}`); - console.log(` Write/replace file with request body`); - console.log(` Example: PUT /fs/app/config.json\n`); - - console.log(` POST ${serverUrl}/fs/{path}?mkdir=1`); - console.log(` Create directory`); - console.log(` Example: POST /fs/app/data?mkdir=1\n`); - - console.log(` POST ${serverUrl}/fs/{path}?append=1`); - console.log(` Append to file with request body`); - console.log(` Example: POST /fs/app/log.txt?append=1\n`); - - console.log(` DELETE ${serverUrl}/fs/{path}`); - console.log(` Delete file or directory (add ?recursive=1 for non-empty dirs)`); - console.log(` Example: DELETE /fs/app/temp?recursive=1\n`); - - console.log(` HEAD ${serverUrl}/fs/{path}`); - console.log(` Get file/directory metadata in headers\n`); + console.log(' Interactive shell terminal\n'); console.log('=====================================\n'); From 1925730670d19b8825152e06e741fbc9ce70b431 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 21:09:00 +0000 Subject: [PATCH 2/7] Drop GET prefix from startup log URLs Print the landing page, /llms.txt, and /shell/ URLs plainly without the GET method prefix. https://claude.ai/code/session_018G1zBF3m4kagRDHydHBaqm --- sandbox/src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sandbox/src/main.ts b/sandbox/src/main.ts index 9ced168..dfcf419 100644 --- a/sandbox/src/main.ts +++ b/sandbox/src/main.ts @@ -1177,17 +1177,17 @@ server.listen(port, () => { console.log('=====================================\n'); console.log('🏠 Landing page (open first):'); - console.log(` GET ${serverUrl}/`); + console.log(` ${serverUrl}/`); console.log(' Connection details, quick links, and endpoint URLs\n'); // LLMs.txt documentation endpoint console.log('📄 LLMs documentation:'); - console.log(` GET ${serverUrl}/llms.txt`); + console.log(` ${serverUrl}/llms.txt`); console.log(' Markdown reference of all endpoints for LLMs\n'); // Shell terminal endpoint console.log('🖥️ Shell terminal:'); - console.log(` GET ${serverUrl}/shell/`); + console.log(` ${serverUrl}/shell/`); console.log(' Interactive shell terminal\n'); console.log('=====================================\n'); From 7f3220e44dca75a80009c49f77d2ecb6a0a42118 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 21:13:14 +0000 Subject: [PATCH 3/7] Drop sub-text from startup log, keep heading and URL https://claude.ai/code/session_018G1zBF3m4kagRDHydHBaqm --- sandbox/src/main.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sandbox/src/main.ts b/sandbox/src/main.ts index dfcf419..2a36f81 100644 --- a/sandbox/src/main.ts +++ b/sandbox/src/main.ts @@ -1177,18 +1177,15 @@ server.listen(port, () => { console.log('=====================================\n'); console.log('🏠 Landing page (open first):'); - console.log(` ${serverUrl}/`); - console.log(' Connection details, quick links, and endpoint URLs\n'); + console.log(` ${serverUrl}/\n`); // LLMs.txt documentation endpoint console.log('📄 LLMs documentation:'); - console.log(` ${serverUrl}/llms.txt`); - console.log(' Markdown reference of all endpoints for LLMs\n'); + console.log(` ${serverUrl}/llms.txt\n`); // Shell terminal endpoint console.log('🖥️ Shell terminal:'); - console.log(` ${serverUrl}/shell/`); - console.log(' Interactive shell terminal\n'); + console.log(` ${serverUrl}/shell/\n`); console.log('=====================================\n'); From a5497bd9fb27dd36c590f56aac6f122f539bcee9 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 21:14:33 +0000 Subject: [PATCH 4/7] Reword llms.txt heading in startup log https://claude.ai/code/session_018G1zBF3m4kagRDHydHBaqm --- sandbox/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/src/main.ts b/sandbox/src/main.ts index 2a36f81..a91f73c 100644 --- a/sandbox/src/main.ts +++ b/sandbox/src/main.ts @@ -1180,7 +1180,7 @@ server.listen(port, () => { console.log(` ${serverUrl}/\n`); // LLMs.txt documentation endpoint - console.log('📄 LLMs documentation:'); + console.log('📄 Documentation for LLMs in Markdown:'); console.log(` ${serverUrl}/llms.txt\n`); // Shell terminal endpoint From 7dc1973bc3df08bc18ad920c99f0c6f409e47ecb Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 21:15:01 +0000 Subject: [PATCH 5/7] Drop trailing slash from shell URL in startup log https://claude.ai/code/session_018G1zBF3m4kagRDHydHBaqm --- sandbox/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/src/main.ts b/sandbox/src/main.ts index a91f73c..333dad9 100644 --- a/sandbox/src/main.ts +++ b/sandbox/src/main.ts @@ -1185,7 +1185,7 @@ server.listen(port, () => { // Shell terminal endpoint console.log('🖥️ Shell terminal:'); - console.log(` ${serverUrl}/shell/\n`); + console.log(` ${serverUrl}/shell\n`); console.log('=====================================\n'); From 9fce8925d4873522fcb08b683c343cc9e77ec44a Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 21:17:56 +0000 Subject: [PATCH 6/7] Reword landing page heading in startup log https://claude.ai/code/session_018G1zBF3m4kagRDHydHBaqm --- sandbox/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/src/main.ts b/sandbox/src/main.ts index 333dad9..2484a92 100644 --- a/sandbox/src/main.ts +++ b/sandbox/src/main.ts @@ -1176,7 +1176,7 @@ server.listen(port, () => { console.log('🚀 Apify AI Sandbox Started'); console.log('=====================================\n'); - console.log('🏠 Landing page (open first):'); + console.log('🏠 Sandbox landing page:'); console.log(` ${serverUrl}/\n`); // LLMs.txt documentation endpoint From 44bf87b1d3f34470f6c1d0d4ccbfb8156cadaf55 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 21:18:37 +0000 Subject: [PATCH 7/7] Reword landing page heading to "Sandbox home page" https://claude.ai/code/session_018G1zBF3m4kagRDHydHBaqm --- sandbox/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/src/main.ts b/sandbox/src/main.ts index 2484a92..e87be03 100644 --- a/sandbox/src/main.ts +++ b/sandbox/src/main.ts @@ -1176,7 +1176,7 @@ server.listen(port, () => { console.log('🚀 Apify AI Sandbox Started'); console.log('=====================================\n'); - console.log('🏠 Sandbox landing page:'); + console.log('🏠 Sandbox home page:'); console.log(` ${serverUrl}/\n`); // LLMs.txt documentation endpoint