Skip to main content

Module rpc_client

Module rpc_client 

Source
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
true if 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.
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
Try to connect to the Scrybe socket at the default location. Ok(Some(_)) = live server, Ok(None) = no server running, Err(_) = something else went wrong (e.g. permission denied).
try_connect_at
Try to connect at an explicit socket path. Tests use this to avoid the SCRYBE_SOCK env-var race when running in parallel.