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

@@ -114,7 +114,7 @@ test "MCP.Server - Integration: synchronous smoke test" {
try router.processRequests(server, &in_reader);
try testing.expectJson(.{ .jsonrpc = "2.0", .id = 1 }, out_alloc.writer.buffered());
try testing.expectJson(.{ .jsonrpc = "2.0", .id = 1, .result = .{ .protocolVersion = "2025-11-25" } }, out_alloc.writer.buffered());
}
test "MCP.Server - Integration: ping request returns an empty result" {