This is an automated email from the ASF dual-hosted git repository. jamesbognar pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/juneau.git
commit 8d5c2b036f0933ab47b435541082d5dad6c4a80e Author: James Bognar <[email protected]> AuthorDate: Wed Jul 29 09:53:42 2026 -0400 docs: fix stale MCP javadoc example referencing removed setServerInfo API McpRestServlet's class-javadoc example still called McpServerConfig.setServerInfo(new Implementation()...), which was removed when the core config was made revision-neutral. Updated the example to use the current setName(...)/setVersion(...) API. Swept the four MCP modules (juneau-rest-server-mcp, juneau-rest-server-mcp-2025-06-18, juneau-bean-jsonrpc, juneau-bean-mcp-2025-06-18) for other stale references to setServerInfo/setCapabilities/setProtocolVersion/McpDispatcher/Mcp on the neutral config or deleted facade; no other stale references found (the matches on wire-layer beans like InitializeResult/InitializeRequest are still-current API and were left alone). Co-authored-by: Cursor <[email protected]> --- .../src/main/java/org/apache/juneau/rest/server/mcp/McpRestServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juneau-rest/juneau-rest-server-mcp/src/main/java/org/apache/juneau/rest/server/mcp/McpRestServlet.java b/juneau-rest/juneau-rest-server-mcp/src/main/java/org/apache/juneau/rest/server/mcp/McpRestServlet.java index 8ed3097820..6774f26bd1 100644 --- a/juneau-rest/juneau-rest-server-mcp/src/main/java/org/apache/juneau/rest/server/mcp/McpRestServlet.java +++ b/juneau-rest/juneau-rest-server-mcp/src/main/java/org/apache/juneau/rest/server/mcp/McpRestServlet.java @@ -40,7 +40,7 @@ import org.apache.juneau.rest.server.servlet.*; * @Override * protected McpServerConfig createMcpConfig() { * return new McpServerConfig() - * .setServerInfo(new Implementation().setName("my-server").setVersion("1.0.0")) + * .setName("my-server").setVersion("1.0.0") * .addTool(new MyEchoTool()); * } * }
