Skip to content

Commit bac2169

Browse files
committed
1 parent f93d9f4 commit bac2169

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

news/http4k_mcp_has_landed/index.html

Lines changed: 7 additions & 2 deletions
Large diffs are not rendered by default.

news/http4k_mcp_has_landed/typesafe.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import org.http4k.mcp.model.Tool
44
import org.http4k.mcp.model.int
55
import org.http4k.mcp.model.localDate
66
import org.http4k.mcp.model.string
7+
import org.http4k.mcp.util.McpJson.auto
78

89
val cityArg = Tool.Arg.string().required("city", "City name")
910
val temperatureArg = Tool.Arg.int().required("temperature", "Temperature in Celsius")
1011
val dateArg = Tool.Arg.localDate().required("date", "Date in yyyy-MM-dd format")
12+
13+
data class Human(val name: String, val age: Int)
14+
15+
val complexArg = Tool.Arg.auto(Human("David", 21)).required("human dev")

0 commit comments

Comments
 (0)