MCP Kotlin SDK
Toggle table of contents
0.8.1
common
Target filter
common
Switch theme
Search in API
Skip to content
MCP Kotlin SDK
kotlin-sdk-core
/
io.modelcontextprotocol.kotlin.sdk.types
/
ServerRequest
Server
Request
@
Serializable
sealed
interface
ServerRequest
:
Request
(
source
)
Represents a request sent by the server.
Inheritors
PingRequest
ElicitRequest
ListRootsRequest
CreateMessageRequest
Members
Members & Extensions
Properties
method
Link copied to clipboard
abstract
val
method
:
Method
params
Link copied to clipboard
abstract
val
params
:
RequestParams
?
Functions
to
JSON
Link copied to clipboard
fun
Request
.
toJSON
(
)
:
JSONRPCRequest
fun
Request
.
toJSON
(
)
:
JSONRPCRequest
Converts the request to a JSON-RPC request.