Skip to content

Commit fb63fef

Browse files
authored
update mcp kotlin-sdk version to 0.4.0 and update quickstart server kotlin doc (modelcontextprotocol#220)
1 parent d773943 commit fb63fef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

quickstart/client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ After creating the project, add the following dependencies:
10151015

10161016
<CodeGroup>
10171017
```kotlin build.gradle.kts
1018-
val mcpVersion = "0.3.0"
1018+
val mcpVersion = "0.4.0"
10191019
val slf4jVersion = "2.0.9"
10201020
val anthropicVersion = "0.8.0"
10211021

quickstart/server.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ Alternatively, you can create a Kotlin application using the [IntelliJ IDEA proj
10901090
After creating the project, add the following dependencies:
10911091
<CodeGroup>
10921092
```kotlin build.gradle.kts
1093-
val mcpVersion = "0.3.0"
1093+
val mcpVersion = "0.4.0"
10941094
val slf4jVersion = "2.0.9"
10951095
val ktorVersion = "3.1.1"
10961096

@@ -1164,7 +1164,7 @@ fun `run mcp server`() {
11641164
runBlocking {
11651165
server.connect(transport)
11661166
val done = Job()
1167-
server.onCloseCallback = {
1167+
server.onClose {
11681168
done.complete()
11691169
}
11701170
done.join()

0 commit comments

Comments
 (0)