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
previewtool: renders a#[preview]function orWaterUIexpression and returns the PNG straight to the model.
Structs§
- Child
Proxy - The
water mcpfront: owns the child lifecycle and forwards tool calls. - McpSession
Request - One
water mcpsession.
Functions§
- serve_
mcp - Serves an MCP session on stdio until the client disconnects.