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

@crownest/mcp

v0.1.1

Published

MCP stdio server for CrowNest cloud sandboxes.

Downloads

246

Readme

@crownest/mcp

@crownest/mcp is a stdio MCP server that lets MCP hosts use CrowNest Sandboxes as tools. It wraps the TypeScript SDK, creates Sandboxes on demand, runs Commands and Python code, manages Workspace files under /workspace, creates and downloads Artifacts, manages Previews, inspects Code Contexts, and exposes safe API-key and Project operations for agents.

The package is published as @crownest/mcp. Once maintainers publish a registry release, MCP hosts can run it with npx @crownest/mcp.

The hosted CrowNest service and runtime implementation are not part of this package.

Docs: https://crownest.dev/docs

License: Apache-2.0

Host Configuration

Claude Code:

claude mcp add crownest -e CROWNEST_API_KEY=cn_live_... -- npx @crownest/mcp

Generic MCP configuration:

{
  "mcpServers": {
    "crownest": {
      "command": "npx",
      "args": ["@crownest/mcp"],
      "env": {
        "CROWNEST_API_KEY": "cn_live_..."
      }
    }
  }
}

Set CROWNEST_API_URL only when targeting a non-production CrowNest API.

Sandbox Lifecycle

The server sends MCP startup instructions that describe /workspace, the lazy default Sandbox model, Code Run output promotion, usage discovery, Sandbox TTL semantics, retry/idempotency routing, and cleanup.

It lazily creates one default Sandbox on the first stateful tool call. Tools that operate inside a Sandbox return sandbox_id, and later calls can pass that sandbox_id to keep using the same Workspace. create_sandbox creates additional Sandboxes for the same server session, and kill_sandbox removes a server-created Sandbox. When stdio closes, the server best-effort kills Sandboxes it created.

CROWNEST_API_KEY is a host-process credential for the SDK. It is not passed into Sandbox runtime environment variables.

Tools

| Tool | Description | | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | run_code | Runs Python code in a Sandbox. Variables and imports persist in the Code Context. Outputs are promoted to Artifacts when possible. | | list_code_contexts | Lists live Code Contexts in a Sandbox. | | get_code_context | Inspects a live Code Context in a Sandbox. | | run_command | Runs a Command in a Sandbox and returns command_id, sandbox_id, exit code, stdout, and stderr. | | get_command | Inspects Command status, exit code, and timing by Command id. | | cancel_command | Cancels a Command by Command id with graceful or force mode. | | stream_command_logs | Reads the currently available bounded Command log buffer. | | create_sandbox | Creates an additional Sandbox for this MCP server session, optionally with ttl_ms, without changing the lazy default Sandbox. | | list_sandboxes | Lists live Sandboxes visible to the configured API Key, with optional live status filtering and limit. | | get_usage | Reads compute usage, credits, quota buckets, and MCP-session Sandbox state. | | get_sandbox | Inspects a Sandbox by id or the current lazy default Sandbox. | | extend_sandbox | Resets a live Sandbox TTL from now. | | kill_sandbox | Kills a server-created Sandbox. If it was the default Sandbox, the next default call creates a new one. | | write_file | Writes utf-8 text to a Workspace path, normally under /workspace. | | read_file | Reads utf-8 text from a Workspace path. | | list_files | Lists files in a Workspace path, defaulting to /workspace. | | delete_file | Deletes a file or empty directory from the Workspace. | | move_file | Moves or renames a Workspace file. | | make_directory | Creates a Workspace directory. | | stat_file | Inspects Workspace file metadata. | | create_artifact | Creates a durable Artifact from a Workspace file. | | list_artifacts | Lists Artifacts for a Sandbox. | | get_artifact | Inspects Artifact metadata by Artifact id. | | download_artifact | Downloads an Artifact by id and returns base64 content plus content type. | | delete_artifact | Deletes an Artifact by Artifact id. | | create_preview | Creates a Preview for a Sandbox HTTP service. Token auth mode returns a one-time Preview token. | | list_previews | Lists Previews for a Sandbox. | | get_preview | Inspects a Preview by Preview id. | | revoke_preview | Revokes a Preview by Preview id. | | list_api_keys | Lists API Key metadata without returning secret key values. | | revoke_api_key | Revokes an API Key by API Key id. | | create_project | Creates a Project for isolating Sandboxes, usage, quotas, and API-key restrictions. |

Local Development

pnpm --filter @crownest/mcp test
pnpm --filter @crownest/mcp typecheck
pnpm --filter @crownest/mcp build
CROWNEST_API_KEY= node packages/mcp/dist/index.js