شعار Agent Sandbox

Agent Sandbox

المجتمع
vivek1504

Give any AI agent its own disposable Linux machine. Firecracker microVM sandboxing with millisecond boot times, full network access, and native MCP support.

الناشرvivek1504
المستودعagent-sandbox
اللغةTypeScript
التفريعات
1
النجوم
33
الأدوات المتاحة
0
نوع نقل البياناتstdio
الفئات
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Agent Sandbox إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 33، والنسخ المتفرعة: 1 في المستودع المرتبط.

Agent Sandbox

Secure, hardware-isolated execution sandbox for AI agents using Firecracker microVMs

Node.js TypeScript Firecracker Model Context Protocol Linux KVM License

⭐ If you like this project, star it on GitHub!

Overview • Architecture • Capabilities • Getting Started • Integration & SDKs • Security Model • Performance • Configuration


Overview

AI agents need to perform real-world actions: generate and execute code, install third-party dependencies, query remote APIs, run background processes, and manipulate files. Running untrusted, agent-generated code on the host machine is dangerous, while conventional container sandboxing shares the host kernel—leaving systems vulnerable to kernel exploits, dirty sysctls, and resource exhaustion.

Agent Sandbox provides each AI agent session with a dedicated Firecracker microVM. Sessions boot in milliseconds from pre-baked snapshots, run in complete hardware isolation with their own Linux kernel, and are automatically torn down when execution completes.

[!NOTE] Sub-100ms Cold Starts: By combining Firecracker snapshot restoration with pre-provisioned root filesystems, microVM guest state restores in ~2.6ms (total end-to-end cold start is ~90ms including dedicated Linux network namespace, veth pair, TAP device, and NAT egress provisioning).


Architecture

Agent Sandbox separates untrusted guest execution from the host control plane through strict virtualization and network boundaries.

