Ragex.MCP.Handlers.GitTools (Ragex v0.31.0)

View Source

MCP tool definitions and handlers for git archaeology features.

Provides 5 tools:

  • git_blame -- line or range blame with optional PR enrichment
  • git_history -- file or function history with filtering
  • git_pr_info -- PR details and review comments
  • co_change_analysis -- discover files that change together
  • git_enrich -- trigger knowledge graph enrichment with git data

Summary

Functions

Dispatch a git tool call. Returns {:ok, result} or {:error, reason}.

Returns the list of git tool definitions for tools/list.

Functions

call_tool(name, arguments)

@spec call_tool(String.t(), map()) :: {:ok, term()} | {:error, term()}

Dispatch a git tool call. Returns {:ok, result} or {:error, reason}.

tool_definitions()

@spec tool_definitions() :: [map()]

Returns the list of git tool definitions for tools/list.