Skip to main content

Module mcp

Module mcp 

Source
Expand description

water mcp: serves an MCP session that drives the app headless.

The CLI process fronts the generated Hydrolysis MCP binary for the whole session rather than execing it: initialize and tools/list must answer inside the client’s startup timeout even when the first Hydrolysis build is still compiling, so the front serves those from the static contract in waterui-mcp-protocol and forwards tools/call to the child once it is up.

Modules§

preview
The preview tool: renders a #[preview] function or WaterUI expression and returns the PNG straight to the model.

Structs§

ChildProxy
The water mcp front: owns the child lifecycle and forwards tool calls.
McpSessionRequest
One water mcp session.

Functions§

serve_mcp
Serves an MCP session on stdio until the client disconnects.