McpServerFeatures.SyncResourceSpecification
.@Deprecated
public static class McpServerFeatures.SyncResourceRegistration
extends java.lang.Object
Example resource registration:
new McpServerFeatures.SyncResourceRegistration(
new Resource("docs", "Documentation files", "text/markdown"),
request -> {
String content = readFile(request.getPath());
return new ReadResourceResult(content);
}
)
构造器和说明 |
---|
SyncResourceRegistration()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
McpServerFeatures.SyncResourceSpecification |
toSpecification()
已过时。
|
public McpServerFeatures.SyncResourceSpecification toSpecification()