MCP Kotlin SDK
Toggle table of contents
0.7.0
common
Platform filter
common
Switch theme
Search in API
MCP Kotlin SDK
kotlin-sdk-core
/
io.modelcontextprotocol.kotlin.sdk
/
RequestId
Request
Id
@
Serializable
(
with
=
RequestIdSerializer::class
)
sealed
interface
RequestId
(
source
)
A uniquely identifying ID for a request in JSON-RPC.
Inheritors
StringId
NumberId
Members
Types
Number
Id
Link copied to clipboard
@
Serializable
data
class
NumberId
(
val
value
:
Long
)
:
RequestId
String
Id
Link copied to clipboard
@
Serializable
data
class
StringId
(
val
value
:
String
)
:
RequestId