Skip to content

[问题] ToolCapabilities 要加上 @JsonIgnoreProperties(ignoreUnknown = true) 不然容易出错 #734

@noear

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions