We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c48bb commit 5625d93Copy full SHA for 5625d93
sdk/java/mcp-server.mdx
@@ -31,9 +31,6 @@ McpSyncServer syncServer = McpServer.sync(transport)
31
.build())
32
.build();
33
34
-// Initialize the server
35
-syncServer.initialize();
36
-
37
// Register tools, resources, and prompts
38
syncServer.addTool(syncToolRegistration);
39
syncServer.addResource(syncResourceRegistration);
@@ -64,11 +61,6 @@ McpAsyncServer asyncServer = McpServer.async(transport)
64
61
65
62
66
63
67
68
-asyncServer.initialize()
69
- .doOnSuccess(v -> logger.info("Server initialized"))
70
- .subscribe();
71
72
73
asyncServer.addTool(asyncToolRegistration)
74
.doOnSuccess(v -> logger.info("Tool registered"))
0 commit comments