toggle menu
MCP Kotlin SDK
0.1.0
jvm
switch theme
search in API
MCP Kotlin SDK
/
io.modelcontextprotocol.kotlin.sdk
/
JSONRPCRequest
JSONRPCRequest
@
Serializable
data
class
JSONRPCRequest
(
val
id
:
RequestId
=
REQUEST_MESSAGE_ID.incrementAndGet()
,
val
method
:
String
,
val
params
:
JsonElement
?
=
null
,
val
jsonrpc
:
String
=
JSONRPC_VERSION
)
:
JSONRPCMessage
(
source
)
A request that expects a response.
Members
Constructors
JSONRPCRequest
Link copied to clipboard
constructor
(
id
:
RequestId
=
REQUEST_MESSAGE_ID.incrementAndGet()
,
method
:
String
,
params
:
JsonElement
?
=
null
,
jsonrpc
:
String
=
JSONRPC_VERSION
)
Properties
id
Link copied to clipboard
val
id
:
RequestId
jsonrpc
Link copied to clipboard
val
jsonrpc
:
String
method
Link copied to clipboard
val
method
:
String
params
Link copied to clipboard
val
params
:
JsonElement
?
=
null