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.
Enums§
- Prompt
Source - How a string payload (prompt / system context) is supplied.
- Script
Source - How the Lua script source for
run()is supplied. - Secret
KeySource - How the Ed25519 mesh identity secret key is supplied.