Uses of Record Class
io.modelcontextprotocol.spec.McpSchema.Root
Packages that use McpSchema.Root
Package
Description
-
Uses of McpSchema.Root in io.modelcontextprotocol.client
Methods in io.modelcontextprotocol.client with parameters of type McpSchema.RootModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>McpAsyncClient.addRoot(McpSchema.Root root) Adds a new root to the client's root list.voidMcpSyncClient.addRoot(McpSchema.Root root) Add a roots dynamically.McpClient.AsyncSpec.roots(McpSchema.Root... roots) Sets the root URIs that this client can access, using a varargs parameter for convenience.McpClient.SyncSpec.roots(McpSchema.Root... roots) Sets the root URIs that this client can access, using a varargs parameter for convenience.Method parameters in io.modelcontextprotocol.client with type arguments of type McpSchema.RootModifier and TypeMethodDescriptionMcpClient.AsyncSpec.roots(List<McpSchema.Root> roots) Sets the root URIs that this client can access.McpClient.SyncSpec.roots(List<McpSchema.Root> roots) Sets the root URIs that this client can access. -
Uses of McpSchema.Root in io.modelcontextprotocol.server
Method parameters in io.modelcontextprotocol.server with type arguments of type McpSchema.RootModifier and TypeMethodDescriptionMcpServer.AsyncSpecification.rootsChangeHandler(BiFunction<McpAsyncServerExchange, List<McpSchema.Root>, reactor.core.publisher.Mono<Void>> handler) Registers a consumer that will be notified when the list of roots changes.McpServer.SyncSpecification.rootsChangeHandler(BiConsumer<McpSyncServerExchange, List<McpSchema.Root>> handler) Registers a consumer that will be notified when the list of roots changes.McpServer.AsyncSpecification.rootsChangeHandlers(List<BiFunction<McpAsyncServerExchange, List<McpSchema.Root>, reactor.core.publisher.Mono<Void>>> handlers) Registers multiple consumers that will be notified when the list of roots changes.McpServer.SyncSpecification.rootsChangeHandlers(List<BiConsumer<McpSyncServerExchange, List<McpSchema.Root>>> handlers) Registers multiple consumers that will be notified when the list of roots changes. -
Uses of McpSchema.Root in io.modelcontextprotocol.spec
Methods in io.modelcontextprotocol.spec that return types with arguments of type McpSchema.RootModifier and TypeMethodDescriptionMcpSchema.ListRootsResult.roots()Returns the value of therootsrecord component.Constructor parameters in io.modelcontextprotocol.spec with type arguments of type McpSchema.RootModifierConstructorDescriptionListRootsResult(List<McpSchema.Root> roots) ListRootsResult(List<McpSchema.Root> roots, String nextCursor) ListRootsResult(List<McpSchema.Root> roots, String nextCursor, Map<String, Object> meta) Creates an instance of aListRootsResultrecord class.