Expand description
The MCP tools an audio world answers: recording the mix it fills.
Each tool routes its work to the world it names through command, exactly as the rendering tools do. The tools register themselves through ToolSource, so a server built from unlit_ecs carries them without depending on this crate.
Re-exportsΒ§
pub use bridge::pump_mcp;pub use bridge::serve_mcp;use unlit_ecs::mcp::serde_json;πuse unlit_ecs::mcp::serde_json::Value;πuse unlit_ecs::mcp::CommandSender;πuse unlit_ecs::mcp::EncodedAudio;πuse unlit_ecs::mcp::McpServer;πuse unlit_ecs::mcp::Output;π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::run;πuse unlit_ecs::mcp::tool;πuse unlit_ecs::Entity;πuse unlit_ecs::World;πuse unlit_ecs::bundle;πuse unlit3d::winit::builtin::ExitRequest;πuse crate::record::RecordingError;πuse crate::record::RecordingFormat;πuse crate::record::RecordingHandle;πuse crate::record::start_recording;π
ModulesΒ§
- bridge π
- The MCP stdio transport, wired straight into a world.
StructsΒ§
- Active
Recording π - The recording in progress on a world, kept as a component so it lives on that worldβs own thread.
- InProgress π
- What a recording in progress has captured.
- Read
Recording π - Arguments for finishing a recording in memory.
- Recorded π
- A finished recording, written to a file.
- Start
Recording π - Arguments for starting a recording.
- Started π
- A recording that has just started.
- Stop
Recording π - Arguments for finishing a recording.
EnumsΒ§
- Tool
Error π - Why a recording tool could not answer its request.
ConstantsΒ§
- DEFAULT_
RECORDING_ πSECONDS - How long a recording lasts when its caller names no limit.
FunctionsΒ§
- audio_
recording_ πstatus - Report what the recording in progress has captured.
- cancel π
- Stop the recording and throw its samples away.
- cancel_
audio_ πrecording - Discard the recording in progress.
- read π
- Stop the recording and answer with its sound in memory.
- read_
audio_ πrecording - Finish a recording and return its sound without touching the filesystem.
- register π
- Register every audio tool on
router. - request_
exit π - Ask the host to exit, unless it carries no request component.
- request_
host_ πexit - Ask a windowed or headless host to exit normally.
- start π
- Start a recording, unless one is already running.
- start_
audio_ πrecording - Start recording the mix of the audio world the arguments name.
- status π
- Report how far the recording in progress has come.
- stop π
- Stop the recording, write its samples and report the file.
- stop_
audio_ πrecording - Finish a recording and write its file.
- take π
- Take the recording in progress out of the world.