Skip to content

Commit 97ec321

Browse files
committed
Bump protocol version to 2025-03-26 and remove outdated test file
1 parent cb79ea7 commit 97ec321

File tree

3 files changed

+5
-54
lines changed

3 files changed

+5
-54
lines changed

src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import kotlin.concurrent.atomics.ExperimentalAtomicApi
1818
import kotlin.concurrent.atomics.incrementAndFetch
1919
import kotlin.jvm.JvmInline
2020

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

2323
public val SUPPORTED_PROTOCOL_VERSIONS: Array<String> = arrayOf(
2424
LATEST_PROTOCOL_VERSION,
25-
"2024-10-07",
25+
"2024-11-05",
2626
)
2727

2828
public const val JSONRPC_VERSION: String = "2.0"
@@ -1250,7 +1250,7 @@ public class CallToolResult(
12501250
) : CallToolResultBase
12511251

12521252
/**
1253-
* [CallToolResult] extended with backwards compatibility to protocol version 2024-10-07.
1253+
* [CallToolResult] extended with backwards compatibility to protocol version 2024-11-05.
12541254
*/
12551255
@Serializable
12561256
public class CompatibilityCallToolResult(

src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/TypesTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class TypesTest {
1212
@Test
1313
fun `should have correct latest protocol version`() {
1414
assertNotEquals("", LATEST_PROTOCOL_VERSION)
15-
assertEquals("2024-11-05", LATEST_PROTOCOL_VERSION)
15+
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
1616
}
1717

1818
@Test
1919
fun `should have correct supported protocol versions`() {
2020
assertIs<Array<String>>(SUPPORTED_PROTOCOL_VERSIONS)
2121
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
22-
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-10-07"))
22+
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
2323
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
2424
}
2525

src/commonTest/kotlin/io/modelcontextprotocol/kotlin/sdk/client/TypesTest.kt

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)