Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
mcp_protocol.h
1#ifndef SOURCEMETA_CORE_MCP_PROTOCOL_H_
2#define SOURCEMETA_CORE_MCP_PROTOCOL_H_
3
4#ifndef SOURCEMETA_CORE_MCP_EXPORT
5#include <sourcemeta/core/mcp_export.h>
6#endif
7
8#include <sourcemeta/core/json.h>
9
10#include <cstdint> // std::uint8_t
11#include <optional> // std::optional, std::nullopt
12#include <utility> // std::to_underlying, std::unreachable
13
14namespace sourcemeta::core {
15
40
44
48
52
56
64
72 "notifications/initialized"};
73
81
87constexpr JSON::StringView MCP_METHOD_SERVER_DISCOVER{"server/discover"};
88
95 "subscriptions/listen"};
96
103 "notifications/subscriptions/acknowledged"};
104
113
122
130constexpr JSON::StringView MCP_METHOD_RESOURCES_LIST{"resources/list"};
131
139constexpr JSON::StringView MCP_METHOD_RESOURCES_READ{"resources/read"};
140
148 "resources/subscribe"};
149
157 "resources/unsubscribe"};
158
167 "resources/templates/list"};
168
177
186
195 "completion/complete"};
196
203constexpr JSON::StringView MCP_METHOD_LOGGING_SET_LEVEL{"logging/setLevel"};
204
213 "notifications/cancelled"};
214
223 "notifications/message"};
224
233 "notifications/progress"};
234
243 "notifications/prompts/list_changed"};
244
253 "notifications/resources/list_changed"};
254
263 "notifications/resources/updated"};
264
273 "notifications/tools/list_changed"};
274
288
302 "sampling/createMessage"};
303
311constexpr JSON::StringView MCP_METHOD_ELICITATION_CREATE{"elicitation/create"};
312
319 "notifications/elicitation/complete"};
320
333 "notifications/roots/list_changed"};
334
341 "notifications/tasks/status"};
342
349
356
363
370
387[[nodiscard]] constexpr auto
390 switch (version) {
399 }
400 // Clang settles that no other value arrives, so only GCC and MSVC
401 // need to be told that the end of this function is never reached
402#if !defined(__clang__)
403 std::unreachable();
404#endif
405}
406
424[[nodiscard]] constexpr auto
426 -> std::optional<MCPProtocolVersion> {
427 if (value == MCP_PROTOCOL_VERSION_2026_07_28) {
429 }
430 if (value == MCP_PROTOCOL_VERSION_2025_11_25) {
432 }
433 if (value == MCP_PROTOCOL_VERSION_2025_06_18) {
435 }
436 if (value == MCP_PROTOCOL_VERSION_2025_03_26) {
438 }
439 return std::nullopt;
440}
441
461[[nodiscard]] constexpr auto
463 const MCPProtocolVersion minimum) noexcept
464 -> bool {
465 return std::to_underlying(current) >= std::to_underlying(minimum);
466}
467
483[[nodiscard]] constexpr auto
484mcp_protocol_version_is_valid(const JSON::StringView value) noexcept -> bool {
485 return mcp_resolve_protocol_version(value).has_value();
486}
487
505[[nodiscard]] constexpr auto
507 -> bool {
508 return version != MCPProtocolVersion::V_2026_07_28;
509}
510
527[[nodiscard]] constexpr auto
528mcp_supports_ping(const MCPProtocolVersion version) noexcept -> bool {
529 return version != MCPProtocolVersion::V_2026_07_28;
530}
531
549[[nodiscard]] constexpr auto
550mcp_requires_request_meta(const MCPProtocolVersion version) noexcept -> bool {
551 return version == MCPProtocolVersion::V_2026_07_28;
552}
553
571[[nodiscard]] constexpr auto
572mcp_requires_result_type(const MCPProtocolVersion version) noexcept -> bool {
573 return version == MCPProtocolVersion::V_2026_07_28;
574}
575
593[[nodiscard]] constexpr auto
595 -> bool {
596 return version == MCPProtocolVersion::V_2026_07_28;
597}
598
616[[nodiscard]] constexpr auto
618 -> bool {
619 return version == MCPProtocolVersion::V_2026_07_28;
620}
621
639[[nodiscard]] constexpr auto
641 -> bool {
642 return version == MCPProtocolVersion::V_2026_07_28;
643}
644
662[[nodiscard]] constexpr auto
663mcp_supports_mrtr(const MCPProtocolVersion version) noexcept -> bool {
664 return version == MCPProtocolVersion::V_2026_07_28;
665}
666
684[[nodiscard]] constexpr auto
686 -> bool {
687 return version != MCPProtocolVersion::V_2026_07_28;
688}
689
707[[nodiscard]] constexpr auto
712
729[[nodiscard]] constexpr auto
735
752[[nodiscard]] constexpr auto
758
775[[nodiscard]] constexpr auto
781
799[[nodiscard]] constexpr auto mcp_supports_implementation_description(
800 const MCPProtocolVersion version) noexcept -> bool {
801 return mcp_protocol_version_at_least(version,
803}
804
822[[nodiscard]] constexpr auto mcp_supports_implementation_website_url(
823 const MCPProtocolVersion version) noexcept -> bool {
824 return mcp_protocol_version_at_least(version,
826}
827
844[[nodiscard]] constexpr auto
846 -> bool {
847 return version == MCPProtocolVersion::V_2025_03_26;
848}
849
866[[nodiscard]] constexpr auto
868 const JSON::StringView method) noexcept -> bool {
869 switch (version) {
872 return method == MCP_METHOD_COMPLETION_COMPLETE ||
873 method == MCP_METHOD_INITIALIZE ||
875 method == MCP_METHOD_PING || method == MCP_METHOD_PROMPTS_GET ||
876 method == MCP_METHOD_PROMPTS_LIST ||
877 method == MCP_METHOD_RESOURCES_LIST ||
878 method == MCP_METHOD_RESOURCES_READ ||
882 method == MCP_METHOD_TOOLS_CALL || method == MCP_METHOD_TOOLS_LIST;
884 return method == MCP_METHOD_COMPLETION_COMPLETE ||
885 method == MCP_METHOD_INITIALIZE ||
887 method == MCP_METHOD_PING || method == MCP_METHOD_PROMPTS_GET ||
888 method == MCP_METHOD_PROMPTS_LIST ||
889 method == MCP_METHOD_RESOURCES_LIST ||
890 method == MCP_METHOD_RESOURCES_READ ||
894 method == MCP_METHOD_TASKS_CANCEL ||
895 method == MCP_METHOD_TASKS_GET ||
896 method == MCP_METHOD_TASKS_LIST ||
897 method == MCP_METHOD_TASKS_RESULT ||
898 method == MCP_METHOD_TOOLS_CALL || method == MCP_METHOD_TOOLS_LIST;
900 return method == MCP_METHOD_COMPLETION_COMPLETE ||
901 method == MCP_METHOD_PROMPTS_GET ||
902 method == MCP_METHOD_PROMPTS_LIST ||
903 method == MCP_METHOD_RESOURCES_LIST ||
904 method == MCP_METHOD_RESOURCES_READ ||
906 method == MCP_METHOD_SERVER_DISCOVER ||
908 method == MCP_METHOD_TOOLS_CALL || method == MCP_METHOD_TOOLS_LIST;
909 }
910 // Clang settles that no other value arrives, so only GCC and MSVC
911 // need to be told that the end of this function is never reached
912#if !defined(__clang__)
913 std::unreachable();
914#endif
915}
916
934[[nodiscard]] constexpr auto
936 const JSON::StringView method) noexcept -> bool {
937 switch (version) {
939 return method == MCP_METHOD_PING || method == MCP_METHOD_ROOTS_LIST ||
942 return method == MCP_METHOD_ELICITATION_CREATE ||
943 method == MCP_METHOD_PING || method == MCP_METHOD_ROOTS_LIST ||
946 return method == MCP_METHOD_ELICITATION_CREATE ||
947 method == MCP_METHOD_PING || method == MCP_METHOD_ROOTS_LIST ||
949 method == MCP_METHOD_TASKS_CANCEL ||
950 method == MCP_METHOD_TASKS_GET ||
951 method == MCP_METHOD_TASKS_LIST ||
952 method == MCP_METHOD_TASKS_RESULT;
954 return false;
955 }
956 // Clang settles that no other value arrives, so only GCC and MSVC
957 // need to be told that the end of this function is never reached
958#if !defined(__clang__)
959 std::unreachable();
960#endif
961}
962
981[[nodiscard]] constexpr auto
983 const JSON::StringView method) noexcept -> bool {
984 switch (version) {
987 return method == MCP_METHOD_NOTIFICATIONS_CANCELLED ||
997 return method == MCP_METHOD_NOTIFICATIONS_CANCELLED ||
1009 return method == MCP_METHOD_NOTIFICATIONS_CANCELLED ||
1017 }
1018 // Clang settles that no other value arrives, so only GCC and MSVC
1019 // need to be told that the end of this function is never reached
1020#if !defined(__clang__)
1021 std::unreachable();
1022#endif
1023}
1024
1043[[nodiscard]] constexpr auto
1045 const JSON::StringView method) noexcept -> bool {
1046 switch (version) {
1050 return false;
1052 return method == MCP_METHOD_ELICITATION_CREATE ||
1053 method == MCP_METHOD_ROOTS_LIST ||
1055 }
1056 // Clang settles that no other value arrives, so only GCC and MSVC
1057 // need to be told that the end of this function is never reached
1058#if !defined(__clang__)
1059 std::unreachable();
1060#endif
1061}
1062
1081[[nodiscard]] constexpr auto
1083 const JSON::StringView method) noexcept -> bool {
1084 switch (version) {
1086 return method == MCP_METHOD_COMPLETION_COMPLETE ||
1087 method == MCP_METHOD_INITIALIZE ||
1088 method == MCP_METHOD_LOGGING_SET_LEVEL ||
1098 method == MCP_METHOD_PING || method == MCP_METHOD_PROMPTS_GET ||
1099 method == MCP_METHOD_PROMPTS_LIST ||
1100 method == MCP_METHOD_RESOURCES_LIST ||
1101 method == MCP_METHOD_RESOURCES_READ ||
1105 method == MCP_METHOD_ROOTS_LIST ||
1107 method == MCP_METHOD_TOOLS_CALL || method == MCP_METHOD_TOOLS_LIST;
1109 return method == MCP_METHOD_COMPLETION_COMPLETE ||
1111 method == MCP_METHOD_INITIALIZE ||
1112 method == MCP_METHOD_LOGGING_SET_LEVEL ||
1122 method == MCP_METHOD_PING || method == MCP_METHOD_PROMPTS_GET ||
1123 method == MCP_METHOD_PROMPTS_LIST ||
1124 method == MCP_METHOD_RESOURCES_LIST ||
1125 method == MCP_METHOD_RESOURCES_READ ||
1129 method == MCP_METHOD_ROOTS_LIST ||
1131 method == MCP_METHOD_TOOLS_CALL || method == MCP_METHOD_TOOLS_LIST;
1133 return method == MCP_METHOD_COMPLETION_COMPLETE ||
1135 method == MCP_METHOD_INITIALIZE ||
1136 method == MCP_METHOD_LOGGING_SET_LEVEL ||
1148 method == MCP_METHOD_PING || method == MCP_METHOD_PROMPTS_GET ||
1149 method == MCP_METHOD_PROMPTS_LIST ||
1150 method == MCP_METHOD_RESOURCES_LIST ||
1151 method == MCP_METHOD_RESOURCES_READ ||
1155 method == MCP_METHOD_ROOTS_LIST ||
1157 method == MCP_METHOD_TASKS_CANCEL ||
1158 method == MCP_METHOD_TASKS_GET ||
1159 method == MCP_METHOD_TASKS_LIST ||
1160 method == MCP_METHOD_TASKS_RESULT ||
1161 method == MCP_METHOD_TOOLS_CALL || method == MCP_METHOD_TOOLS_LIST;
1163 return method == MCP_METHOD_COMPLETION_COMPLETE ||
1173 method == MCP_METHOD_PROMPTS_GET ||
1174 method == MCP_METHOD_PROMPTS_LIST ||
1175 method == MCP_METHOD_RESOURCES_LIST ||
1176 method == MCP_METHOD_RESOURCES_READ ||
1178 method == MCP_METHOD_ROOTS_LIST ||
1180 method == MCP_METHOD_SERVER_DISCOVER ||
1182 method == MCP_METHOD_TOOLS_CALL || method == MCP_METHOD_TOOLS_LIST;
1183 }
1184 // Clang settles that no other value arrives, so only GCC and MSVC
1185 // need to be told that the end of this function is never reached
1186#if !defined(__clang__)
1187 std::unreachable();
1188#endif
1189}
1190
1205[[nodiscard]] constexpr auto
1206mcp_is_mrtr_method(const JSON::StringView method) noexcept -> bool {
1207 return method == MCP_METHOD_TOOLS_CALL ||
1208 method == MCP_METHOD_RESOURCES_READ ||
1209 method == MCP_METHOD_PROMPTS_GET;
1210}
1211
1226[[nodiscard]] constexpr auto
1227mcp_is_cacheable_method(const JSON::StringView method) noexcept -> bool {
1228 return method == MCP_METHOD_SERVER_DISCOVER ||
1229 method == MCP_METHOD_TOOLS_LIST || method == MCP_METHOD_PROMPTS_LIST ||
1230 method == MCP_METHOD_RESOURCES_LIST ||
1232 method == MCP_METHOD_RESOURCES_READ;
1233}
1234
1253[[nodiscard]] constexpr auto
1255 JSON::StringView method) noexcept -> bool {
1256 switch (version) {
1259 return method == "notifications/cancelled" ||
1260 method == "notifications/initialized" ||
1261 method == "notifications/progress" ||
1262 method == "notifications/roots/list_changed";
1264 return method == "notifications/cancelled" ||
1265 method == "notifications/initialized" ||
1266 method == "notifications/progress" ||
1267 method == "notifications/tasks/status" ||
1268 method == "notifications/roots/list_changed";
1270 return method == "notifications/cancelled";
1271 }
1272 // Clang settles that no other value arrives, so only GCC and MSVC
1273 // need to be told that the end of this function is never reached
1274#if !defined(__clang__)
1275 std::unreachable();
1276#endif
1277}
1278
1297[[nodiscard]] constexpr auto
1299 JSON::StringView method) noexcept -> bool {
1300 switch (version) {
1303 return method == "notifications/cancelled" ||
1304 method == "notifications/progress" ||
1305 method == "notifications/resources/list_changed" ||
1306 method == "notifications/resources/updated" ||
1307 method == "notifications/prompts/list_changed" ||
1308 method == "notifications/tools/list_changed" ||
1309 method == "notifications/message";
1311 return method == "notifications/cancelled" ||
1312 method == "notifications/progress" ||
1313 method == "notifications/resources/list_changed" ||
1314 method == "notifications/resources/updated" ||
1315 method == "notifications/prompts/list_changed" ||
1316 method == "notifications/tools/list_changed" ||
1317 method == "notifications/tasks/status" ||
1318 method == "notifications/message" ||
1319 method == "notifications/elicitation/complete";
1321 return method == "notifications/cancelled" ||
1322 method == "notifications/progress" ||
1323 method == "notifications/resources/list_changed" ||
1324 method == "notifications/subscriptions/acknowledged" ||
1325 method == "notifications/resources/updated" ||
1326 method == "notifications/prompts/list_changed" ||
1327 method == "notifications/tools/list_changed" ||
1328 method == "notifications/message";
1329 }
1330 // Clang settles that no other value arrives, so only GCC and MSVC
1331 // need to be told that the end of this function is never reached
1332#if !defined(__clang__)
1333 std::unreachable();
1334#endif
1335}
1336
1337} // namespace sourcemeta::core
1338
1339#endif
std::basic_string_view< Char, CharTraits > StringView
The string view type used by the JSON document.
Definition json_value.h:54
constexpr JSON::StringView MCP_PROTOCOL_VERSION_2026_07_28
Definition mcp_protocol.h:55
constexpr auto mcp_requires_cacheable_metadata(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:594
constexpr JSON::StringView MCP_PROTOCOL_VERSION_2025_06_18
Definition mcp_protocol.h:47
constexpr auto mcp_is_server_request_method(const MCPProtocolVersion version, const JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:935
constexpr auto mcp_supports_implementation_website_url(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:822
constexpr auto mcp_is_notification_method(const MCPProtocolVersion version, const JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:982
constexpr JSON::StringView MCP_METHOD_TOOLS_LIST
Definition mcp_protocol.h:112
constexpr JSON::StringView MCP_PROTOCOL_VERSION_2025_03_26
Definition mcp_protocol.h:43
constexpr auto mcp_supports_mrtr(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:663
MCPProtocolVersion
Definition mcp_protocol.h:30
constexpr auto mcp_supports_jsonrpc_batching(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:845
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_MESSAGE
Definition mcp_protocol.h:222
constexpr auto mcp_supports_server_discover(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:617
constexpr auto mcp_supports_subscriptions_listen(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:640
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_SUBSCRIPTIONS_ACKNOWLEDGED
Definition mcp_protocol.h:102
constexpr auto mcp_requires_result_type(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:572
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_PROGRESS
Definition mcp_protocol.h:232
constexpr JSON::StringView MCP_METHOD_SUBSCRIPTIONS_LISTEN
Definition mcp_protocol.h:94
constexpr JSON::StringView MCP_METHOD_TOOLS_CALL
Definition mcp_protocol.h:121
constexpr JSON::StringView MCP_METHOD_ELICITATION_CREATE
Definition mcp_protocol.h:311
constexpr auto mcp_is_mrtr_method(const JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:1206
constexpr auto mcp_is_request_method(const MCPProtocolVersion version, const JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:867
constexpr auto mcp_is_server_notification_method(MCPProtocolVersion version, JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:1298
constexpr auto mcp_is_client_notification_method(MCPProtocolVersion version, JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:1254
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_INITIALIZED
Definition mcp_protocol.h:71
constexpr JSON::StringView MCP_METHOD_PROMPTS_GET
Definition mcp_protocol.h:185
constexpr JSON::StringView MCP_METHOD_TASKS_LIST
Definition mcp_protocol.h:362
constexpr JSON::StringView MCP_METHOD_COMPLETION_COMPLETE
Definition mcp_protocol.h:194
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_ROOTS_LIST_CHANGED
Definition mcp_protocol.h:332
constexpr auto mcp_supports_output_schema(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:708
constexpr JSON::StringView MCP_METHOD_PROMPTS_LIST
Definition mcp_protocol.h:176
constexpr auto mcp_supports_structured_content(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:730
constexpr JSON::StringView MCP_METHOD_ROOTS_LIST
Definition mcp_protocol.h:287
constexpr auto mcp_requires_request_meta(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:550
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_RESOURCES_LIST_CHANGED
Definition mcp_protocol.h:252
constexpr auto mcp_supports_resource_link_content(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:753
constexpr auto mcp_resolve_protocol_version(const JSON::StringView value) noexcept -> std::optional< MCPProtocolVersion >
Definition mcp_protocol.h:425
constexpr auto mcp_is_cacheable_method(const JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:1227
constexpr JSON::StringView MCP_METHOD_LOGGING_SET_LEVEL
Definition mcp_protocol.h:203
constexpr auto mcp_protocol_version_at_least(const MCPProtocolVersion current, const MCPProtocolVersion minimum) noexcept -> bool
Definition mcp_protocol.h:462
constexpr JSON::StringView MCP_METHOD_PING
Definition mcp_protocol.h:80
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_ELICITATION_COMPLETE
Definition mcp_protocol.h:318
constexpr auto mcp_protocol_version_is_valid(const JSON::StringView value) noexcept -> bool
Definition mcp_protocol.h:484
constexpr JSON::StringView MCP_METHOD_TASKS_CANCEL
Definition mcp_protocol.h:348
constexpr JSON::StringView MCP_METHOD_TASKS_GET
Definition mcp_protocol.h:355
constexpr JSON::StringView MCP_METHOD_SERVER_DISCOVER
Definition mcp_protocol.h:87
constexpr JSON::StringView MCP_METHOD_RESOURCES_LIST
Definition mcp_protocol.h:130
constexpr auto mcp_is_input_request_method(const MCPProtocolVersion version, const JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:1044
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_TOOLS_LIST_CHANGED
Definition mcp_protocol.h:272
constexpr JSON::StringView MCP_METHOD_TASKS_RESULT
Definition mcp_protocol.h:369
constexpr JSON::StringView MCP_PROTOCOL_VERSION_2025_11_25
Definition mcp_protocol.h:51
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_CANCELLED
Definition mcp_protocol.h:212
constexpr auto mcp_supports_implementation_description(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:799
constexpr auto mcp_supports_method(const MCPProtocolVersion version, const JSON::StringView method) noexcept -> bool
Definition mcp_protocol.h:1082
constexpr auto mcp_supports_ping(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:528
constexpr JSON::StringView MCP_METHOD_INITIALIZE
Definition mcp_protocol.h:63
constexpr auto mcp_protocol_version_string(const MCPProtocolVersion version) noexcept -> JSON::StringView
Definition mcp_protocol.h:388
constexpr JSON::StringView MCP_METHOD_RESOURCES_TEMPLATES_LIST
Definition mcp_protocol.h:166
constexpr JSON::StringView MCP_METHOD_RESOURCES_SUBSCRIBE
Definition mcp_protocol.h:147
constexpr JSON::StringView MCP_METHOD_SAMPLING_CREATE_MESSAGE
Definition mcp_protocol.h:301
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_RESOURCES_UPDATED
Definition mcp_protocol.h:262
constexpr auto mcp_uses_initialization_handshake(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:506
constexpr auto mcp_supports_protocol_sessions(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:685
constexpr auto mcp_supports_implementation_title(const MCPProtocolVersion version) noexcept -> bool
Definition mcp_protocol.h:776
constexpr JSON::StringView MCP_METHOD_RESOURCES_READ
Definition mcp_protocol.h:139
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_TASKS_STATUS
Definition mcp_protocol.h:340
constexpr JSON::StringView MCP_METHOD_NOTIFICATIONS_PROMPTS_LIST_CHANGED
Definition mcp_protocol.h:242
constexpr JSON::StringView MCP_METHOD_RESOURCES_UNSUBSCRIBE
Definition mcp_protocol.h:156
@ V_2025_03_26
Protocol revision 2025-03-26.
Definition mcp_protocol.h:32
@ V_2025_11_25
The initialization-handshake revision 2025-11-25.
Definition mcp_protocol.h:36
@ V_2026_07_28
The stateless, per-request capability negotiation revision (2026-07-28).
Definition mcp_protocol.h:38
@ V_2025_06_18
Protocol revision 2025-06-18.
Definition mcp_protocol.h:34