Expand description
Minimal hand-rolled MCP JSON-RPC server over stdio.
This is the wave-3 skeleton. A future task may replace this with a more
capable framework (e.g. rmcp). The protocol surface is small:
newline-delimited JSON-RPC 2.0 over stdin/stdout.
Structs§
- Registered
Tool - Server
State - State carried by the server. Tools reach into this for the resolved browser endpoint and any cached engine clients.
- Tool
Registry
Functions§
- run
- Run the server using the real stdin/stdout.
- run_
with_ streams - Run the server with injected I/O streams (used by tests).
Type Aliases§
- Bidi
Cache - Persistent BiDi session, opened lazily on first use. Reused across all tool calls because Firefox limits concurrent BiDi sessions per browser to one.
- Tool
Handler - Handler signature: takes
(state, params)and returns a tool result.