agent-env-mcp
Click on "Install 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., "@agent-env-mcprun the project's tests in the sandbox"
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.
agent-env-mcp
A host-side MCP controller that owns a reusable Linux development runtime and exposes a narrow, project-scoped workspace/tool boundary to coding agents.
Trust boundary
The MCP process runs on the host because it must control Docker.
The model is never given a host filesystem tool or arbitrary host command tool.
VS Code passes the currently-open workspace once at MCP startup through
AGENT_HOST_WORKSPACE.That workspace is bind-mounted into an agent-owned runtime at
/agent-env/environment/<project-slug>.File reads, searches, edits, local Git, builds, tests, and other command execution happen inside the Linux
agentcontainer.The runtime has no Docker socket and no GitHub credential mount.
Compose and Dockerfile are owned by this repository, not by the application repository.
Exposed tools
ensure_environmentlist_directoryread_filesearch_workspaceworkspace_editrun_commandgit_command
run_command uses structured program + args execution with no shell and refuses direct Git. git_command is intended for the GitHub Operator, disables repository hooks/signing, and permits only a local Git subcommand allowlist; network Git operations are intentionally excluded.
Install
cd D:\mcp\agent-env-mcp
npm installAdd the server to VS Code user MCP configuration using mcp.json.example.
The important setting is:
"env": {
"AGENT_HOST_WORKSPACE": "${workspaceFolder}"
}The model cannot select a different host workspace after the MCP server starts.
Verification
After restarting the MCP server:
ensure_environmentlist_directorywithpath: "."read_fileon a known project filesearch_workspacefor a known symbol/textrun_commandwithprogram: "pwd"git_commandwithargs: ["status", "--short"]
Expected boundary failures:
read_file("../../anything")an absolute path
a Windows path
direct
.gitreadsrun_commandwithbashrun_commandwithdockerrun_commandwithgit
Migration
After the new runtime is proven:
Remove the project-owned
.devcontainer.Remove generic VS Code
execute,read,edit, andsearchfrom Software Engineer.For a strict container-only read boundary, also remove VS Code C/C++ semantic tools that inspect source outside
agent-env.Give GitHub Operator
agent-env/git_commandfor local Git.Keep remote GitHub operations in the GitHub MCP.
Runtime baseline
The included Dockerfile uses Node 24 LTS, C/C++ build tools, Python, PlatformIO 6.1.19, Git, and ripgrep. Runtime profiles can be split out later without changing the trust model.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Git-backed platform for skills, tools, and context for AI agents
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Securely search and manage workspace context files for AI agents and teams.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/brycepelletier/agent-env-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server