diff --git a/sdk/java/mcp-server.mdx b/sdk/java/mcp-server.mdx index 2323064..4cb05ad 100644 --- a/sdk/java/mcp-server.mdx +++ b/sdk/java/mcp-server.mdx @@ -31,9 +31,6 @@ McpSyncServer syncServer = McpServer.sync(transport) .build()) .build(); -// Initialize the server -syncServer.initialize(); - // Register tools, resources, and prompts syncServer.addTool(syncToolRegistration); syncServer.addResource(syncResourceRegistration); @@ -64,11 +61,6 @@ McpAsyncServer asyncServer = McpServer.async(transport) .build()) .build(); -// Initialize the server -asyncServer.initialize() - .doOnSuccess(v -> logger.info("Server initialized")) - .subscribe(); - // Register tools, resources, and prompts asyncServer.addTool(asyncToolRegistration) .doOnSuccess(v -> logger.info("Tool registered"))