Enable Explicit Api (#21)

This commit is contained in:
Alexander Sysoev 2024-12-16 20:59:53 +01:00 • committed by GitHub
commit 852a4a3d5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,13 +11,13 @@ import io.ktor.util.AttributeKey
import io.ktor.util.Attributes
import kotlinx.coroutines.CompletableDeferred
import org.jetbrains.kotlinx.mcp.Implementation
import org.jetbrains.kotlinx.mcp.LIB_VERSION
import org.jetbrains.kotlinx.mcp.ServerCapabilities
import org.jetbrains.kotlinx.mcp.server.SESSION_ID_PARAM
import org.jetbrains.kotlinx.mcp.server.SSEServerTransport
import org.jetbrains.kotlinx.mcp.server.Server
import org.jetbrains.kotlinx.mcp.server.ServerOptions
import org.jetbrains.kotlinx.mcp.shared.IMPLEMENTATION_NAME
import shared.LIB_VERSION
typealias IncomingHandler = suspend RoutingContext.(forward: suspend () -> Unit) -> Unit