From 6724a629cb54e47ef511d23805c67e9ab5542f40 Mon Sep 17 00:00:00 2001 From: devcrocod Date: Tue, 11 Nov 2025 21:11:58 +0100 Subject: [PATCH] Raise the version of the supported specification --- .../io/modelcontextprotocol/kotlin/sdk/types/common.kt | 3 ++- .../io/modelcontextprotocol/kotlin/sdk/OldSchemaTypesTest.kt | 4 ++-- .../modelcontextprotocol/kotlin/sdk/types/CommonTypeTest.kt | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types/common.kt b/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types/common.kt index f539c419..10668439 100644 --- a/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types/common.kt +++ b/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types/common.kt @@ -8,10 +8,11 @@ import kotlinx.serialization.json.JsonObject // Protocol Version Constants // ============================================================================ -public const val LATEST_PROTOCOL_VERSION: String = "2025-03-26" +public const val LATEST_PROTOCOL_VERSION: String = "2025-06-18" public val SUPPORTED_PROTOCOL_VERSIONS: List = listOf( LATEST_PROTOCOL_VERSION, + "2025-03-26", "2024-11-05", ) diff --git a/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/OldSchemaTypesTest.kt b/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/OldSchemaTypesTest.kt index b3a4d5b1..f8ad0bef 100644 --- a/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/OldSchemaTypesTest.kt +++ b/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/OldSchemaTypesTest.kt @@ -16,7 +16,7 @@ class OldSchemaTypesTest { @Test fun `should have correct latest protocol version`() { assertNotEquals("", LATEST_PROTOCOL_VERSION) - assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION) + assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION) } @Test @@ -24,7 +24,7 @@ class OldSchemaTypesTest { assertIs>(SUPPORTED_PROTOCOL_VERSIONS) assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION)) assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05")) - assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size) + assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size) } @Test diff --git a/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/types/CommonTypeTest.kt b/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/types/CommonTypeTest.kt index 6247a495..679d14ae 100644 --- a/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/types/CommonTypeTest.kt +++ b/kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/types/CommonTypeTest.kt @@ -13,15 +13,16 @@ class CommonTypeTest { @Test fun `should have correct latest protocol version`() { assertNotEquals("", LATEST_PROTOCOL_VERSION) - assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION) + assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION) } @Test fun `should have correct supported protocol versions`() { assertIs>(SUPPORTED_PROTOCOL_VERSIONS) assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION)) + assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2025-03-26")) assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05")) - assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size) + assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size) } @Test