Create MCP resources and tool results with their builders

Proprietary

The MCP Java SDK 2.0 that Spring AI 2.0 uses removed the shorter constructors of McpSchema.Resource and McpSchema.CallToolResult. This replaces them with McpSchema.Resource.builder() and McpSchema.CallToolResult.builder(), leaving out the arguments that were null.

io.moderne.java.spring.ai2.UseMcpSchemaBuilders
mod run . --recipe=io.moderne.java.spring.ai2.UseMcpSchemaBuilders

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.