@@ -42,11 +42,11 @@ The server supports both synchronous and asynchronous APIs, allowing for flexibl
42
42
McpSyncServer syncServer = McpServer . sync(transportProvider)
43
43
.serverInfo(" my-server" , " 1.0.0" )
44
44
.capabilities(ServerCapabilities . builder()
45
- .resources(true ) // Enable resource support
46
- .tools(true ) // Enable tool support
47
- .prompts(true ) // Enable prompt support
48
- .logging() // Enable logging support
49
- .completions() // Enable completions support
45
+ .resources(false , true ) // Enable resource support
46
+ .tools(true ) // Enable tool support
47
+ .prompts(true ) // Enable prompt support
48
+ .logging() // Enable logging support
49
+ .completions() // Enable completions support
50
50
.build())
51
51
.build();
52
52
@@ -68,10 +68,11 @@ syncServer.close();
68
68
McpAsyncServer asyncServer = McpServer . async(transportProvider)
69
69
.serverInfo(" my-server" , " 1.0.0" )
70
70
.capabilities(ServerCapabilities . builder()
71
- .resources(true ) // Enable resource support
72
- .tools(true ) // Enable tool support
73
- .prompts(true ) // Enable prompt support
74
- .logging() // Enable logging support
71
+ .resources(false , true ) // Enable resource support
72
+ .tools(true ) // Enable tool support
73
+ .prompts(true ) // Enable prompt support
74
+ .logging() // Enable logging support
75
+ .completions() // Enable completions support
75
76
.build())
76
77
.build();
77
78
0 commit comments