MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / write_json_rpc_response

Function write_json_rpc_response

src/daemon.rs:2092–2102  ·  view source on GitHub ↗
(
    transport: &mut UnixStreamTransport,
    response: &crate::mcp::JsonRpcResponse,
)

Source from the content-addressed store, hash-verified

2090
2091#[cfg(unix)]
2092async fn write_json_rpc_response(
2093 transport: &mut UnixStreamTransport,
2094 response: &crate::mcp::JsonRpcResponse,
2095) -> Result<()> {
2096 transport
2097 .write_line(&serde_json::to_string(response)?)
2098 .await?;
2099 transport.write_line("\n").await?;
2100 transport.flush().await?;
2101 Ok(())
2102}
2103
2104#[cfg(unix)]
2105async fn serve_projectless_client(

Callers 2

write_project_open_errorFunction · 0.85
serve_projectless_clientFunction · 0.85

Calls 2

write_lineMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected