JsonRpcResponse

org.llm4s.mcp.JsonRpcResponse
See theJsonRpcResponse companion object
case class JsonRpcResponse(jsonrpc: String, id: String, result: Option[Value], error: Option[JsonRpcError])

JSON-RPC 2.0 response structure returned by MCP servers. Contains either a result or error, never both.

Value parameters

error

Optional error information when failed

id

Identifier matching the original request

jsonrpc

Protocol version, always "2.0"

result

Optional result data when successful

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product