Skip to content

ToolCapabilities needs to be marked with @JsonIgnoreProperties(ignoreUnknown = true) to avoid errors. #734

Description

@noear

有些早期的服务协议格式略有不同,会出错。(以下是基于 mcp java sdk v0.17.0 包装的 solon-mcp 的测试代码)

@Test
public void csae2() {
    McpClientProvider mcpClient = McpClientProvider.builder()
            .channel(McpChannel.STDIO) 
            .command("npx")
            .args("-y", "@mcp-get-community/server-curl")
            .build();

    mcpClient.getTools();
}

Activity

  1. changed the title [-][问题] ToolCapabilities 要加上 @JsonIgnoreProperties(ignoreUnknown = true) 不然容易出错[/-] [+]ToolCapabilities needs to be marked with @JsonIgnoreProperties(ignoreUnknown = true) to avoid errors.[/+] on Feb 20, 2026
  2. chemicL commented on Feb 20, 2026

    @chemicL
    Member

    I updated the description with automated translation. Please however revisit the issue and use English so that we understand each other properly. Can you also specify which version of the protocol are you referring to that is incompatible with the current SDK offering? Thanks.

  3. Kehrlann commented on Jun 25, 2026

    @Kehrlann
    Contributor

    Fixed in #927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwaiting for userWaiting for user feedback or more details

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions