Class: OKF::MCP::Server::Context
- Inherits:
-
Struct
- Object
- Struct
- OKF::MCP::Server::Context
- Defined in:
- lib/okf/mcp/server.rb
Overview
Holds what every tool closes over: the bundle allowlist, the engine that answers search/catalog (memory, or okf-sqlite3 when installed), and the always-present memory folder cache behind read_concept, dirs, index, log and graph.
Instance Attribute Summary collapse
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#registry ⇒ Object
Returns the value of attribute registry.
Instance Method Summary collapse
Instance Attribute Details
#engine ⇒ Object
Returns the value of attribute engine
115 116 117 |
# File 'lib/okf/mcp/server.rb', line 115 def engine @engine end |
#memory ⇒ Object
Returns the value of attribute memory
115 116 117 |
# File 'lib/okf/mcp/server.rb', line 115 def memory @memory end |
#registry ⇒ Object
Returns the value of attribute registry
115 116 117 |
# File 'lib/okf/mcp/server.rb', line 115 def registry @registry end |
Instance Method Details
#folder(bundle) ⇒ Object
120 121 122 |
# File 'lib/okf/mcp/server.rb', line 120 def folder(bundle) memory.folder(root!(bundle)) end |
#root!(bundle) ⇒ Object
116 117 118 |
# File 'lib/okf/mcp/server.rb', line 116 def root!(bundle) registry.root!(bundle) end |