WASM Sandboxing
MCP tools run in isolated WebAssembly environments for security.
MCP (Model Context Protocol) is a standard for connecting AI models to external tools and data sources. Greentic implements MCP for:
WASM Sandboxing
MCP tools run in isolated WebAssembly environments for security.
Tool Discovery
Automatic tool registration and capability advertisement.
Type Safety
WIT interfaces ensure type-safe tool invocations.
Observability
Built-in tracing and logging for tool executions.
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 provides several built-in MCP tools:
| Tool | Description |
|---|---|
http_request | Make HTTP requests |
database_query | Query databases |
file_read | Read files (sandboxed) |
file_write | Write files (sandboxed) |
send_email | Send emails |
create_ticket | Create support tickets |
All MCP tools run in WASM sandboxes:
Tools declare required capabilities:
capabilities: - network:outbound # Can make outbound requests - filesystem:read # Can read files in sandbox