npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bash-sandbox-mcp

v0.1.0

Published

MCP server exposing a bash tool backed by just-bash OverlayFs — agents can run commands against the current project without modifying real files.

Readme

bash-sandbox-mcp

MCP server exposing a single bash tool backed by just-bash's OverlayFs. Agents run bash against the current project — reads come from disk, writes stay in memory, and real files are never modified.

Install

npx bash-sandbox-mcp [OPTIONS]

Quick Start

Zero flags works against the current directory. Configure with any MCP client over stdio (e.g. Claude Code, Cursor):

{
  "mcpServers": {
    "bash": {
      "command": "npx",
      "args": ["bash-sandbox-mcp"]
    }
  }
}

CLI Reference

| Flag | Short | Default | Description | |---|---|---|---| | --root <path> | | current directory | Project root | | --cwd <path> | | overlay mount point | Working directory in the sandbox | | --allowed-url-prefix <url\|json> | -u | (none) | Allowed URL prefix; repeatable | | --allowed-methods <method,...> | -m | GET,HEAD | Comma-separated HTTP methods | | --dangerously-allow-full-network | | off | Allow all URLs and methods (DANGEROUS) | | --python | | off | Enable python3/python commands | | --javascript | | off | Enable js-exec command | | --timeout <ms> | | 30000 | Per-call timeout (max: 300000) | | --max-commands <n> | | 10000 | Max commands per exec | | --max-loop-iters <n> | | 10000 | Max loop iterations | | --max-call-depth <n> | | 100 | Max function recursion depth | | --help | -h | | Show help and exit |

Network Access

Network access is off by default. The curl command only exists when network is configured.

Allow-list with default methods (GET, HEAD)

bash-sandbox-mcp --allowed-url-prefix "https://api.github.com/repos/myorg/" \
              -u "https://api.example.com"

Allow-list with explicit methods and header injection

bash-sandbox-mcp --allowed-url-prefix "https://api.example.com" \
              -u '{"url":"https://my.site.com/my/api","headers":{"Authorization":"Bearer secret"}}' \
              -m GET,HEAD,POST

Headers specified via the JSON object form are injected at the fetch boundary — they never appear inside the sandbox, so credentials stay hidden from the agent.

Full network access (dangerous)

bash-sandbox-mcp --dangerously-allow-full-network

Security Model

  • Overlay filesystem: Reads come from the real project directory; writes stay in memory and are discarded on process exit. Real files are never modified.
  • Network off by default: Must be explicitly enabled via allow-lists or the dangerous full-access flag.
  • Header injection boundary: Headers in the JSON object form are applied at the fetch layer and override any user-supplied headers with the same name, preventing credential substitution from inside the sandbox.
  • Execution limits: Configurable limits prevent infinite loops, deep recursion, and resource exhaustion.
  • No VM isolation: Execution runs in-process without VM isolation. See just-bash's security model for details.

License

MIT (see LICENSE)