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. On success returns the reply’s result value; an in-band application error is ClientError::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 — check ClientError::is_not_running.
try_connect_at
Connect at an explicit socket path. Tests use this to avoid the SCRYBE_SOCK env-var race when running in parallel.