JsonRpcRequest

org.llm4s.mcp.JsonRpcRequest
See theJsonRpcRequest companion object
case class JsonRpcRequest(jsonrpc: String, id: String, method: String, params: Option[Value])

JSON-RPC 2.0 request structure for MCP protocol communication. Used to send requests to MCP servers.

Value parameters

id

Unique identifier for this request

jsonrpc

Protocol version, always "2.0"

method

The method name to invoke on the server

params

Optional parameters for the method

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