Class: TrakFlow::Mcp::Resources::TaskList
- Inherits:
-
BaseResource
- Object
- FastMcp::Resource
- BaseResource
- TrakFlow::Mcp::Resources::TaskList
- Defined in:
- lib/trak_flow/mcp/resources/task_list.rb
Instance Method Summary collapse
Methods inherited from BaseResource
Instance Method Details
#content ⇒ Object
12 13 14 15 16 17 |
# File 'lib/trak_flow/mcp/resources/task_list.rb', line 12 def content self.class.with_database do |db| tasks = db.list_tasks({}) Oj.dump(tasks.map(&:to_h), mode: :compat, indent: 2) end end |