ConfigurableMcpJson
abstract class ConfigurableMcpJson(customJsonFactory: JsonAdapter.Factory = JsonAdapter.Factory { _, _, _ -> null }, customMappings: AutoMappingConfiguration<Moshi.Builder>.() -> AutoMappingConfiguration<Moshi.Builder> = { this }) : ConfigurableMoshi
Builder for MCP JSON marshalling. You can pass your own JsonAdapter.Factory and configuration block to this class.
Inheritors
Constructors
Link copied to clipboard
constructor(customJsonFactory: JsonAdapter.Factory = JsonAdapter.Factory { _, _, _ -> null }, customMappings: AutoMappingConfiguration<Moshi.Builder>.() -> AutoMappingConfiguration<Moshi.Builder> = { this })
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> Body.Companion.auto(description: String?, contentNegotiation: ContentNegotiation, contentType: ContentType): BiDiBodyLensSpec<T>
Auto-marshalled lens for a tool argument. You will need Kotlin reflection on the classpath for this to work.
Link copied to clipboard
inline fun <T : Any> autoBody(description: String?, contentNegotiation: ContentNegotiation, contentType: ContentType): BiDiBodyLensSpec<T>
Link copied to clipboard
open fun body(description: String?, contentNegotiation: ContentNegotiation): BiDiBodyLensSpec<MoshiNode>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun Body.Companion.json(description: String?, contentNegotiation: ContentNegotiation): BiDiBodyLensSpec<MoshiNode>
Link copied to clipboard
Link copied to clipboard