sandbox
Enterprise AI Agent Sandbox
エージェント型AIワークフローにサンドボックス実行を組み込むためのセキュリティフレームワーク。Claude Code、Codex、Cursor、その他のAIエージェントが実行される任意のフォルダにコネクタを配置するだけで、特権コマンドはすべて人間の承認者にエスカレーションされ、エージェントのコンテキスト外で実行され、出力はモデルにフィードバックされて続行できます。
アーキテクチャ
フォルダコネクタは、サンドボックスをプロジェクトに橋渡しします:
Claude Code フックはツール呼び出しをインターセプトし、特権操作を人間の承認者にエスカレーションし、キャプチャした出力を
deny決定内に返すため、ツールがエージェント権限で実行されることはありませんMCP サーバー (
run_privileged,check_request,sandbox_status) は Model Context Protocol 上で同じループを提供します — Claude Code、Codex、Cursor、Windsurf で動作しますフォルダキュー (
.sandbox/escalations/) はバスです: アトミックファイル操作 (os.replace,os.rename) が、4つの無関係なプロセス (フックサブプロセス、MCPサーバー、承認者ターミナル、ダッシュボード) 間で承認を調整しますポリシーエンジンはシェルコマンド、ファイル書き込み、ネットワークリクエスト、読み取りを分類します — 4つのエスカレーショントリガーと、最上位層としてのヒューマン・イン・ザ・ループ
Related MCP server: Approval Gate
Quick Start
# Install the connector
python -m pip install -e ".[dev]"
# Initialize a folder
sandbox init . --claude --mcp
# In one terminal: watch for escalations
sandbox watch .
# In another: use Claude Code or the MCP tools as normal
# Privileged commands will appear in the `watch` terminal for approval仕組み
エージェントがコマンドを実行しようとする — Claude Code の PreToolUse フックがそれをインターセプトします
フックが分類してエスカレーションする — 許可リストにないシェルコマンドはフォルダキューに送られます
人間が
sandbox watchで承認する — 承認者はコマンドをエージェントの外部で実行します出力がモデルに返される —
permissionDecision:"deny"にラップされ、stdout が reason 文字列に含まれますエージェントは続行する — 結果を受け取りましたが、それ自体が権限を持つことはありません
MCP チャネルも同様に動作します: run_privileged はキャプチャされた出力を含むツール結果を返します。
マイルストーン
✅ マイルストーン 0 — 基盤 (バグ修正、パス封じ込め、監査の再水和)
✅ マイルストーン 1 — ループ (PreToolUse フック、フォルダキュー、CLI 承認)
✅ マイルストーン 2 — MCP チャネル (run_privileged, check_request, sandbox_status)
✅ マイルストーン 3 — フォルダレコード (復元可能なオリジナル、連鎖監査、PostToolUse)
✅ マイルストーン 4 — その他のトリガー (完全な分類器、記憶された決定、SessionStart コンテキスト)
✅ マイルストーン 5 — サーフェス (REST ルート、アンインストール、ドキュメント)
すべてのマイルストーンが完了しました。 完全な技術リファレンスは docs/CONNECTOR.md を参照してください。
Testing
# Run all tests (117 passing)
python -m pytest -q
# Test the loop with a real hook subprocess and background approver
python -m pytest tests/integration/test_connector_loop.py -v
# Test the MCP channel
python -m pytest tests/integration/test_mcp_tools.py -vProject Structure
src/sandbox/
├── connector/ # Folder connector (queue, hooks, policy, MCP)
├── launcher/ # M1 jailed launcher (job objects, jail, shims)
├── audit/ # Chained audit log with tamper detection
├── broker/ # Non-AI privilege executor
├── fs/ # Path containment and validation
├── agents/ # Multi-agent sandbox orchestrator
├── api/ # FastAPI routes and WebSocket
└── ...主要な設計決定
フォルダがバス: NTFS 上のアトミックファイル操作が4つの独立したプロセスを調整します (インメモリ状態なし、オープンポートなし、再起動後も存続)
denyが出力を運ぶ: ツールはエージェント内で実行されず、出力は reason 文字列に貼り戻されますCLI ファーストの承認: ヘッドレスで SSH 経由で動作し、ブラウザ依存なし
フェイルクローズ: 内部エラーは黙って許可するのではなくブロックします
削除不可能な自己保護: 書き込み拒否の
.sandbox/**とシェル拒否の\.sandboxは、ポリシーが読み込まれるたびに再注入されます — エージェントは自身の制約を削除できません
License
[未定]
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 Servers
- AlicenseNot gradedqualityDmaintenanceHuman-in-the-Loop authorization gateway for AI Agents. Securely pause MCP workflows and route high-risk actions to human approvers via Slack or Email.1171MIT
- AlicenseNot gradedqualityCmaintenanceProvides a human approval gate for AI agents, enabling interactive inline cards for approving, editing, or rejecting actions before they are executed.MIT
- AlicenseNot gradedqualityCmaintenancePauses AI agent execution and routes approval requests to humans via Slack or email, with cryptographically signed proof of the human's decision.197MIT
- AlicenseAqualityCmaintenanceEnables AI agents to securely use real secrets (API keys, database passwords) by requiring human approval for each release, ensuring secrets never enter the model's context.2Apache 2.0
Related MCP Connectors
Runtime permission, approval, and audit layer for AI agent tool execution.
Human-in-the-loop for AI coding agents — ask questions, get approvals via Slack.
Human-in-the-loop for AI agents. Submit choices, get a human decision.
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/Boredem125/architecture-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server