Gitrama MCP Server

Gitrama MCP Server

gitrama-mcp•byahmaxdev

An MCP server that exposes Gitrama's CLI as 15 MCP tools so AI assistants can handle Git tasks like commit messages, branch names, diffs, code review, push, and PR descriptions.

License: Proprietary•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Generates AI-powered commit messages for staged changes and can also stage files and commit in one step.
  • •Produces AI-powered branch names from descriptions and can optionally create and switch to the branch.
  • •Provides a risk-annotated diff with an interactive HTML panel and an AI code review with severity-graded findings before committing.
  • •Answers natural language questions about a repository's ownership, history, risk, and changes.

BEST FOR

  • •Developers who want to run Git workflows such as diffing, reviewing, committing, and pushing from an AI assistant chat instead of the terminal.
  • •Teams reviewing staged or uncommitted changes for security, correctness, risk, and coupling before pushing.
  • •Developers generating PR descriptions and changelogs between branches or refs.

ABOUT GITRAMA-MCP

Gitrama MCP Server is cataloged as an MCP server attributed to ahmaxdev. An MCP server that exposes Gitrama's CLI as 15 MCP tools so AI assistants can handle Git tasks like commit messages, branch names, diffs, code review, push, and PR descriptions. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Proprietary. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Gitrama MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can Gitrama MCP Server use a local model instead of a hosted API?

Yes; the README describes setting up a Gitrama API key or a local Ollama instance, with configuration commands for each option.

What transport modes does the MCP server support?

It supports stdio and streamable-http transports, controlled by the GTR_MCP_TRANSPORT environment variable.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 16537b19f0f7 · 采集于 2026-11-13 12:51:05 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

🌿 Gitrama MCP Server

AI-powered Git intelligence for your IDE — smart commits, branch names, PR descriptions, diffs, code review, push, and workflow management.

PyPI Python License: Proprietary

What is this?

Gitrama MCP Server exposes Gitrama's CLI as 15 MCP tools that any AI assistant can use. Instead of typing gtr commit in your terminal, your AI assistant calls the tool directly — analyzing your code changes, generating commit messages, suggesting branch names, reviewing code, and more.

Works with: Cursor · Claude Desktop · Claude Code · Windsurf · VS Code · Zed · any MCP-compatible client


What's new in v1.3.2

  • 5 new tools — gitrama_scan, gitrama_diff, gitrama_review, gitrama_status, and gitrama_push
  • Version surfaced from health check — gitrama_health now returns the MCP server version so you can confirm exactly what's running
  • Interactive HTML diff panel — gitrama_diff launches a browser panel with risk-annotated diffs, churn rates, coupling context, and contributor info overlaid on every changed file
  • Push from chat — gitrama_push supports upstream tracking, force-with-lease, and auto-resolves the current branch
  • Tool count updated from 10 → 15

Install (< 60 seconds)

Step 1: Install the package

pip install gitrama-mcp

Or with uv:

uv pip install gitrama-mcp

This installs both the MCP server and the gitrama CLI.

Step 2: Connect to your IDE

Cursor

Add to .cursor/mcp.json in your project (or global settings):

{
  "mcpServers": {
    "gitrama": {
      "command": "gitrama-mcp"
    }
  }
}
Claude Desktop

Add to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "gitrama": {
      "command": "gitrama-mcp"
    }
  }
}
Claude Code
claude mcp add gitrama gitrama-mcp
VS Code

Add to .vscode/mcp.json:

{
  "mcpServers": {
    "gitrama": {
      "command": "gitrama-mcp"
    }
  }
}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "gitrama": {
      "command": "gitrama-mcp"
    }
  }
}
Zed

Add to Zed settings (⌘,):

{
  "context_servers": {
    "gitrama": {
      "command": {
        "path": "gitrama-mcp"
      }
    }
  }
}

Step 3: Done.

Ask your AI: "Commit my staged changes" — and watch it call gitrama_commit.


Tools (15)

Health & Diagnostics

ToolDescription
gitrama_healthCheck AI server health and confirm MCP server version

Repository Intelligence

ToolDescription
gitrama_askAsk any question about your repo — ownership, history, risk, changes
gitrama_scanFull structural health scan — continuity risk, boundary entropy, recurrence patterns
gitrama_statusShow working tree status with AI interpretation

Code Review & Diff

ToolDescription
gitrama_diffRisk-annotated diff with interactive HTML panel — churn, coupling, contributor context
gitrama_reviewAI code review before you push — security, correctness, risk, coupling

Commit Intelligence

ToolDescription
gitrama_commitGenerate an AI commit message for staged changes
gitrama_stage_and_commitStage files + commit in one step
gitrama_unstageRemove files from staging without discarding changes

Branch & Push Management

ToolDescription
gitrama_branchCreate a branch from a natural language description
gitrama_pushPush current branch to remote with upstream and force-with-lease support

PR & Changelog

ToolDescription
gitrama_prGenerate a PR description from branch diff
gitrama_changelogGenerate a changelog between refs

Stream (Workflow) Management

ToolDescription
gitrama_stream_statusShow current workflow stream
gitrama_stream_switchSwitch to a different stream
gitrama_stream_listList all streams in the repo

Tool Details

gitrama_health

Check AI server connectivity and confirm the running MCP server version.

Example prompt: "Run a gitrama health check"

Example output:

✅ AI server is healthy!
   🤖 Model: grok-4.20-reasoning
   🌐 Connected to: https://api.x.ai/v1
 
