tests/testthat/_snaps/utils.md

jsonrpc_response works

Code
  .res <- jsonrpc_response("789", result = "success", error = list(code = -32603,
    message = "error"))
Condition
  Warning in `jsonrpc_response()`:
  Either `result` or `error` must be provided, but not both.
Code
  .res <- jsonrpc_response("000")
Condition
  Warning in `jsonrpc_response()`:
  Either `result` or `error` must be provided, but not both.


Try the mcptools package in your browser

Any scripts or data that you put into this service are public.

mcptools documentation built on Sept. 9, 2025, 5:45 p.m.