κΉ MCP
π λμ₯κ° λ°°μ§
λ‘컬 μ μ₯μμμ Git μμ
μ κ΄λ¦¬νκΈ° μν MCP μλ²μ
λλ€.
μ€μΉ
Smitheryλ₯Ό ν΅ν΄ μ€μΉ
Smitheryλ₯Ό ν΅ν΄ Claude Desktopμ Git MCPλ₯Ό μλμΌλ‘ μ€μΉνλ €λ©΄:
μ§μμ€νΌ1
μλ μ€μΉ
uvx install git-mcpRelated MCP server: MCP Git Server
ꡬμ±
λ€μ JSON κ΅¬μ± μ€λν«μ μ¬μ©νμ¬ MCP μλ²λ₯Ό μΆκ°ν©λλ€.
{
"mcpServers": {
"git-mcp": {
"command": "uvx",
"args": ["git-mcp"],
"env": {
"GIT_REPOS_PATH": "/path/to/your/git/repositories"
}
}
}
}νΉμ§ λ° μ¬μ©λ²
νκ²½ λ³μ
GIT_REPOS_PATH: Git μ μ₯μκ° μλ λλ ν 리 κ²½λ‘(νμ)
μ΄λ₯Ό μ¬μ©μ νκ²½μμ μ€μ ν μλ μκ³ , μλ²λ₯Ό μ€ννλ λλ ν 리μ .env νμΌμ λ§λ€ μλ μμ΅λλ€.
μ¬μ© κ°λ₯ν λ°©λ²
μ μ₯μ λͺ©λ‘
ꡬμ±λ κ²½λ‘μ μλ λͺ¨λ Git μ μ₯μλ₯Ό λμ΄ν©λλ€.
λ§€κ°λ³μ: μμ
λ°ν: μ μ₯μ μ΄λ¦ λͺ©λ‘
λ§μ§λ§_git_νκ·Έλ₯Ό_κ°μ Έμ€κΈ°
μ§μ λ μ μ₯μμμ λ§μ§λ§ Git νκ·Έλ₯Ό μ°Ύμ΅λλ€.
λ§€κ°λ³μ:
repo_name(Git μ μ₯μ μ΄λ¦)λ°ν:
version(νκ·Έ μ΄λ¦) λ°date(νκ·Έ μμ± λ μ§)κ° ν¬ν¨λ μ¬μ
λ§μ§λ§ νκ·Έ μ΄νμ μ»€λ° λͺ©λ‘
λ§μ§λ§ Git νκ·Έμ HEAD μ¬μ΄μ μ»€λ° λ©μμ§λ₯Ό λμ΄ν©λλ€.
λ§€κ°λ³μ:
repo_name: Git μ μ₯μμ μ΄λ¦max_count(μ ν μ¬ν): λ°νν 컀λ°μ μ΅λ μ
λ°ν:
hash,author,dateλ°messageν¬ν¨λ μ¬μ λͺ©λ‘
create_git_tag
μ§μ λ μ μ₯μμ μλ‘μ΄ git νκ·Έλ₯Ό μμ±ν©λλ€.
λ§€κ°λ³μ:
repo_name: git μ μ₯μμ μ΄λ¦tag_name: μμ±ν νκ·Έμ μ΄λ¦message(μ ν μ¬ν): μ£Όμμ΄ λ¬λ¦° νκ·Έμ λν λ©μμ§(μ 곡λμ§ μμΌλ©΄ κ°λ²Όμ΄ νκ·Έκ° μμ±λ¨)
λ°ν:
status,version(νκ·Έ μ΄λ¦),date(νκ·Έ μμ± λ μ§),type(μ£Όμ μμ λλ κ²½λ)μ΄ ν¬ν¨λ μ¬μ
νΈμ_git_νκ·Έ
κΈ°μ‘΄ git νκ·Έλ₯Ό κΈ°λ³Έ μ격 μ μ₯μμ νΈμν©λλ€.
λ§€κ°λ³μ:
repo_name: git μ μ₯μμ μ΄λ¦tag_name: νΈμν νκ·Έμ μ΄λ¦
λ°ν:
status,remote(μ격μ μ΄λ¦),tag(νκ·Έμ μ΄λ¦),message(μ±κ³΅ λ©μμ§)κ° ν¬ν¨λ μ¬μ
μ μ₯μ μλ‘ κ³ μΉ¨
λ©μΈ λΈλμΉ(λλ λ체μ©μΌλ‘ λ§μ€ν°)λ₯Ό 체ν¬μμνκ³ λͺ¨λ μ격 λΈλμΉμμ κ°μ Έμμ μ μ₯μλ₯Ό μλ‘ κ³ μΉ©λλ€.
λ§€κ°λ³μ:
repo_name: git μ μ₯μμ μ΄λ¦
λ°ν:
status,repository,branchλ°pull_results(κ° μ격μ λν κ²°κ³Ό)κ° ν¬ν¨λ μ¬μ
λ¬Έμ ν΄κ²°
μ μ₯μλ₯Ό μ°Ύμ μ μμ :
GIT_REPOS_PATHμ¬λ°λ₯΄κ² μ€μ λμκ³ μ μ₯μκ° μλμ§ νμΈνμΈμ.νκ·Έλ₯Ό μ°Ύμ μ μμ΅λλ€ . μ μ₯μμ μμ§ νκ·Έκ° μμ΅λλ€.
κ°λ°
# Install dependencies
uv pip install -r requirements.txt
# Run in dev mode with Inspector
mcp dev git_mcp/server.pyν μ€νΈ
μ΄ νλ‘μ νΈμλ λ κ°μ ν μ€νΈ μ€ν¬λ¦½νΈκ° ν¬ν¨λμ΄ μμ΅λλ€.
test_git_mcp.py- MCP μλ²λ₯Ό μ¬μ©νμ§ μκ³ κΈ°λ³Έ Git λͺ λ Ή κΈ°λ₯μ μ§μ ν μ€νΈν©λλ€.test_mcp_server.py- μλ² μΈμ€ν΄μ€λ₯Ό μμνκ³ νΈμΆνμ¬ MCP μλ² κΈ°λ₯μ ν μ€νΈν©λλ€.
ν μ€νΈλ₯Ό μ€ννλ €λ©΄:
# Test the Git command functionality
python test_git_mcp.py
# Test the MCP server (requires the git-mcp package to be installed)
python test_mcp_server.pyMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kjozsa/git-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
