envy-mcp-hello
Provides tools for creating and managing Modal sandboxes, enabling execution of code and file operations within an ephemeral sandbox environment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@envy-mcp-hellocreate a sandbox and read the README file"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
envy-mcp-hello
A tiny public MCP server backed by an Envy-managed Modal sandbox. It exposes
one hello environment and the standard Envy MCP tools:
create_sandbox · kill_sandbox · publish_pull_request · bash · read · write · edit · glob · grep
This example pins the current FastMCP 4 prerelease (4.0.0b3) so the public
deployment exercises the v4 server and client protocol.
Deploy it
Create a Modal token in the
modal-labsworkspace.In this GitHub repository, add these Actions secrets under Settings → Secrets and variables → Actions:
MODAL_TOKEN_IDMODAL_TOKEN_SECRETENVY_MODAL_APP_NAMEENVY_MODAL_ENDPOINT_LABEL
Create a Modal Secret named
envy-githubcontainingGITHUB_TOKEN. Use a fine-grained token restricted to this repository with only the contents and pull-request permissions required for publishing.Push to
main, or run Deploy MCP server manually from the Actions tab.
The workflow installs Envy from the public aaazzam/envy
repository with uv, runs the declaration tests, and deploys the modal_app
in devboxes.py to Modal.
The deployed MCP URL is shared out-of-band rather than committed here. The endpoint is intentionally public and does not use Modal proxy authentication; URL secrecy is not a security boundary. Do not put secrets or private source code in the hello sandbox.
ENVY_MODAL_APP_NAME and ENVY_MODAL_ENDPOINT_LABEL are stable, opaque
deployment values. Keep them out of the repository and reuse them across
redeploys so the same endpoint is updated instead of creating a new app.
Related MCP server: Modal MCP
Try it
Point an MCP client at the URL and call:
create_sandboxwithenvironment: "hello"write/tmp/hello/message.txtwithhello from MCPread,edit,bash,glob, orgrepagainst that fileread/tmp/hello/README.mdor run/tmp/hello/hello.pyStage and commit a branch inside the sandbox.
Call
publish_pull_requestto push the committed branch and open the PR.kill_sandboxwhen finished
The sandbox is ephemeral, uses /tmp/hello as its working directory, and is
backed by a Git checkout of this repository's main branch. GitSource
automatically adds Git to the sandbox image before the checkout.
Local validation
Install the locked environment and run the tests with uv:
uv sync --dev
uv run pytestThe package declaration lives in envy_mcp_hello/app.py; devboxes.py is a
small compatibility entry point for the Modal CLI, and hello.py is the code
that gets checked out into the sandbox.
The GitHub Action deploys the public control plane and rebakes the environment
image, while sandbox creation happens when an MCP client calls
create_sandbox.
Because this public example can publish to GitHub, protect the MCP endpoint or use a narrowly scoped, disposable GitHub token before exposing it beyond a trusted client.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Cloudflare Workers MCP server: interactive-api-playground
Cloudflare Workers MCP server: ai-agent-scratchpad
Related MCP Servers
AlicenseAqualityFmaintenanceMCP server to give every agent an ephemeral Linux sandboxes for executing shell commands.151MIT- AlicenseAqualityAmaintenanceAn MCP server for managing Modal — apps, containers, volumes, and secrets — and for deploying & running Modal apps directly from Claude Code and other MCP clients.1289 PyPI2MIT
- FlicenseNot gradedqualityDmaintenanceA sandbox MCP server for testing and debugging MCP tools and interactions via the MCP Inspector.-
- FlicenseNot gradedqualityBmaintenanceA minimal MCP server with hello and echo tools.-