Skip to content

Commit 6724a62

Browse files
devcrocodkpavlov
authored andcommitted
Raise the version of the supported specification
1 parent 2996ce4 commit 6724a62

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types/common.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import kotlinx.serialization.json.JsonObject
88
// Protocol Version Constants
99
// ============================================================================
1010

11-
public const val LATEST_PROTOCOL_VERSION: String = "2025-03-26"
11+
public const val LATEST_PROTOCOL_VERSION: String = "2025-06-18"
1212

1313
public val SUPPORTED_PROTOCOL_VERSIONS: List<String> = listOf(
1414
LATEST_PROTOCOL_VERSION,
15+
"2025-03-26",
1516
"2024-11-05",
1617
)
1718

kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/OldSchemaTypesTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class OldSchemaTypesTest {
1616
@Test
1717
fun `should have correct latest protocol version`() {
1818
assertNotEquals("", LATEST_PROTOCOL_VERSION)
19-
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
19+
assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION)
2020
}
2121

2222
@Test
2323
fun `should have correct supported protocol versions`() {
2424
assertIs<List<String>>(SUPPORTED_PROTOCOL_VERSIONS)
2525
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
2626
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
27-
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
27+
assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size)
2828
}
2929

3030
@Test

kotlin-sdk-core/src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/types/CommonTypeTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ class CommonTypeTest {
1313
@Test
1414
fun `should have correct latest protocol version`() {
1515
assertNotEquals("", LATEST_PROTOCOL_VERSION)
16-
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
16+
assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION)
1717
}
1818

1919
@Test
2020
fun `should have correct supported protocol versions`() {
2121
assertIs<List<String>>(SUPPORTED_PROTOCOL_VERSIONS)
2222
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
23+
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2025-03-26"))
2324
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
24-
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
25+
assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size)
2526
}
2627

2728
@Test

0 commit comments

Comments
 (0)