Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import kotlin.concurrent.atomics.ExperimentalAtomicApi
import kotlin.concurrent.atomics.incrementAndFetch
import kotlin.jvm.JvmInline

public const val LATEST_PROTOCOL_VERSION: String = "2024-11-05"
public const val LATEST_PROTOCOL_VERSION: String = "2025-03-26"

public val SUPPORTED_PROTOCOL_VERSIONS: Array<String> = arrayOf(
LATEST_PROTOCOL_VERSION,
"2024-10-07",
"2024-11-05",
)

public const val JSONRPC_VERSION: String = "2.0"
Expand Down Expand Up @@ -1250,7 +1250,7 @@ public class CallToolResult(
) : CallToolResultBase

/**
* [CallToolResult] extended with backwards compatibility to protocol version 2024-10-07.
* [CallToolResult] extended with backwards compatibility to protocol version 2024-11-05.
*/
@Serializable
public class CompatibilityCallToolResult(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class TypesTest {
@Test
fun `should have correct latest protocol version`() {
assertNotEquals("", LATEST_PROTOCOL_VERSION)
assertEquals("2024-11-05", LATEST_PROTOCOL_VERSION)
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
}

@Test
fun `should have correct supported protocol versions`() {
assertIs<Array<String>>(SUPPORTED_PROTOCOL_VERSIONS)
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-10-07"))
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
}

Expand Down

This file was deleted.

Loading