From a7582d9c2985f8d9e3b16061092662eef6a912b9 Mon Sep 17 00:00:00 2001 From: Max Nigmatulin Date: Wed, 13 Aug 2025 07:17:11 +0300 Subject: [PATCH 1/2] minor ci, ignore keys --- mcp-spring/mcp-spring-webmvc/pom.xml | 4 ++-- .../main/java/io/modelcontextprotocol/spec/McpSchema.java | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mcp-spring/mcp-spring-webmvc/pom.xml b/mcp-spring/mcp-spring-webmvc/pom.xml index 9c049f7eb..ee7cb30cb 100644 --- a/mcp-spring/mcp-spring-webmvc/pom.xml +++ b/mcp-spring/mcp-spring-webmvc/pom.xml @@ -44,14 +44,14 @@ io.modelcontextprotocol.sdk mcp-test - 0.12.0-SNAPSHOT + ${project.parent.version} test io.modelcontextprotocol.sdk mcp-spring-webflux - 0.12.0-SNAPSHOT + ${project.parent.version} test diff --git a/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java b/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java index 8a109a8d1..37f9eaea1 100644 --- a/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java +++ b/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java @@ -481,6 +481,7 @@ public record ServerCapabilities( // @formatter:off * Present if the server supports argument autocompletion suggestions. */ @JsonInclude(JsonInclude.Include.NON_ABSENT) + @JsonIgnoreProperties(ignoreUnknown = true) public record CompletionCapabilities() { } @@ -488,6 +489,7 @@ public record CompletionCapabilities() { * Present if the server supports sending log messages to the client. */ @JsonInclude(JsonInclude.Include.NON_ABSENT) + @JsonIgnoreProperties(ignoreUnknown = true) public record LoggingCapabilities() { } @@ -498,6 +500,7 @@ public record LoggingCapabilities() { * the prompt list */ @JsonInclude(JsonInclude.Include.NON_ABSENT) + @JsonIgnoreProperties(ignoreUnknown = true) public record PromptCapabilities(@JsonProperty("listChanged") Boolean listChanged) { } @@ -509,6 +512,7 @@ public record PromptCapabilities(@JsonProperty("listChanged") Boolean listChange * the resource list */ @JsonInclude(JsonInclude.Include.NON_ABSENT) + @JsonIgnoreProperties(ignoreUnknown = true) public record ResourceCapabilities(@JsonProperty("subscribe") Boolean subscribe, @JsonProperty("listChanged") Boolean listChanged) { } @@ -520,6 +524,7 @@ public record ResourceCapabilities(@JsonProperty("subscribe") Boolean subscribe, * the tool list */ @JsonInclude(JsonInclude.Include.NON_ABSENT) + @JsonIgnoreProperties(ignoreUnknown = true) public record ToolCapabilities(@JsonProperty("listChanged") Boolean listChanged) { } From f32d6ee428a33022e0863845f0269cf53a77161b Mon Sep 17 00:00:00 2001 From: Max Nigmatulin Date: Wed, 13 Aug 2025 07:31:48 +0300 Subject: [PATCH 2/2] try docker + default revision --- .github/workflows/ci.yml | 3 +++ pom.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c73d9f38..9de3c6126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,5 +18,8 @@ jobs: distribution: 'temurin' cache: 'maven' + - name: Verify Docker + run: docker info + - name: Build run: mvn verify diff --git a/pom.xml b/pom.xml index 628d00c0f..9e45e0a35 100644 --- a/pom.xml +++ b/pom.xml @@ -52,6 +52,7 @@ + 0.0.1-SNAPSHOT-local UTF-8 UTF-8 17