Create MCP resources and tool results with their builders
ProprietaryThe 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. UseMcpSchemaBuildersmod run . --recipe= io. moderne. java. spring. ai2. UseMcpSchemaBuildersInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.