Skip to content

Commit e400be3

Browse files
Add examples documentation
- Usage examples for Claude Code integration - Direct tool usage examples - Integration guide for other MCP clients
1 parent 076fca7 commit e400be3

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

examples/README.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# MCP Git Enhanced Examples
2+
3+
This directory contains usage examples for the MCP Git Enhanced server.
4+
5+
## Claude Code Integration
6+
7+
### 1. Configure Claude Code
8+
9+
Add to `~/.claude/settings.json`:
10+
11+
```json
12+
{
13+
"mcpServers": {
14+
"git-enhanced": {
15+
"command": "npx",
16+
"args": ["@bountyclaw/mcp-git-enhanced"]
17+
}
18+
}
19+
}
20+
```
21+
22+
### 2. Example Prompts
23+
24+
Once configured, you can ask Claude:
25+
26+
#### Code Review
27+
```
28+
"Show me what changed between the last two commits"
29+
"What's the diff between main and my feature branch?"
30+
"Review the staged changes in this repo"
31+
```
32+
33+
#### Commit Analysis
34+
```
35+
"Analyze the most recent commit"
36+
"Show me commits from last week"
37+
"Who contributed the most code this month?"
38+
```
39+
40+
#### Branch Management
41+
```
42+
"List all branches in this repo"
43+
"Compare this branch with main"
44+
"Which branches can be safely deleted?"
45+
```
46+
47+
#### Repository Health
48+
```
49+
"What's the current status of this repository?"
50+
"Show me all uncommitted changes"
51+
"List files modified in the last 3 commits"
52+
```
53+
54+
## Direct Tool Usage
55+
56+
You can also call the tools directly via JSON-RPC:
57+
58+
```bash
59+
# List available tools
60+
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | npx @bountyclaw/mcp-git-enhanced
61+
62+
# Get git status
63+
echo '{
64+
"jsonrpc": "2.0",
65+
"id": 2,
66+
"method": "tools/call",
67+
"params": {
68+
"name": "git_status",
69+
"arguments": {
70+
"repoPath": "/path/to/repo"
71+
}
72+
}
73+
}' | npx @bountyclaw/mcp-git-enhanced
74+
```
75+
76+
## Integration with Other MCP Clients
77+
78+
The server implements the Model Context Protocol and can be used with any MCP-compatible client:
79+
80+
- Claude Desktop
81+
- Claude Code
82+
- Custom MCP clients
83+
- Any tool supporting MCP stdio transport

0 commit comments

Comments
 (0)