toggle menu
MCP Kotlin SDK
1.0-SNAPSHOT
jvm
switch theme
search in API
MCP Kotlin SDK
/
org.jetbrains.kotlinx.mcp
/
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.