Skip to main content
Products & Tools

Vercel Sandbox Adds Standard Input Support

Vercel Sandbox now allows sending input to running commands through standard input.

By Precis Daily Newsroom1 min read134 words
AI-summarized from the linked source and published automatically — not human-edited.How this works →
Illustration for: Vercel Sandbox Adds Standard Input Support
Illustration

What happened

Vercel has updated its Sandbox environment to include support for standard input (stdin) in running commands. This allows developers to send input to commands as they execute.

The change enables communication with stdio MCP servers like agent-browser, enhancing the interaction between the Sandbox and external processes.

Why it matters

This update is particularly useful for developers working with command-line tools and stdio MCP servers, as it provides a more dynamic way to interact with running processes.

Key details

In the TypeScript SDK, developers must set stdin: true and detached: true when using the runCommand() function to enable stdin support.

The writeStdin() method is used to send input, and closeStdin() is called once the process is complete. For Python, stdin is set to subprocess.PIPE, and input is sent using server.stdin.send().

Sources

Summarized from the linked originals.

Related stories