McpServerFeatures.SyncResourceSpecification.@Deprecated public static class McpServerFeatures.SyncResourceRegistration extends Object
Example resource registration:
new McpServerFeatures.SyncResourceRegistration(
new Resource("docs", "Documentation files", "text/markdown"),
request -> {
String content = readFile(request.getPath());
return new ReadResourceResult(content);
}
)
| Constructor and Description |
|---|
SyncResourceRegistration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
McpServerFeatures.SyncResourceSpecification |
toSpecification()
Deprecated.
|
public McpServerFeatures.SyncResourceSpecification toSpecification()
Copyright © 2025. All rights reserved.