Uses of Class
com.tnsai.mcp.model.Root
Packages that use Root
-
Uses of Root in com.tnsai.mcp.client
Methods in com.tnsai.mcp.client that return types with arguments of type RootMethods in com.tnsai.mcp.client with parameters of type RootModifier and TypeMethodDescriptionvoidAdds a root and notifies the server.voidMcpClient.removeRoot(Root root) Removes a root and notifies the server.Method parameters in com.tnsai.mcp.client with type arguments of type Root -
Uses of Root in com.tnsai.mcp.model
Methods in com.tnsai.mcp.model that return RootModifier and TypeMethodDescriptionstatic RootRoot.fromDirectory(String path, String name) Creates a Root from a directory path string.static RootCreates a Root from a File.static RootCreates a Root from a file path.static RootCreates a Root from a file path with custom name.static RootCreates a Root from a URI string and display name. -
Uses of Root in com.tnsai.mcp.server
Methods in com.tnsai.mcp.server that return types with arguments of type RootModifier and TypeMethodDescriptionMcpRequestHandler.getClientRoots()Returns the roots provided by the client.McpServer.getClientRoots()Returns the current client roots.Method parameters in com.tnsai.mcp.server with type arguments of type RootModifier and TypeMethodDescriptionMcpServer.Builder.clientRoots(List<Root> roots) Sets the initial client roots.voidMcpRequestHandler.setClientRoots(List<Root> roots) Sets the roots provided by the client.voidMcpServer.setClientRoots(List<Root> roots) Sets the client roots on the server.voidMcpRequestHandler.setOnRootsChanged(Consumer<List<Root>> listener) Sets a callback for when client roots change.