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
/
Request
Request
@
Serializable
(
with
=
RequestPolymorphicSerializer::class
)
sealed
interface
Request
(
source
)
Represents a request in the protocol.
Inheritors
CustomRequest
ClientRequest
ServerRequest
PaginatedRequest
Members
Members & Extensions
Properties
method
Link copied to clipboard
abstract
val
method
:
Method
Functions
to
JSON
Link copied to clipboard
fun
Request
.
toJSON
(
)
:
JSONRPCRequest
Converts the request to a JSON-RPC request.