agent-env-mcp
@brycepelletier/agent-env-mcp
可重用的宿主机侧 MCP 控制器,用于加固的 Linux 软件工程运行时。
0.3.1 信任域划分
Compose 运行时在同一工作树上有两个执行域:
agent:供 Software Engineer 工具使用。真实的.git目录被一个 root 所有的 tmpfs 挂载所遮蔽。git:仅供git_command使用。它能看见真实的.git目录,并且设置network_mode: none。
远程 Git/GitHub 操作不属于此包;它们应由独立的 GitHub MCP 信任域处理。
Related MCP server: Secure Grid Genesis Execution
工具
ensure_environmentlist_directoryread_filesearch_workspaceworkspace_editrun_commandgit_command
MCP 会在工具首次使用时,通过 MCP Roots 惰性地发现当前活动的 VS Code 工作区。无需 ${workspaceFolder} 启动时变量。
本地开发
npm run link链接状态下的用户级 VS Code MCP 配置:
"agent-env": {
"type": "stdio",
"command": "agent-env-mcp"
}要移除全局开发链接:
npm run unlink0.3.1 验收检查
在移除项目旧的 .devcontainer 之前:
ensure_environment执行成功,并报告/agent-env/environment/<project>。run_command能够构建项目。即使
run_command通过 Python/Node 间接调用 Git,也无法获取真实的 Git 分支/历史。git_command ["status", "--short", "--branch"]执行成功。Git 服务没有网络访问权限。
当前的 .git 遮蔽实现基于标准检出之上,其中 .git 是一个目录。对于使用 .git 文件的 Git worktree/submodule,应拒绝此类仓库形式,或由未来的挂载策略处理,之后才能将此运行时视为已针对这些仓库形式加固。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Run commands, code and file operations for AI agents in Cloud Hypervisor microVM sandboxes.
Cloud sandboxes for AI agents: run code, files, previews, browsers, Linux desktops, Android.
Secure Linux sandboxes for AI agents, as MCP tools.
Cloud Linux VMs for your agent: run code, Docker, files and HTTPS previews in a Sandboxer microVM.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA throwaway Docker sandbox for agents to run code and shell commands safely.10 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to safely execute Python, JavaScript, and Bash code in an isolated Docker sandbox with strict security constraints.1-
- AlicenseAqualityDmaintenanceEnables AI coding agents to safely execute commands, run tests, and modify project files inside disposable, policy-enforced Docker sandboxes that are isolated from the host machine and its credentials.15MIT
- AlicenseAqualityDmaintenanceEnables AI coding agents to safely execute code, run tests, and build projects inside disposable Docker sandboxes, protecting the host machine through enforced isolation, filesystem snapshots, and network controls.15MIT