Recommend this page to a friend! |
Classes of Mohamed Ahmed | Laravel MCP SDK | docs/api/_ResourcesCapability.md | Download |
|
![]() ResourcesCapabilityNamespace: `` Represents the resources capability for server-side functionality. This class manages information about server-side resource capabilities, including whether resource handling is enabled and what resources are available on the server. @package LaravelMCP\MCP\Capabilities\ServerCapabilities Methods__constructCreate a new resources capability instance. @param bool $enabled Whether resource handling is enabled on the server @param array $resources List of available server resources isEnabledCheck if resource handling is enabled on the server. @return bool True if resource handling is enabled, false otherwise getResourcesGet the list of available server resources. @return array List of configured server resources toArrayConvert the capability to an array format. @return array The capability data as a key-value array createCreate a new instance from an array of data. @param array $data The data to create the instance from @return static A new instance of the capability |