Skip to content

Commit 9dec503

Browse files
authored
Merge pull request #25 from leehack/version_bump
Support protocol version bump
2 parents b1f9804 + f5e44f2 commit 9dec503

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.0
2+
3+
- Protocol version 2025-03-26
4+
15
## 0.4.3
26

37
- Fix SSE behavior on StreamableHTTP

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ Ensure you have the correct Dart SDK version installed. See <https://dart.dev/ge
2525
- Sampling
2626
- Roots
2727

28+
## Model Context Protocol Version
29+
30+
The current version of the protocol is `2025-03-26`. This library is designed to be compatible with this version, and any future updates will be made to ensure continued compatibility.
31+
32+
It's also backward compatible with the previous version `2024-11-05` and `2024-10-07`.
33+
2834
## Getting started
2935

3036
Below code is the simplest way to start the MCP server.

lib/src/types.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import 'dart:convert';
22

33
/// The latest version of the Model Context Protocol supported.
4-
const latestProtocolVersion = "2024-11-05";
4+
const latestProtocolVersion = "2025-03-26";
55

66
/// List of supported Model Context Protocol versions.
7-
const supportedProtocolVersions = [latestProtocolVersion, "2024-10-07"];
7+
const supportedProtocolVersions = [
8+
latestProtocolVersion,
9+
"2024-11-05",
10+
"2024-10-07"
11+
];
812

913
/// JSON-RPC protocol version string.
1014
const jsonRpcVersion = "2.0";

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mcp_dart
22
description: Dart Implementation of Model Context Protocol (MCP) SDK.
3-
version: 0.4.3
3+
version: 0.5.0
44
repository: https://github.com/leehack/mcp_dart
55

66
environment:

0 commit comments

Comments
 (0)