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
Auto-marshalled lens for a tool argument. You will need Kotlin reflection on the classpath for this to work.
Auto-marshalled lens for a tool output. You will need Kotlin reflection on the classpath for this to work.
inline fun <T : Any> Body.Companion.auto(description: String?, contentNegotiation: ContentNegotiation, contentType: ContentType): BiDiBodyLensSpec<T>
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, contentType: ContentType): 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, contentType: ContentType): BiDiBodyLensSpec<MoshiNode>
Link copied to clipboard
Link copied to clipboard