Make McpJson public to allow flexible protocol development (#103)

This commit is contained in:
Theeraphol Wattanavekin 2025-05-13 14:54:57 +08:00 • committed by GitHub
commit 5fa378c49d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,8 +25,7 @@ internal const val IMPLEMENTATION_NAME = "mcp-ktor"
public typealias ProgressCallback = (Progress) -> Unit
@OptIn(ExperimentalSerializationApi::class)
@PublishedApi
internal val McpJson: Json by lazy {
public val McpJson: Json by lazy {
Json {
ignoreUnknownKeys = true
encodeDefaults = true