Structs§
- Directory
Entry - Directory entry information for tree generation
- Large
Output Limits - Local
File System Provider - Local file system provider implementation
Traits§
- File
System Provider - Trait for abstracting file system operations for tree generation
Functions§
- backward_
compatibility_ mapping - Map legacy tool names to their current counterparts. Currently handles mapping “read_rulebook” to “load_skill”.
- generate_
directory_ tree - Generate a tree view of a directory structure using a generic file system provider
- generate_
password - Generate a secure password with alphanumeric characters and optional symbols
- handle_
large_ output - Handle large output: if the output has >=
max_lines, save the full content to session storage and return a string showing only the first or lastmax_lineslines with a pointer to the saved file. ReturnsOk(final_string)orErr(error_string)on failure. - handle_
large_ output_ with_ limits - is_
supported_ file - Check if a directory entry represents a supported file type
- matches_
gitignore_ pattern - Check if a path matches a gitignore pattern
- normalize_
optional_ string - Normalize an optional string by trimming leading/trailing whitespace.
- pattern_
matches_ glob - Simple glob pattern matching for basic cases
- read_
gitignore_ patterns - Read .gitignore patterns from the specified base directory
- sanitize_
text_ output - Sanitize text output by removing control characters while preserving essential whitespace
- should_
include_ entry - Check if a directory entry should be included based on gitignore patterns and file type support
- strip_
tool_ name - Strip the MCP server prefix and any trailing “()” from a tool name. Example: “stakpak__run_command” -> “run_command” Example: “run_command” -> “run_command” Example: “str_replace()” -> “str_replace”
- truncate_
chars_ with_ ellipsis - Truncate a string by character count and append
...when truncated.