Class: RosettAi::Mcp::Tools::DocumentationStatusTool
- Inherits:
-
Object
- Object
- RosettAi::Mcp::Tools::DocumentationStatusTool
- Defined in:
- lib/rosett_ai/mcp/tools/documentation_status_tool.rb
Overview
MCP tool: show documentation status.
Returns the current state of project documentation. Read-only operation.
Constant Summary collapse
- TOOL_NAME =
Returns MCP tool identifier string.
'rai_documentation_status'- DESCRIPTION =
Returns Human-readable description of this tool.
'Show rai documentation status'- ANNOTATIONS =
Returns MCP protocol annotations describing tool capabilities.
{ 'readOnlyHint' => true, 'destructiveHint' => false, 'idempotentHint' => true, 'openWorldHint' => false }.freeze
Instance Method Summary collapse
-
#call ⇒ Hash
Executes the documentation status check.
Instance Method Details
#call ⇒ Hash
Executes the documentation status check.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/rosett_ai/mcp/tools/documentation_status_tool.rb', line 33 def call root = RosettAi.root doc_dir = root.join('doc') man_dir = root.join('doc', 'man') { doc_files: doc_dir.directory? ? doc_dir.glob('*.md').size : 0, man_pages: man_dir.directory? ? man_dir.glob('*.ronn').size : 0, changelog_exists: root.join('CHANGELOG.md').exist?, readme_exists: root.join('README.md').exist?, install_guide_exists: root.join('INSTALL.md').exist? } end |