text
┌─────────────────────────────────────────────────────────────────────────┐
│                           Host (Linux + KVM)                            │
│                                                                         │
│  ┌──────────────────────┐  ┌──────────────────────┐  ┌───────────────┐  │
│  │   Express REST API   │  │      MCP Server      │  │    Metrics    │  │
│  │       /exec/*        │  │     stdio / SSE      │  │   /metrics    │  │
│  └──────────┬───────────┘  └──────────┬───────────┘  └───────┬───────┘  │
│             │                         │                      │          │
│             └───────────┬─────────────┘                      │          │
│                         ▼                                    │          │
│             ┌───────────────────────┐   ┌───────────────────────────┐   │
│             │    Session Gateway    ├──►│     Template Registry     │   │
│             │ (Lazy initialization) │   │   (Node, Python, Go...)   │   │
│             └───────────┬───────────┘   └───────────────────────────┘   │
│                         ▼                                               │
│             ┌───────────────────────┐                                   │
│             │      VM Manager       │                                   │
│             │ (Jailer chroot + KVM) │                                   │
│             └───────────┬───────────┘                                   │
│                         │                                               │
│    ┌────────────────────┴──────────────────────────────────────────┐    │
│    │                  Per-VM Network Namespace                     │    │
│    │   veth pair ── TAP device ── iptables NAT ── dnsmasq filter   │    │
│    └────────────────────┬──────────────────────────────────────────┘    │
│                         │ vsock channel                                 │
│    ╔════════════════════╧══════════════════════════════════════════╗    │
│    ║                 Firecracker microVM (Guest)                   ║    │
│    ║                                                               ║    │
│    ║   ┌───────────────────────┐     ┌─────────────────────────┐   ║    │
│    ║   │   Guest Runtime.js    │────►│  /workspace (tmpfs RAM) │   ║    │
│    ║   └───────────────────────┘     └─────────────────────────┘   ║    │
│    ║               ▲                                               ║    │
│    ║               │                                               ║    │
│    ║      socat ◄──┴──► vsock:5000 (Host-to-Guest IPC)             ║    │
│    ╚═══════════════════════════════════════════════════════════════╝    │
└─────────────────────────────────────────────────────────────────────────┘

Execution Flow

  1. Session Request: An agent issues a command through the TypeScript SDK, MCP protocol, or REST API, specifying an optional template (node, python, go).
  2. Snapshot Lookup: The Session Gateway checks for an active instance. If cold, it fetches pre-baked snapshot state from the Template Registry and restores the microVM in ~2.6ms.
  3. Network Isolation: The host configures a dedicated Linux network namespace with an isolated veth pair, TAP device, custom routing table, and iptables rules.
  4. Vsock Dispatch: Commands and payloads stream directly to the guest runtime over a zero-network vsock channel.
  5. Reaping & Teardown: Inactive sessions are automatically reaped after an idle timeout (default: 30 minutes), removing the jail chroot, network namespace, and cgroup slices.

Network Packet Path & Isolation Boundary

text
MicroVM Guest (eth0: 192.168.241.2/29)
    ↓
tap0 (192.168.241.1/29) — Inside Per-VM Network Namespace
    ↓
Per-Namespace iptables:
  ├── PREROUTING: Transparent DNS redirection (UDP/TCP 53 → local dnsmasq)
  ├── FORWARD → VM_EGRESS: Cloud metadata block (169.254.169.254/32) + optional CIDR rules
  └── POSTROUTING: MASQUERADE 192.168.241.0/29 outbound to vethNs
    ↓
vethNs (10.0.{slot}.1/30)
    ↓ (veth pair across network namespace boundary)
vethHost (10.0.{slot}.2/30) — On Host
    ↓
Host-Level iptables:
  ├── INPUT: DROP all incoming traffic from 10.0.0.0/16 to host daemon ports
  ├── FORWARD: DROP 169.254.169.254/32 (Defense-in-depth metadata blocking)
  ├── FORWARD: DROP 10.0.0.0/16 → 10.0.0.0/16 (Strict cross-tenant VM isolation)
  ├── FORWARD: ACCEPT 10.0.0.0/16 outbound & return conntrack
  └── POSTROUTING: MASQUERADE 10.0.0.0/16 outbound to physical WAN interface
    ↓
Internet

Capabilities

CapabilityDetails
Hardware VirtualizationFull hardware isolation via KVM; each microVM runs its own guest Linux kernel.
Instant Cold BootResumes snapshotted microVM state in ~2.6ms (sub-100ms total API round-trip).
Pre-built TemplatesReady-to-use environments for Node.js 22, Python 3.12, and Go 1.23.
Custom Dockerfile SnapshotsBuild custom runtime snapshots directly from any Dockerfile using the included pipeline.
Real-time Output StreamingStream stdout/stderr in real-time over NDJSON HTTP chunks or SDK async iterables.
Isolated FilesystemIn-memory 512MB /workspace (tmpfs) with path-traversal prevention.
Full Network StackOutbound HTTP/HTTPS access, transparent DNS interception, and configurable CIDR allow/deny lists.
Process ControlCommand timeouts, cancellation via SIGTERM/SIGKILL, and exit code tracking.
Agent ProtocolsFirst-class Model Context Protocol (MCP) support (stdio and SSE) alongside typed SDKs.

Environment Templates

Agent Sandbox comes with three pre-configured templates:

  • node (Default): Alpine Linux 3.20 + Node.js 22 + npm + git + curl
  • python: Alpine Linux 3.20 + Python 3.12 + pip + git + curl
  • go: Alpine Linux 3.20 + Go 1.23 + git + curl

Building & Creating Custom Templates

Build any bundled or custom template using the snapshot script:

bash
# Build bundled templates
sudo ./templates/build.sh node
sudo ./templates/build.sh python
sudo ./templates/build.sh go

To create a custom environment, create a directory under templates/<template-name>/ with a Dockerfile:

dockerfile
FROM agent-sandbox-base:latest

RUN apk add --no-cache ruby rust cargo postgresql-client

LABEL template.name="data-science" \
      template.displayName="Data Science & Rust" \
      template.tools="ruby,rustc,cargo,psql"

Build the snapshot:

bash
sudo ./templates/build.sh data-science

Getting Started

Prerequisites

  • Linux Host with hardware virtualization enabled (/dev/kvm must exist and be accessible)
  • Firecracker & Jailer v1.16+ installed in /usr/local/bin/
  • Node.js v20+
  • Docker (used solely during template build pipeline)
  • Root / sudo privileges (required for Jailer chroot, cgroups, and network namespaces)

[!IMPORTANT] Agent Sandbox requires Linux KVM acceleration. It cannot run inside standard non-nested containers or on macOS/Windows hosts without nested virtualization support.

1. Install Firecracker & Jailer

Download the binaries from the official Firecracker releases:

bash
ARCH="$(uname -m)"
RELEASE_URL="https://github.com/firecracker-microvm/firecracker/releases"
LATEST=$(basename $(curl -fsSLI -o /dev/null -w %{url_effective} ${RELEASE_URL}/latest))

curl -L "${RELEASE_URL}/download/${LATEST}/firecracker-${LATEST}-${ARCH}.tgz" | tar -xz

sudo mv "release-${LATEST}-${ARCH}/firecracker-${LATEST}-${ARCH}" /usr/local/bin/firecracker
sudo mv "release-${LATEST}-${ARCH}/jailer-${LATEST}-${ARCH}" /usr/local/bin/jailer
rm -rf "release-${LATEST}-${ARCH}"

2. Configure System User & IP Forwarding

The Jailer drops privileges to a dedicated unprivileged user (firecracker):

bash
# Create firecracker system user and group
sudo groupadd -g 982 firecracker 2>/dev/null || true
sudo useradd -u 997 -g 982 -M -s /usr/sbin/nologin firecracker 2>/dev/null || true

# Enable IPv4 forwarding for guest internet access
sudo sysctl -w net.ipv4.ip_forward=1
echo "net.ipv4.ip_forward = 1" | sudo tee /etc/sysctl.d/99-ip-forward.conf

3. Install Project Dependencies & Kernel Artifact

bash
git clone https://github.com/vivek1504/agent-sandbox.git
cd agent-sandbox
npm install

# Setup artifacts directory and download kernel
sudo mkdir -p /var/lib/agent-sandbox/artifacts
wget https://github.com/vivek1504/agent-sandbox/releases/download/Beta/vmlinux
sudo mv vmlinux /var/lib/agent-sandbox/artifacts/
sudo chown -R root:firecracker /var/lib/agent-sandbox/artifacts
sudo chmod 750 /var/lib/agent-sandbox/artifacts

4. Build Templates & Start the Server

bash
# Build base Node.js template snapshot
sudo ./templates/build.sh node

# Start the server (requires root for Jailer and netns configuration)
sudo npm start
# Server listening on http://localhost:3000

5. Verify Installation

bash
# Health probe
curl http://localhost:3000/health

# Execute a command in a fresh microVM
curl -X POST http://localhost:3000/exec/test-session/execute \
  -H "Content-Type: application/json" \
  -d '{"command": "node", "args": ["-e", "console.log(process.version)"]}'

Integration & SDKs

Agent Sandbox offers three integration surfaces: a typed TypeScript/JavaScript SDK, a Model Context Protocol (MCP) server for autonomous agents, and a direct REST API.

TypeScript / JavaScript SDK

The official client SDK (@agent-sandbox/sdk) is zero-dependency and runs across Node.js 18+, Bun, and Deno.

bash
npm install ./sdk/typescript
ts
import { Sandbox } from "@agent-sandbox/sdk";

const sandbox = new Sandbox({
  baseUrl: "http://localhost:3000",
  headers: { Authorization: "Bearer sk_test_..." },
});

// Create a session backed by Python
const session = sandbox.create({ template: "python" });

// Run code directly
const result = await session.runCode("print('Hello from isolated microVM!')");
console.log(result.output[0].data);

// Stream command output in real time
for await (const chunk of session.execStream("pip", { args: ["install", "requests"] })) {
  if (chunk.type === "stream") process.stdout.write(chunk.data!);
}

// Write and read files inside the session workspace
await session.writeFile("script.py", 'print("File execution works")');
const { content } = await session.readFile("script.py");

// Destroy the session and reclaim microVM resources
await session.destroy();

Model Context Protocol (MCP)

Connect Claude Desktop, Cursor, or custom MCP-compatible AI agents directly to Agent Sandbox.

Stdio Configuration

Add to your MCP client configuration (e.g. claude_desktop_config.json):

json
{
  "mcpServers": {
    "agent-sandbox": {
      "command": "node",
      "args": ["/path/to/agent-sandbox/dist/mcp/stdio.js"],
      "env": {
        "FIRECRACKER_JAIL_BASE": "/var/lib/agent-sandbox/jailer",
        "FIRECRACKER_ARTIFACTS_DIR": "/var/lib/agent-sandbox/artifacts"
      }
    }
  }
}

MCP Tools Reference

ToolParametersDescription
create_sessiontemplate?Provision a new isolated execution session.
list_templates—List available environment templates and installed runtimes.
executesessionId, command, args?, cwd?, timeout?Execute a binary or command inside the VM.
write_filesessionId, path, contentWrite a file to /workspace.
read_filesessionId, pathRead a file from /workspace.
list_filessessionId, path?, recursive?List contents of the workspace.
reset_sessionsessionIdImmediately destroy the session and release resources.

REST API

The HTTP server exposes JSON endpoints under /exec:

bash
# List available environment templates
curl -H "Authorization: Bearer sk_test_..." http://localhost:3000/exec/templates

# Execute command (buffered JSON response)
curl -X POST http://localhost:3000/exec/session-1/execute \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{"template": "node", "command": "node", "args": ["-e", "console.log(1+1)"]}'

# Execute command with streaming NDJSON output
curl -X POST http://localhost:3000/exec/session-1/execute \
  -H "Authorization: Bearer sk_test_..." \
  -H "Accept: application/x-ndjson" \
  -H "Content-Type: application/json" \
  -d '{"command": "npm", "args": ["install", "express"]}'

# Write a file to /workspace
curl -X POST http://localhost:3000/exec/session-1/write \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{"path": "hello.txt", "content": "Hello World"}'

# Read a file from /workspace
curl -H "Authorization: Bearer sk_test_..." \
  "http://localhost:3000/exec/session-1/read?path=hello.txt"

# List files in /workspace
curl -H "Authorization: Bearer sk_test_..." \
  "http://localhost:3000/exec/session-1/files?recursive=true"

# Terminate session
curl -X DELETE -H "Authorization: Bearer sk_test_..." \
  http://localhost:3000/exec/session-1

Authentication & API Key Management

Agent Sandbox includes a built-in scoped API key manager with per-key rate limiting.

[!NOTE] In accordance with OWASP security practices, API keys are accepted exclusively via HTTP headers (Authorization: Bearer <key> or X-API-Key: <key>). Query-string authentication is rejected to prevent credentials leaking into access logs.

Manage keys via the CLI:

bash
# Generate a key with 'exec' scope
npm run keys create "agent-key"

# Generate an admin key with rate limiting (100 req/min)
npm run keys create "admin-key" --scopes exec,admin,metrics --rate-limit 100

# List, rotate, or revoke keys
npm run keys list
npm run keys rotate <key-id>
npm run keys revoke <key-id>

Security Model

Agent Sandbox employs defense-in-depth isolation across compute, process, filesystem, and network layers:

text
┌─────────────────────────────────────────────────────────────────┐
│ TRUSTED: Host Infrastructure & Linux Kernel                     │
│ • KVM hypervisor kernel module                                  │
│ • Express HTTP & MCP control plane                              │
│ • Linux network namespaces, host iptables, veth routing         │
└────────────────────────────────┬────────────────────────────────┘
                                 │ Virtualization Boundary (KVM / virtio)
┌────────────────────────────────▼────────────────────────────────┐
│ SEMI-TRUSTED: Firecracker VMM Process                           │
│ • Jailer chroot (0o750 directory perms, unprivileged UID/GID)   │
│ • Restrictive seccomp syscall filter                            │
│ • Host cgroups v2 limits (pids.max=256, memory max, CPU quota)  │
└────────────────────────────────┬────────────────────────────────┘
                                 │ vsock IPC / Isolated Netns
┌────────────────────────────────▼────────────────────────────────┐
│ UNTRUSTED: MicroVM Guest & Executed Agent Code                  │
│ • Guest Linux kernel & arbitrary user processes                 │
│ • /workspace (isolated 512MB tmpfs RAM disk)                    │
│ • Network traffic constrained by per-namespace egress chains    │
└─────────────────────────────────────────────────────────────────┘

Threat Mitigations

Threat VectorMitigation StrategyImplementation
Host EscapeHardware virtualization + Jailer confinementKVM hypervisor boundary, unprivileged UID/GID, chroot confinement, default seccomp profile
Fork Bombs & DoSKernel cgroup resource limitspids.max=256 enforced via cgroups v2/v1 per microVM slice
Cloud Metadata TheftIMDS endpoint blocking169.254.169.254/32 dropped at both per-VM namespace egress and host FORWARD chains
Host Port ScanningHost-level firewall isolationiptables -I INPUT -s 10.0.0.0/16 -j DROP explicitly blocks guest access to host daemon ports
Inter-Tenant SnoopingCross-VM packet isolationFORWARD -s 10.0.0.0/16 -d 10.0.0.0/16 -j DROP prevents VMs from communicating with each other
DNS Bypass & ExfiltrationTransparent DNS redirectionPREROUTING REDIRECT forwards port 53 to local dnsmasq; unmanaged direct DNS egress is dropped
Path TraversalNormalized path boundary validationisInsideWorkspace strictly confines all file operations to /workspace
IPv6 LeakageComplete IPv6 dropip6tables -P DROP enforced inside every network namespace

Performance & Benchmarks

An automated microsecond-accurate benchmark harness (npm run bench) profiles end-to-end performance across all subsystems.

  • Test System: Ubuntu 24.04 LTS (Linux 6.17), Intel Core i5-11400H @ 2.70GHz, 6 Cores / 12 Threads, 8GB RAM, KVM enabled.

1. VM Lifecycle (Cold Start)

PhaseMinp50 (Median)Meanp95p99
Snapshot Restore2.21ms2.59ms2.77ms3.77ms3.77ms
Network Setup (netns + veth + iptables)50.8ms55.3ms58.8ms75.9ms75.9ms
Jailer & Socket Preparation9.20ms15.20ms14.90ms20.26ms20.26ms
Guest Vsock Handshake14.17ms15.30ms15.10ms15.50ms15.50ms
Total Cold Start83.1ms90.6ms91.8ms104.8ms104.8ms
Warm Command RTT1.38ms1.48ms2.29ms9.42ms9.42ms

[!TIP] Restoring the Firecracker microVM snapshot takes only ~2.6ms. Over 60% of cold-start latency is dedicated to provisioning the isolated Linux network namespace (~55ms).

2. Concurrency Scaling

Concurrency TierMinp50 (Median)Meanp95
1 Concurrent VM82.2ms98.1ms97.4ms109.5ms
5 Concurrent VMs198.3ms209.5ms217.9ms246.1ms
10 Concurrent VMs372.8ms401.4ms411.8ms469.0ms

3. Cleanup & Teardown Latency

Operationp50 (Median)Meanp95
Process Termination (SIGKILL)11.8µs12.6µs19.4µs
Jail Directory Teardown (rm -rf)0.43ms0.48ms0.71ms
Network Namespace Deletion27.8ms25.7ms39.0ms
Total Cleanup7.53ms7.78ms8.45ms

Configuration

Configure Agent Sandbox through environment variables (or an .env file):

Environment VariableDefaultDescription
PORT3000HTTP server port.
LOG_LEVELdebugStructured logger level (fatal, error, warn, info, debug, trace).
AUTH_ENABLEDtrueEnforce API key authentication.
AUTH_KEYS_PATH/var/lib/agent-sandbox/keys.jsonPersistent storage path for API keys.
AUTH_KEY_PREFIXsk_test_Prefix assigned to newly generated API keys.
FIRECRACKER_BIN/usr/local/bin/firecrackerPath to the Firecracker binary.
FIRECRACKER_JAILER_BIN/usr/local/bin/jailerPath to the Jailer binary.
FIRECRACKER_JAIL_BASE/var/lib/agent-sandbox/jailerBase directory for Jailer chroots.
FIRECRACKER_ARTIFACTS_DIR/var/lib/agent-sandbox/artifactsDirectory storing kernel, snapshot, and template files.
FIRECRACKER_UID997Linux UID for the Firecracker Jailer process.
FIRECRACKER_GID982Linux GID for the Firecracker Jailer process.
VM_VCPU_COUNT1Guest vCPU count.
VM_MEM_SIZE_MIB128Guest RAM in MiB (must match snapshot configuration).
VM_CPU_QUOTA_US50000Cgroups v2 CPU bandwidth quota in microseconds.
VM_CPU_PERIOD_US100000Cgroups v2 CPU bandwidth period in microseconds.
VM_MEMORY_LIMIT_BYTES134217728Host-side cgroup memory limit (128 MiB).
VM_PIDS_LIMIT256Maximum process count inside the jail cgroup (fork-bomb protection).
VM_NOFILE_LIMIT1024Maximum file descriptors per microVM process.
STRICT_PERMISSIONSfalseFail fast on chmod/chown errors (automatically enabled in production).
VM_DNS_MODEnoneDNS filtering mode (none, allow, deny).
VM_DNS_DOMAINS""Comma-separated domain filter list (e.g. *.npmjs.org,github.com).
VM_DNS_UPSTREAM8.8.8.8,1.1.1.1Upstream DNS resolvers.
VM_DEST_MODEnoneEgress IP/Port filtering mode (none, allow, deny).
VM_DEST_RULES""Destination CIDR rules (e.g. 169.254.169.254/32,10.0.0.0/8:443/tcp).
VM_BW_ENABLEDfalseEnable TC network bandwidth throttling.
VM_BW_RATE_KBIT10240TC bandwidth limit in kbit/s (10240 = 10 Mbit/s).
VM_BW_BURST_KBIT1024TC burst allowance in kbit.

Observability

Agent Sandbox includes production-grade observability out of the box:

  • Prometheus Metrics (GET /metrics): Tracks active_vm_count, vm_creation_time, exec_sessions_active, exec_session_duration_seconds, exec_message_duration_seconds, vsock_connection_time, and egress policies.
  • Liveness & Readiness Probes:
    • GET /health — Verifies process uptime.
    • GET /ready — Evaluates node readiness and host memory headroom.

Testing & Benchmarks

bash
# Run unit & integration test suites (Vitest)
npm test

# Run Firecracker microVM end-to-end integration test (requires KVM + root)
sudo npm run test:e2e

# Run test suite with coverage report
npm run test:coverage

# Run microsecond benchmark harness
sudo npm run bench

# Run specific benchmark suite (e.g. lifecycle with 20 iterations)
sudo npm run bench -- -s vm -i 20

التثبيت

TypingMind
{
  "mcpServers": {
    "agent-sandbox": {
      "command": "npm",
      "args": [
        "run",
        "mcp"
      ]
    }
  }
}

استخدم MCP الخاص بـ Agent Sandbox مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Agent Sandbox، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Agent Sandbox كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Agent Sandbox.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "agent-sandbox": {
      "command": "npx",
      "args": [
        "-y",
        "controller"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Agent Sandbox، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Agent Sandbox.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Agent Sandbox لمساعدتي في هذه المهمة؟
Agent Sandbox
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Agent Sandbox.

الأسئلة الشائعة

ما استخدامات خادم MCP Agent Sandbox؟

Agent Sandbox هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Agent Sandbox مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Agent Sandbox مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Agent Sandbox مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Agent Sandbox، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Agent Sandbox بـ TypingMind؟

يعمل Agent Sandbox عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Agent Sandbox في TypingMind؟

يتيح Agent Sandbox إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Agent Sandbox؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Agent Sandbox يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