Module utils

Module utils 

Source
Expand description

Common utilities for MCP tools

This module provides shared functionality used across different MCP tool implementations.

Traits§

PilotTool
Common trait for all GitAI MCP tools

Functions§

apply_custom_instructions
Apply custom instructions to config if provided
create_text_result
Creates a text result response for tool calls
parse_detail_level
Parses a detail level string into the corresponding enum value
resolve_git_repo
Resolves a Git repository from a repo_path parameter
validate_repository_parameter
Validates the repository parameter: must be non-empty, and if local, must exist and be a git repo