gitrama-mcp

v1.3.2
gitrama-mcp Checked 1 day ago Published 8 months ago

MCP Server for Gitrama — AI-powered Git intelligence for your IDE

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gitrama_commit

Generate an AI-powered commit message for currently staged changes. Analyzes the git diff of staged files and produces a conventional commit message following best practices. Requires files to be staged first (git add). Args: message: Optional custom commit message. If provided, skips AI generation and uses this message directly.

ParameterTypeDescription
messagestring

gitrama_stage_and_commit

Stage files and create an AI-powered commit in one step. Equivalent to `git add <files> && gtr commit -y`. Stages the specified files (or all changes), then generates and applies an AI commit message. Args: files: Files to stage — "." for all changes (default), or space-separated paths (e.g., "src/auth.py tests/test_auth.py"). message: Optional custom commit message. If provided, skips AI generation and uses this message directly.

ParameterTypeDescription
filesstring
messagestring

gitrama_ask

Ask a natural language question about your repository. Uses Gitrama intelligence to provide context-aware answers. Example questions: - "Who owns the auth module?" - "When did we last change the payment logic?" - "What's the riskiest file in this repo?" - "What changed in the last 3 days?" - "Explain the purpose of src/utils/retry.py" - "What stream am I on?" Args: question: Natural language question about your repository. stream: Optional stream context override (wip | hotfix | review | experiment). deep: Enable full repo…

ParameterTypeDescription
question *string
deepboolean
streamstring

gitrama_branch

Generate an AI-powered branch name from a description. Analyzes your description and generates a conventional branch name following best practices (feat/, fix/, chore/, etc.), then optionally creates and switches to the branch. Examples: - "Add user authentication" → feat/add-user-authentication - "Fix memory leak" → fix/memory-leak - "Update docs" → docs/update-docs Args: description: What you're working on (e.g., "add user authentication with OAuth2", "fix timeout in payment processing"). create: If True (defa…

ParameterTypeDescription
description *string
createboolean

gitrama_pr

Generate an AI-powered pull request description. Analyzes the diff between the current branch and the base branch, then generates a comprehensive PR description with title, summary, changes list, and testing notes. Args: base: Target branch for the PR (default: main or master).

ParameterTypeDescription
basestring

gitrama_stream_status

Show the current Gitrama stream (workflow context). Streams are Gitrama's concept of workflow focus — they track what you're working on and influence AI suggestions. Returns the active stream name, description, and associated branch.

gitrama_stream_switch

Switch to a different Gitrama stream (workflow context). Creates a new stream or switches to an existing one. Streams help the AI understand what you're working on for better suggestions. Args: name: Stream name (e.g., "auth-refactor", "payment-v2"). description: Optional description of the stream's purpose.

ParameterTypeDescription
name *string
descriptionstring

gitrama_stream_list

List all Gitrama streams in the current repository. Shows all defined streams with their names, descriptions, and associated branches. The active stream is highlighted.

gitrama_health

Check the Gitrama AI server health status. Verifies connectivity to the Gitrama AI API and returns the current server status and MCP server version. Useful for diagnosing issues when other commands fail.

gitrama_status

Show the working tree status with AI interpretation. Displays the current git status including staged, unstaged, and untracked files with AI-powered context about the changes.

gitrama_diff

Show a risk-annotated diff of current changes. Overlays Gitrama's structural intelligence on top of the raw git diff — risk scores, churn rates, coupling gaps, and contributor context for every changed file. Opens a browser panel with the full analysis. Args: target: Branch or commit to diff against (default: working tree). staged: If True, diff staged changes only (default: all changes).

ParameterTypeDescription
stagedboolean
targetstring

gitrama_review

Run an AI code review on current changes before committing. Sends your diff and repo intelligence to Gitrama's review engine. Returns severity-graded findings — security, correctness, risk, coupling — plus a verdict and suggested commit message. Runs before you push, not after. Catches issues at the right time. Args: mode: Review scope — one of: "staged" — staged changes only (default) "uncommitted" — all uncommitted changes "quick" — critical issues only "full" — full re…

ParameterTypeDescription
modestring

gitrama_unstage

Remove files from the staging area without discarding changes. Moves files out of the git index back to the working tree. Changes are preserved — nothing is lost. Args: files: Space-separated file paths to unstage. Leave empty for interactive selection (CLI only). all_files: If True, unstage everything currently staged.

ParameterTypeDescription
all_filesboolean
filesstring

gitrama_scan

Run a full structural health scan of the repository. Scores every file for continuity risk, boundary entropy, and recurrence patterns. Identifies coupling hotspots and contributor concentration before they compound into failures. Results are cached in last_scan.json for use by gtr diff and gtr review.

gitrama_push

Push the current branch to a remote repository. Pushes committed changes to the specified remote. Optionally sets the upstream tracking branch for new branches. Args: remote: Remote to push to (default: "origin"). branch: Branch to push (default: current branch). force: If True, force push with --force-with-lease (safer than --force). set_upstream: If True, sets the upstream tracking branch (-u flag). Use this when pushing a new branch for the first time.

ParameterTypeDescription
branchstring
forceboolean
remotestring
set_upstreamboolean