Sandboxing WASM
Tool MCP berjalan di lingkungan WebAssembly yang terisolasi untuk keamanan.
MCP (Model Context Protocol) adalah standar untuk menghubungkan model AI ke tool dan sumber data eksternal. Greentic mengimplementasikan MCP untuk:
Sandboxing WASM
Tool MCP berjalan di lingkungan WebAssembly yang terisolasi untuk keamanan.
Penemuan Tool
Pendaftaran tool otomatis dan iklan kapabilitas.
Keamanan Tipe
Antarmuka WIT memastikan pemanggilan tool yang type-safe.
Observabilitas
Tracing dan logging bawaan untuk eksekusi tool.
LLM (with tool use) │ ▼ Tool Call Request┌─────────────────────────────────┐│ greentic-mcp ││ (MCP Executor / WASI Bridge) │└─────────────────────────────────┘ │ ▼┌─────────────────────────────────┐│ WASM Tool Component ││ (Sandboxed execution) │└─────────────────────────────────┘ │ ▼ Tool ResultBack to LLMname: database_querydescription: Query the customer databaseparameters: - name: query type: string description: SQL query to execute required: true - name: limit type: integer description: Maximum rows to return default: 10returns: type: array items: type: object- id: query_orders type: mcp-tool config: tool: "database_query" parameters: query: "SELECT * FROM orders WHERE customer_id = '{{customer_id}}'" limit: 5 output: orders_result next: process_orders- id: agent_step type: llm config: model: "gpt-4" system_prompt: "You are a helpful assistant with database access." tools: - database_query - send_email - create_ticket tool_choice: "auto" next: handle_responseGreentic menyediakan beberapa tool MCP bawaan:
| Tool | Deskripsi |
|---|---|
http_request | Membuat request HTTP |
database_query | Menjalankan query database |
file_read | Membaca file (sandboxed) |
file_write | Menulis file (sandboxed) |
send_email | Mengirim email |
create_ticket | Membuat support ticket |
Semua tool MCP berjalan di sandbox WASM:
Tool mendeklarasikan kapabilitas yang dibutuhkan:
capabilities: - network:outbound # Can make outbound requests - filesystem:read # Can read files in sandbox