modelcontextprotocol / modelcontextprotocol/servers

[Git] Support for git init

Open
#272 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
90.5k
Forks
11.7k
Avg merge
2d 2h
Merged PRs (30d)
5

Description

The git mcp server can do things like git add and git commit. I was using it in combination with the filesystem mcp server to create a directory and write files, however I found that it could not do git init to initiate a git repository in the directory, which is necessary before add and commit can work.

Please add support for git init

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Git MCP server entry point and the existing handlers for git add and git commit. Trace how those commands receive a target directory and are dispatched, then check the related tests if present. Done means the server can run git init in the created directory so subsequent add and commit operations work.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.