Expand description
The interactive headless host: MCP drives the same scene without a window.
The host waits for commands rather than pacing itself. Only the frame-stepping tool advances simulation time, so a client can reproduce a complete sequence of input, rendering and recording without sleeping between commands.
The scene itself is the one crate::interactive builds: the host adds the
exit request and serves MCP over it, so a client drives exactly the scene a
test drives in process.
Re-exportsยง
use schemars::JsonSchema;๐use schemars::JsonSchema;๐use serde::Deserialize;๐use serde::Deserialize;๐use unlit_ecs::mcp::serde_json;๐use unlit_ecs::mcp::serde_json::Value;๐use unlit_ecs::mcp::serde_json::json;๐use unlit_ecs::mcp::CommandSender;๐use unlit_ecs::mcp::McpServer;๐use unlit_ecs::mcp::ToolResult;๐use unlit_ecs::mcp::ToolRouter;๐use unlit_ecs::mcp::ToolSource;๐use unlit_ecs::mcp::WorldArg;๐use unlit_ecs::mcp::command;๐use unlit_ecs::mcp::tool;๐use unlit_ecs::World;๐use unlit_ecs::bundle;๐use unlit3d::winit::builtin::ExitRequest;๐use unlit3dx::mcp::pump_mcp;๐use unlit3dx::mcp::serve_mcp;๐use crate::interactive::Interactive;๐use crate::interactive::InteractiveConfig;๐use crate::interactive::scene_status;๐use unlit3dx::prelude::*;๐
Structsยง
- Step
Frames ๐
Functionsยง
- register ๐
- run
- Run the interactive headless host until MCP asks it to exit.
- scene_
status_ ๐tool - status ๐
- Report the scene as the last step left it, plus the ids a client reads its frame and its recording through.
- step_
frames ๐