From fb63fef707c402e6680c59883bb77910816ee1a2 Mon Sep 17 00:00:00 2001 From: Pavel Gorgulov Date: Wed, 26 Mar 2025 17:16:07 +0100 Subject: [PATCH] update mcp kotlin-sdk version to 0.4.0 and update quickstart server kotlin doc (#220) --- quickstart/client.mdx | 2 +- quickstart/server.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/quickstart/client.mdx b/quickstart/client.mdx index d8e87b4..ae2a001 100644 --- a/quickstart/client.mdx +++ b/quickstart/client.mdx @@ -1015,7 +1015,7 @@ After creating the project, add the following dependencies: ```kotlin build.gradle.kts -val mcpVersion = "0.3.0" +val mcpVersion = "0.4.0" val slf4jVersion = "2.0.9" val anthropicVersion = "0.8.0" diff --git a/quickstart/server.mdx b/quickstart/server.mdx index adb526e..948ebe5 100644 --- a/quickstart/server.mdx +++ b/quickstart/server.mdx @@ -1090,7 +1090,7 @@ Alternatively, you can create a Kotlin application using the [IntelliJ IDEA proj After creating the project, add the following dependencies: ```kotlin build.gradle.kts -val mcpVersion = "0.3.0" +val mcpVersion = "0.4.0" val slf4jVersion = "2.0.9" val ktorVersion = "3.1.1" @@ -1164,7 +1164,7 @@ fun `run mcp server`() { runBlocking { server.connect(transport) val done = Job() - server.onCloseCallback = { + server.onClose { done.complete() } done.join()