Didier Villevalois
04/04/2026, 2:08 PM[type, "null"] for nullable primitive values. But then Koog's McpToolDefinitionParser crashes on the array with Element class kotlinx.serialization.json.JsonArray is not a JsonPrimitive (full stack-trace in thread). Is it a known problem or a misuse of Kotlinx-schema on my part?
2. Koog 0.7.3 uses the MCP SDK version 0.8.1. But the MCP SDK at version 0.11.0. What's the versioning policy on Koog's side w.r.t. the MCP SDK? Does Koog uses the lowest compatible version, meaning that might be safe for me to bump to 0.11.0? (I need defs support in ToolSchema...)Didier Villevalois
04/04/2026, 2:11 PMjava.lang.IllegalArgumentException: Element class kotlinx.serialization.json.JsonArray is not a JsonPrimitive
at kotlinx.serialization.json.JsonElementKt.error(JsonElement.kt:320)
at kotlinx.serialization.json.JsonElementKt.getJsonPrimitive(JsonElement.kt:224)
at ai.koog.agents.mcp.DefaultMcpToolDescriptorParser.parseParameterType(McpToolDefinitionParser.kt:69)
at ai.koog.agents.mcp.DefaultMcpToolDescriptorParser.parseParameterType$default(McpToolDefinitionParser.kt:60)
at ai.koog.agents.mcp.DefaultMcpToolDescriptorParser.parseParameters(McpToolDefinitionParser.kt:205)
at ai.koog.agents.mcp.DefaultMcpToolDescriptorParser.parse(McpToolDefinitionParser.kt:46)
The input tool schema being:
ToolSchema(properties={"query":{"type":"string"},"maxResults":{"type":["integer","null"]},"region":{"$ref":"#/$defs/io.github.ptitjes.konvo.mcp.web.DuckDuckGoEngine.Region"},"timeFrame":{"$ref":"#/$defs/io.github.ptitjes.konvo.mcp.web.DuckDuckGoEngine.TimeFrame"}}, required=[query])Konstantin
04/04/2026, 2:57 PMKonstantin
04/04/2026, 3:10 PM