Package org.mcpjava.server.resources
package org.mcpjava.server.resources
Define MCP resources and resource templates.
Resources are data sources that can be read by MCP clients. Use
@Resource for static resources and
@ResourceTemplate for dynamic
resources with URI templates.
A ResourceResponse can be returned
from @Resource or
@ResourceTemplate-annotated methods.
- See Also:
-
ClassDescriptionThe content of a resource which contains binary data.Builder for creating binary resource contents.Marks a method as providing an MCP resource.Nested annotation for resource metadata annotations.ResourceContents.Builder<THIS extends ResourceContents.Builder<THIS>>Builder for creating resource contents.The result of a
resources/readrequest.Builder for creating resource read responses.Marks a method as providing dynamic MCP resources via URI templates.Configures a parameter of aResourceTemplatemethod.The content of a resource which contains text data.Builder for creating text resource contents.