Fix kotlin-mcp-server example and update samples (#345)
- updated the sdk version in all examples - fixed `kotlin-mcp-server` example (#331) ## Motivation and Context Removed the WASM example, as it duplicates the JVM example and only adds unnecessary complexity ## How Has This Been Tested? Locally ## Breaking Changes No ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [x] I have added or updated documentation as needed
This commit is contained in:
parent
cae9130e37
commit
458a49a5fb
2 changed files with 115 additions and 144 deletions
|
|
@ -1,10 +1,10 @@
|
|||
[versions]
|
||||
collections-immutable = "0.4.0"
|
||||
coroutines = "1.10.2"
|
||||
kotlin = "2.2.20"
|
||||
ktor = "3.3.0"
|
||||
kotlin = "2.2.21"
|
||||
ktor = "3.2.3"
|
||||
logging = "7.0.13"
|
||||
mcp-kotlin = "0.7.3"
|
||||
mcp-kotlin = "0.7.4"
|
||||
shadow = "9.2.2"
|
||||
slf4j = "2.0.17"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import io.ktor.http.ContentType
|
|||
import io.ktor.http.contentType
|
||||
import io.ktor.http.headers
|
||||
import io.ktor.serialization.kotlinx.json.json
|
||||
import io.ktor.utils.io.core.Input
|
||||
import io.ktor.utils.io.streams.asInput
|
||||
import io.modelcontextprotocol.kotlin.sdk.CallToolResult
|
||||
import io.modelcontextprotocol.kotlin.sdk.Implementation
|
||||
|
|
@ -19,7 +18,6 @@ import io.modelcontextprotocol.kotlin.sdk.server.ServerOptions
|
|||
import io.modelcontextprotocol.kotlin.sdk.server.StdioServerTransport
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import kotlinx.io.Sink
|
||||
import kotlinx.io.asSink
|
||||
import kotlinx.io.buffered
|
||||
import kotlinx.serialization.json.Json
|
||||
|
|
|
|||
Loading…
Reference in a new issue