class

ModelContextProtocol::Server::Examples::FileResource

Inherits ModelContextProtocol::Server::Resource < JSON::Serializable < Reference < Object

Example implementation of a file-based resource

Constructors

new(pull : JSON::PullParser)

Example implementation of a file-based resource

Source
new(path : String)
Source

Instance methods

path
Source
path=(path : String)
Source
read

Read the resource content

Source
subscribe

Optional: Subscribe to resource changes

Source