agent-env-mcp
agent-env-mcp
ホスト側のMCPコントローラーで、再利用可能なLinux開発ランタイムを所有し、コーディングエージェントに対して狭いプロジェクトスコープのワークスペース/ツール境界を公開します。
信頼境界
MCPプロセスはDockerを制御する必要があるため、ホスト上で実行されます。
モデルには、ホストファイルシステムツールや任意のホストコマンドツールは一切与えられません。
VS CodeはMCP起動時に、現在開いているワークスペースを
AGENT_HOST_WORKSPACE経由で一度だけ渡します。そのワークスペースは、エージェント所有のランタイムの
/agent-env/environment/<project-slug>にバインドマウントされます。ファイル読み取り、検索、編集、ローカルGit、ビルド、テスト、その他のコマンド実行は、Linuxの
agentコンテナ内で行われます。ランタイムにはDockerソケットもGitHub認証情報のマウントもありません。
ComposeとDockerfileは、アプリケーションリポジトリではなく、このリポジトリが所有します。
公開ツール
ensure_environmentlist_directoryread_filesearch_workspaceworkspace_editrun_commandgit_command
run_commandはシェルなしの構造化されたprogram + args実行を使用し、直接のGitを拒否します。git_commandはGitHub Operator向けで、リポジトリのフック/署名を無効にし、ローカルGitサブコマンドの許可リストのみを許可します。ネットワークGit操作は意図的に除外されています。
インストール
cd D:\mcp\agent-env-mcp
npm installmcp.json.exampleを使用して、サーバーをVS CodeユーザーMCP設定に追加します。
重要な設定は次のとおりです:
"env": {
"AGENT_HOST_WORKSPACE": "${workspaceFolder}"
}MCPサーバー起動後、モデルは別のホストワークスペースを選択できません。
検証
MCPサーバーを再起動した後:
ensure_environmentpath: "."を指定したlist_directory既知のプロジェクトファイルに対する
read_file既知のシンボル/テキストに対する
search_workspaceprogram: "pwd"を指定したrun_commandargs: ["status", "--short"]を指定したgit_command
想定される境界違反:
read_file("../../anything")絶対パス
Windowsパス
直接の
.git読み取りbashを指定したrun_commanddockerを指定したrun_commandgitを指定したrun_command
移行
新しいランタイムが実証された後:
プロジェクト所有の
.devcontainerを削除します。Software Engineerから汎用のVS Code
execute、read、edit、searchを削除します。厳格なコンテナのみの読み取り境界の場合は、
agent-envの外のソースを検査するVS Code C/C++セマンティックツールも削除します。GitHub OperatorにローカルGit用の
agent-env/git_commandを付与します。リモートGitHub操作はGitHub MCPに残します。
ランタイムベースライン
同梱のDockerfileは、Node 24 LTS、C/C++ビルドツール、Python、PlatformIO 6.1.19、Git、ripgrepを使用します。ランタイムプロファイルは、信頼モデルを変更せずに後で分割できます。
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