Expand description
Host — the thin Rust shell that wires up Lua VM, Mesh, HTTP, and MCP.
§Responsibilities
- Spawn an mlua-isle
AsyncIsle(dedicated Lua VM thread with coroutine support) - Optionally connect to agent-mesh relay
- Initialize the MCP manager for stdio-based MCP server connections
- Inject all Lua stdlib bridges (
mesh.*,http.*,sh.*,tool.*,log.*,mcp.*) - Execute the user-provided Lua script via
coroutine_eval(async-aware) - Graceful shutdown (Isle + MCP servers + mesh)
Structs§
- Block
Config - Host
Context - Shared context passed into Lua bridge functions.