mcp: allow configuring protocol version

Closes #2023
This commit is contained in:
Adrià Arrufat
2026-03-29 08:29:04 +02:00
parent 03ed45637a
commit cf5e4d7d1e
5 changed files with 56 additions and 7 deletions

View File

@@ -1,5 +1,14 @@
const std = @import("std");
pub const Version = enum {
@"2024-11-05",
@"2025-03-26",
@"2025-06-18",
@"2025-11-25",
pub const latest: Version = .@"2025-11-25";
};
pub const Request = struct {
jsonrpc: []const u8 = "2.0",
id: ?std.json.Value = null,