Increase deprecation levels (#393)

This commit is contained in:
Pavel Gorgulov 2025-11-12 06:15:34 +01:00 • committed by GitHub
commit 2996ce45ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 12 deletions

View file

@ -60,12 +60,6 @@ public fun Routing.mcp(block: ServerSSESession.() -> Server) {
}
}
@Suppress("FunctionName")
@Deprecated("Use mcp() instead", ReplaceWith("mcp(block)"), DeprecationLevel.ERROR)
public fun Application.MCP(block: ServerSSESession.() -> Server) {
mcp(block)
}
@KtorDsl
public fun Application.mcp(block: ServerSSESession.() -> Server) {
install(SSE)

View file

@ -21,7 +21,7 @@ import kotlin.uuid.Uuid
internal const val SESSION_ID_PARAM = "sessionId"
@Deprecated("Use SseServerTransport instead", ReplaceWith("SseServerTransport"), DeprecationLevel.WARNING)
@Deprecated("Use SseServerTransport instead", ReplaceWith("SseServerTransport"), DeprecationLevel.ERROR)
public typealias SSEServerTransport = SseServerTransport
/**