From 3c6a0131bb2e0ba1110e1d6f6103d0212eb65d10 Mon Sep 17 00:00:00 2001 From: Jonas Scholz Date: Wed, 29 Oct 2025 15:47:36 +0300 Subject: [PATCH] remove sandbox kill --- examples/mcp-browserbase-js/index.ts | 3 --- examples/mcp-claude-code-js/index.ts | 4 ---- examples/mcp-client-js/index.ts | 4 ---- examples/mcp-custom-server-js/index.ts | 4 ---- examples/mcp-custom-template-js/index.ts | 4 ---- examples/mcp-groq-exa-js/index.ts | 4 ---- examples/mcp-research-agent-js/index.ts | 3 --- 7 files changed, 26 deletions(-) diff --git a/examples/mcp-browserbase-js/index.ts b/examples/mcp-browserbase-js/index.ts index b220a798..3574cecd 100644 --- a/examples/mcp-browserbase-js/index.ts +++ b/examples/mcp-browserbase-js/index.ts @@ -70,9 +70,6 @@ async function runBrowserbaseExample() { await mcpServer.close(); console.log('MCP server closed successfully'); - console.log('Cleaning up sandbox...'); - await sandbox.kill(); - console.log('Sandbox closed successfully'); } // Run the browserbase example diff --git a/examples/mcp-claude-code-js/index.ts b/examples/mcp-claude-code-js/index.ts index e65c83da..b7f3cd43 100644 --- a/examples/mcp-claude-code-js/index.ts +++ b/examples/mcp-claude-code-js/index.ts @@ -61,10 +61,6 @@ async function runClaudeCodeExample() { console.log(`Visit the research results at: http://${webserverUrl}/index.html`); console.log(`The page contains the paper summary and author information`); - // Cleanup - console.log('\nCleaning up sandbox...'); - await sandbox.kill(); - console.log('Sandbox closed successfully'); } // Run the Claude Code example diff --git a/examples/mcp-client-js/index.ts b/examples/mcp-client-js/index.ts index b7ff303e..8ca06ddc 100644 --- a/examples/mcp-client-js/index.ts +++ b/examples/mcp-client-js/index.ts @@ -58,10 +58,6 @@ async function run() { console.log(`\nTotal tools available: ${tools.tools.length}`); - // Cleanup - console.log('\nCleaning up sandbox...'); - await sandbox.kill(); - console.log('Sandbox closed successfully'); } // Run the example diff --git a/examples/mcp-custom-server-js/index.ts b/examples/mcp-custom-server-js/index.ts index 483310c8..15b7d670 100644 --- a/examples/mcp-custom-server-js/index.ts +++ b/examples/mcp-custom-server-js/index.ts @@ -78,10 +78,6 @@ async function run() { }); console.log('Directory contents:', result.content); - // Cleanup - console.log('\nCleaning up sandbox...'); - await sandbox.kill(); - console.log('Sandbox closed successfully'); } // Run the example diff --git a/examples/mcp-custom-template-js/index.ts b/examples/mcp-custom-template-js/index.ts index fdfc1a6e..03fc8963 100644 --- a/examples/mcp-custom-template-js/index.ts +++ b/examples/mcp-custom-template-js/index.ts @@ -66,10 +66,6 @@ async function runSandboxExample() { console.log(`\nTotal tools available: ${tools.tools.length}`); - // Cleanup - console.log('\nCleaning up sandbox...'); - await sandbox.kill(); - console.log('Sandbox closed successfully'); } runSandboxExample().catch((error) => { diff --git a/examples/mcp-groq-exa-js/index.ts b/examples/mcp-groq-exa-js/index.ts index a023f472..4d3bcef5 100644 --- a/examples/mcp-groq-exa-js/index.ts +++ b/examples/mcp-groq-exa-js/index.ts @@ -46,10 +46,6 @@ async function runGroqExaExample() { console.log('\nResearch Results:'); console.log(response.output_text); - // Cleanup - console.log('\nCleaning up sandbox...'); - await sandbox.kill(); - console.log('Sandbox closed successfully'); } // Run the Groq Exa example diff --git a/examples/mcp-research-agent-js/index.ts b/examples/mcp-research-agent-js/index.ts index 234f36f5..9a6ce8d2 100644 --- a/examples/mcp-research-agent-js/index.ts +++ b/examples/mcp-research-agent-js/index.ts @@ -68,9 +68,6 @@ async function runResearchAgent() { await mcpServer.close(); console.log('MCP server closed successfully'); - console.log('Cleaning up sandbox...'); - await sandbox.kill(); - console.log('Sandbox closed successfully'); } // Run the research agent