File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/integration Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package io.modelcontextprotocol.kotlin.sdk.integration
22
33import io.ktor.client.HttpClient
44import io.ktor.client.plugins.sse.SSE
5+ import io.ktor.server.application.install
56import io.ktor.server.cio.CIOApplicationEngine
67import io.ktor.server.engine.EmbeddedServer
78import io.ktor.server.engine.embeddedServer
9+ import io.ktor.server.routing.routing
810import io.modelcontextprotocol.kotlin.sdk.Implementation
911import io.modelcontextprotocol.kotlin.sdk.ServerCapabilities
1012import io.modelcontextprotocol.kotlin.sdk.client.Client
@@ -52,7 +54,12 @@ class SseIntegrationTest {
5254 ServerOptions (capabilities = ServerCapabilities ()),
5355 )
5456
55- return embeddedServer(ServerCIO , host = URL , port = PORT ) { mcp { server } }.startSuspend(wait = false )
57+ return embeddedServer(ServerCIO , host = URL , port = PORT ) {
58+ install(io.ktor.server.sse.SSE )
59+ routing {
60+ mcp { server }
61+ }
62+ }.startSuspend(wait = false )
5663 }
5764
5865 companion object {
You can’t perform that action at this time.
0 commit comments