Expand description
Thin JSON-RPC client to talk to the running Scrybe GUI.
The implementation now lives in scrybe_rpc::client so the CLI and the
MCP server dial the live app through one shared dialer (two divergent
clients is exactly the split scrybe-rpc exists to prevent). This module
re-exports it to keep the existing rpc_client::* call sites unchanged.
Functions§
- is_live
trueif a Scrybe GUI is reachable on the default socket right now. Cheap liveness probe used to choose the live-app path over headless.- send
- Send a single request to the default socket path. On success returns the
reply’s
resultvalue; an in-band application error isClientError::Remote. - send_to
- Send a single request to an explicit socket path. Tests use this.
- socket_
path - Resolved socket path the client uses by default (used for diagnostics).
- try_
connect - Connect to the Scrybe socket at the default location. “Not running” is the
typed
ClientError::SocketUnavailable— checkClientError::is_not_running. - try_
connect_ at - Connect at an explicit socket path. Tests use this to avoid the
SCRYBE_SOCKenv-var race when running in parallel.