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
/
CustomRequest
Custom
Request
@
Serializable
open
class
CustomRequest
(
val
method
:
Method
,
val
params
:
BaseRequestParams
?
)
:
Request
(
source
)
A custom request with a specified method.
Members
Members & Extensions
Constructors
Custom
Request
Link copied to clipboard
constructor
(
method
:
Method
,
params
:
BaseRequestParams
?
)
Properties
method
Link copied to clipboard
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.