-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-github.sh
More file actions
71 lines (62 loc) · 1.93 KB
/
setup-github.sh
File metadata and controls
71 lines (62 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Complete GitHub setup script
cd "$(dirname "$0")"
echo "🚀 Setting up sourcegraph-mcp for GitHub..."
echo ""
# Check if git is initialized
if [ ! -d ".git" ]; then
echo "📦 Initializing git repository..."
git init
echo "✅ Git initialized"
else
echo "✅ Git already initialized"
fi
echo ""
echo "📝 Adding files to git..."
git add .
echo ""
echo "📊 Git status:"
git status --short
echo ""
echo "💾 Creating initial commit..."
git commit -m "Initial commit: SourceGraph MCP server
Features:
- Full SourceGraph GraphQL API integration
- Three powerful search tools (literal, regex, config check)
- Support for local and cloud SourceGraph instances
- Comprehensive documentation (README, SETUP, QUICKSTART)
- Security best practices (config.json git-ignored)
- MIT License
Cost: 50-150x cheaper than loading full codebase into context"
echo ""
echo "✅ Local repository ready!"
echo ""
echo "=========================================="
echo "Next: Create GitHub repository"
echo "=========================================="
echo ""
echo "GitHub CLI method (if you have gh installed):"
echo ""
echo " gh repo create sourcegraph-mcp --public --source=. --remote=origin"
echo " git push -u origin main"
echo ""
echo "Manual method:"
echo ""
echo "1. Go to: https://github.com/new"
echo ""
echo "2. Fill in:"
echo " Repository name: sourcegraph-mcp"
echo " Description: Model Context Protocol server for SourceGraph code search"
echo " Visibility: Public"
echo " ⚠️ Do NOT check 'Add a README' (we have one)"
echo ""
echo "3. After creating, run these commands:"
echo ""
echo " git remote add origin https://github.com/dalebrubaker/sourcegraph-mcp.git"
echo " git branch -M main"
echo " git push -u origin main"
echo ""
echo "=========================================="
echo "✨ Your repo will be live at:"
echo "https://github.com/dalebrubaker/sourcegraph-mcp"
echo "=========================================="