Skip to main content
Glama

get_file_watcher_status

Check the status and statistics of the file watcher service on the code-index-mcp server to monitor code repository indexing and analysis processes.

Instructions

Get file watcher service status and statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool registration and handler function for 'get_file_watcher_status'. This is the entry point for the tool, decorated with @mcp.tool() and delegating execution to the SystemManagementService.
    @handle_mcp_tool_errors(return_type='dict') def get_file_watcher_status(ctx: Context) -> Dict[str, Any]: """Get file watcher service status and statistics.""" return SystemManagementService(ctx).get_file_watcher_status()
  • Dataclass defining the structure of the file watcher status output used in the tool response.
    @dataclass class FileWatcherStatus: """Business result for file watcher status operations.""" available: bool active: bool status: str message: Optional[str] error_info: Optional[Dict[str, Any]] configuration: Dict[str, Any] rebuild_status: Dict[str, Any] recommendations: list[str]
  • Core helper method in SystemManagementService that implements the business logic for retrieving and formatting the file watcher status, called by the tool handler.
    def get_file_watcher_status(self) -> Dict[str, Any]: """ Get comprehensive file watcher status with business intelligence. This is the main business method that orchestrates the file watcher status workflow, analyzing system state, providing recommendations, and formatting comprehensive status information. Returns: Dictionary with comprehensive file watcher status """ # Business workflow: Analyze system state status_result = self._analyze_file_watcher_state() # Business result formatting return self._format_status_result(status_result)

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johnhuang316/code-index-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server