update mcp kotlin-sdk version to 0.4.0 and update quickstart server kotlin doc (#220)

This commit is contained in:
Pavel Gorgulov 2025-03-26 17:16:07 +01:00 • committed by GitHub
commit fb63fef707
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1015,7 +1015,7 @@ After creating the project, add the following dependencies:
<CodeGroup>
```kotlin build.gradle.kts
val mcpVersion = "0.3.0"
val mcpVersion = "0.4.0"
val slf4jVersion = "2.0.9"
val anthropicVersion = "0.8.0"

View file

@ -1090,7 +1090,7 @@ Alternatively, you can create a Kotlin application using the [IntelliJ IDEA proj
After creating the project, add the following dependencies:
<CodeGroup>
```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()