Skip to content

docs(ai): use the git MCP read-only tools for status, diff, log and fetch #1268

Backlog

Description

@steward-warden

Problem

The git MCP server (server name git, package Credfeto.Git.Mcp) gives agents read-only status, diff, log and fetch tools that validate refs and paths, so no free-form git arguments reach the shell. Once credfeto/credfeto-orchestrator#2067 registers it in the agent images and install-claude-hooks, the instruction files still tell agents to run raw git -C … status/diff/log/fetch through Bash.

Proposed change

After credfeto/credfeto-orchestrator#2067 is merged and a stable Credfeto.Git.Mcp release is in the image:

  • In the ai/global git instructions (and anywhere else that spells out these four commands), tell agents to use mcp__git__status, mcp__git__diff, mcp__git__log and mcp__git__fetch when the server is available, and to fall back to the existing git -C forms only when it isn't (for example on a developer machine without it).
  • Keep every write operation (add, commit, push, switch, restore, rebase) on the current wording until the git MCP's write slices land.
  • Use git switch / git restore, never git checkout, in any wording touched.

Acceptance criteria

  • The instructions name the four MCP tools, with the fallback rule.
  • Markdown lint passes and the reconcile run in credfeto-ai-skills picks the change up.

Activity

  1. added
    AI-Work
    Medium
    Enhancement
    Blocked
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-WorkBlockedEnhancementMedium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions