| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.spec |
| Modifier and Type | Method and Description |
|---|---|
McpSchema.ReadResourceResult |
McpSyncClient.readResource(McpSchema.Resource resource)
Send a resources/read request.
|
reactor.core.publisher.Mono<McpSchema.ReadResourceResult> |
McpAsyncClient.readResource(McpSchema.Resource resource)
Reads the content of a specific resource identified by the provided Resource
object.
|
| Modifier and Type | Method and Description |
|---|---|
McpClient.SyncSpec |
McpClient.SyncSpec.resourcesChangeConsumer(Consumer<List<McpSchema.Resource>> resourcesChangeConsumer)
Adds a consumer to be notified when the available resources change.
|
McpClient.AsyncSpec |
McpClient.AsyncSpec.resourcesChangeConsumer(Function<List<McpSchema.Resource>,reactor.core.publisher.Mono<Void>> resourcesChangeConsumer)
Adds a consumer to be notified when the available resources change.
|
| Modifier and Type | Method and Description |
|---|---|
McpSchema.Resource |
McpSchema.Resource.Builder.build() |
| Constructor and Description |
|---|
ListResourcesResult(List<McpSchema.Resource> resources,
String nextCursor) |
Copyright © 2025. All rights reserved.