🔖 Gitrama MCP Server: v1.3.2

gitrama_scan

Run a full structural health scan of the repository. Scores every file for continuity risk, boundary entropy, and recurrence patterns. Results are cached in last_scan.json for use by gtr diff and gtr review.

Example prompt: "Run a full gitrama scan of my repo"


gitrama_diff

Show a risk-annotated diff of current changes. Opens an interactive HTML browser panel with Gitrama's structural intelligence overlaid — risk scores, churn rates, coupling gaps, and contributor context for every changed file.

Parameters:

ParameterTypeDefaultDescription
targetstring""Branch or commit to diff against
stagedboolfalseDiff staged changes only

Example prompts:

  • "Show me a diff of my staged changes"
  • "Diff my branch against main"

gitrama_review

Run an AI code review on current changes before committing. Returns severity-graded findings — security, correctness, risk, coupling — plus a verdict and suggested commit message.

Parameters:

ParameterTypeDefaultDescription
modestring"staged""staged", "uncommitted", "quick", "full"

Example prompts:

  • "Review my staged changes"
  • "Do a full review of all my uncommitted changes"

gitrama_push

Push the current branch to a remote repository. Uses --force-with-lease for safe force pushes and auto-resolves the current branch if none is specified.

Parameters:

ParameterTypeDefaultDescription
remotestring"origin"Remote to push to
branchstring""Branch to push (default: current branch)
forceboolfalseForce push with --force-with-lease
set_upstreamboolfalseSet upstream tracking branch (-u)

Example prompts:

  • "Push my changes"
  • "Push this branch and set upstream"
  • "Force push the current branch"

gitrama_status

Show the working tree status with AI interpretation of staged, unstaged, and untracked files.

Example prompt: "What's my current git status?"


gitrama_ask

Ask a natural language question about your repository. Gitrama analyzes commit history, file structure, blame data, and diffs to answer.

Parameters:

ParameterTypeDefaultDescription
questionstringrequiredAny question about your repo
streamstring""Optional stream context override
deepboolfalseEnable full repo history access

Example prompts:

  • "Who owns the auth module?"
  • "What's the riskiest file in this repo?"
  • "What changed in the last 3 days?"
  • "Explain the purpose of src/utils/retry.py"

gitrama_commit

Generate an AI-powered commit message for staged changes.

Parameters:

ParameterTypeDefaultDescription
messagestring""Optional custom message (skips AI generation)

Example prompt: "Commit my staged changes"


gitrama_stage_and_commit

Stage files and commit in one step.

Parameters:

ParameterTypeDefaultDescription
filesstring"."Files to stage (. for all, or space-separated paths)
messagestring""Optional custom message

Example prompt: "Stage and commit all my changes"


gitrama_unstage

Remove files from the staging area without discarding changes.

Parameters:

ParameterTypeDefaultDescription
filesstring""Space-separated file paths to unstage
all_filesboolfalseUnstage everything currently staged

Example prompt: "Unstage src/auth.py"


gitrama_branch

Generate an AI-powered branch name from a description and optionally create it.

Parameters:

ParameterTypeDefaultDescription
descriptionstringrequiredWhat you're working on
createbooltrueCreate and switch to the branch

Example prompts:

  • "Create a branch for adding OAuth2 support"
  • "Suggest a branch name for fixing the payment timeout, don't create it"

gitrama_pr

Generate a PR description from the diff between the current branch and base.

Parameters:

ParameterTypeDefaultDescription
basestring""Target branch (default: main/master)

Example prompt: "Write a PR description for this branch"


gitrama_changelog

Generate a changelog between refs.

Parameters:

ParameterTypeDefaultDescription
sincestring""Start ref (tag, branch, hash)
untilstring""End ref (default: HEAD)
formatstring"markdown""markdown" or "json"

Example prompt: "Generate a changelog since v1.1.4"


Stream Tools

ToolParametersExample prompt
gitrama_stream_statusnone"What stream am I on?"
gitrama_stream_switchname, description"Switch to the hotfix stream"
gitrama_stream_listnone"List all my gitrama streams"

The v1.3.2 Workflow

With all 15 tools connected, your full dev loop runs from chat:

describe intent  →  stream switch
write code
ask gitrama what changed  →  diff (HTML panel)
review before push
commit with AI message
push
PR description generated

No terminal. No manual git commands.


Configuration

Environment Variables

VariableDefaultDescription
GTR_CWDos.getcwd()Working directory for git operations
GTR_MCP_TRANSPORT"stdio"Transport: "stdio" or "streamable-http"
GTR_MCP_HOST"0.0.0.0"HTTP host (when using streamable-http)
GTR_MCP_PORT"8765"HTTP port (when using streamable-http)

HTTP Transport (for CI/CD)

GTR_MCP_TRANSPORT=streamable-http GTR_MCP_PORT=8765 gitrama-mcp

Then connect your client to http://localhost:8765/mcp.


Requirements

  • Python 3.10+
  • Git installed and in PATH
  • A Gitrama API key or local Ollama instance

Set your API key:

gtr config --key YOUR_API_KEY

Or use a local model:

gtr config --provider ollama --model llama3

Development

git clone https://github.com/ahmaxdev/gitrama-mcp.git
cd gitrama-mcp
pip install -e ".[dev]"
 
# Test with MCP Inspector
mcp dev src/gitrama_mcp/server.py

License

Proprietary — see LICENSE.


Built by Alfonso Harding · gitrama.ai

🌿

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Gitrama MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/gitrama-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools