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
/
PingRequest
Ping
Request
@
Serializable
data
class
PingRequest
(
val
params
:
BaseRequestParams
?
=
null
)
:
ClientRequest
,
ServerRequest
(
source
)
Members
Members & Extensions
Constructors
Ping
Request
Link copied to clipboard
constructor
(
params
:
BaseRequestParams
?
=
null
)
Properties
meta
Link copied to clipboard
val
meta
:
RequestMeta
?
method
Link copied to clipboard
@
EncodeDefault
open
override
val
method
:
Method
params
Link copied to clipboard
open
override
val
params
:
BaseRequestParams
?
Functions
to
JSON
Link copied to clipboard
fun
Request
.
toJSON
(
)
:
JSONRPCRequest
fun
Request
.
toJSON
(
)
:
JSONRPCRequest
Converts the request to a JSON-RPC request.