update mcp kotlin-sdk version to 0.4.0 and update quickstart server kotlin doc (#220)
This commit is contained in:
parent
d773943884
commit
fb63fef707
2 changed files with 3 additions and 3 deletions
|
|
@ -1015,7 +1015,7 @@ After creating the project, add the following dependencies:
|
||||||
|
|
||||||
<CodeGroup>
|
<CodeGroup>
|
||||||
```kotlin build.gradle.kts
|
```kotlin build.gradle.kts
|
||||||
val mcpVersion = "0.3.0"
|
val mcpVersion = "0.4.0"
|
||||||
val slf4jVersion = "2.0.9"
|
val slf4jVersion = "2.0.9"
|
||||||
val anthropicVersion = "0.8.0"
|
val anthropicVersion = "0.8.0"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1090,7 +1090,7 @@ Alternatively, you can create a Kotlin application using the [IntelliJ IDEA proj
|
||||||
After creating the project, add the following dependencies:
|
After creating the project, add the following dependencies:
|
||||||
<CodeGroup>
|
<CodeGroup>
|
||||||
```kotlin build.gradle.kts
|
```kotlin build.gradle.kts
|
||||||
val mcpVersion = "0.3.0"
|
val mcpVersion = "0.4.0"
|
||||||
val slf4jVersion = "2.0.9"
|
val slf4jVersion = "2.0.9"
|
||||||
val ktorVersion = "3.1.1"
|
val ktorVersion = "3.1.1"
|
||||||
|
|
||||||
|
|
@ -1164,7 +1164,7 @@ fun `run mcp server`() {
|
||||||
runBlocking {
|
runBlocking {
|
||||||
server.connect(transport)
|
server.connect(transport)
|
||||||
val done = Job()
|
val done = Job()
|
||||||
server.onCloseCallback = {
|
server.onClose {
|
||||||
done.complete()
|
done.complete()
|
||||||
}
|
}
|
||||||
done.join()
|
done.join()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue