From 6a1bd67eb214a82feab935641595aee1c3089e58 Mon Sep 17 00:00:00 2001 From: Piotr Roterski Date: Sun, 16 Mar 2025 17:45:31 +0800 Subject: [PATCH] Fix CreateMessageRequest includeContext enum values to match MCP specification --- mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java b/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java index 2f5511969..7022134e5 100644 --- a/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java +++ b/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java @@ -796,8 +796,8 @@ public record CreateMessageRequest(// @formatter:off public enum ContextInclusionStrategy { @JsonProperty("none") NONE, - @JsonProperty("this_server") THIS_SERVER, - @JsonProperty("all_server") ALL_SERVERS + @JsonProperty("thisServer") THIS_SERVER, + @JsonProperty("allServers") ALL_SERVERS } }// @formatter:on