/* Copyright 2025-2026 Eugene Petrenko (mcp@jonnyzzz.com); Copyright 2025-2026 JetBrains. Use of this source code is governed by the Apache 2.0 license. */
package com.jonnyzzz.mcpSteroid.mcp

import kotlinx.serialization.json.Json

/**
 * JSON configuration for MCP protocol serialization.
 */
val McpJson = Json {
    ignoreUnknownKeys = true
    encodeDefaults = true   // Encode defaults (required for jsonrpc version)
    explicitNulls = false   // Don't serialize explicit nulls (cleaner JSON)
    isLenient = true
    classDiscriminator = "type"
    prettyPrint = false     // Use compact JSON for wire protocol
}
