mcp/resources/base_resource library
Base class for MCP resources with modular registration.
Each resource implementation should extend this class and provide:
name: Human-readable name for the resourceuri: Unique URI identifier for the resourcedescription: Optional description of the resource contentmimeType: Optional MIME type of the resource contentread: Implementation to read the resource content
Classes
- BaseResource
- Base class for all MCP resources.
Extensions
- ResourceRegistration on McpServer
- Extension to register resources with an MCP server.