Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 8 additions & 44 deletions sandbox/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1176,52 +1176,16 @@ server.listen(port, () => {
console.log('🚀 Apify AI Sandbox Started');
console.log('=====================================\n');

console.log('🏠 Landing page (open first):');
console.log(` GET ${serverUrl}/`);
console.log(' Connection details, quick links, and endpoint URLs\n');
console.log('🏠 Sandbox home page:');
console.log(` ${serverUrl}/\n`);

// LLMs.txt documentation endpoint
console.log('📄 Documentation for LLMs in Markdown:');
console.log(` ${serverUrl}/llms.txt\n`);

// Shell terminal endpoint
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('🖥️ Shell terminal:');
console.log(` ${serverUrl}/shell\n`);

console.log('=====================================\n');

Expand Down
Loading