Skip to main content
Glama

configure_file_watcher

Manage file watcher service settings in code-index-mcp, enabling configuration of monitoring behavior, debounce intervals, and file exclusion patterns for efficient repository indexing.

Instructions

Configure file watcher service settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
additional_exclude_patternsNo
debounce_secondsNo
enabledNo

Implementation Reference

  • MCP tool handler and registration for 'configure_file_watcher'. Decorated with @mcp.tool(), delegates execution to SystemManagementService.
    @mcp.tool() @handle_mcp_tool_errors(return_type='str') def configure_file_watcher( ctx: Context, enabled: bool = None, debounce_seconds: float = None, additional_exclude_patterns: list = None ) -> str: """Configure file watcher service settings.""" return SystemManagementService(ctx).configure_file_watcher(enabled, debounce_seconds, additional_exclude_patterns)
  • Core implementation of file watcher configuration logic, including validation and application of settings via private helper methods.
    def configure_file_watcher(self, enabled: Optional[bool] = None, debounce_seconds: Optional[float] = None, additional_exclude_patterns: Optional[list] = None) -> str: """ Configure file watcher settings with business validation. Args: enabled: Whether to enable file watcher debounce_seconds: Debounce time in seconds additional_exclude_patterns: Additional patterns to exclude Returns: Success message with configuration details Raises: ValueError: If configuration is invalid """ # Business validation self._validate_configuration_request(enabled, debounce_seconds, additional_exclude_patterns) # Business workflow: Apply configuration result = self._apply_file_watcher_configuration(enabled, debounce_seconds, additional_exclude_patterns) return result

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