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

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)

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

tool_definitions()

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