Skip to main content

serve

Function serve 

Source
pub fn serve(
    game: &dyn GameTools,
    project: Project,
    input: impl BufRead,
    output: impl Write,
) -> u8
Expand description

shuyi mcp-host: answers each request line of input on output with game’s tools on project, until input ends. Returns the exit code: 0, or 1 if a line couldn’t be read or written.