Getting Started Guide | GitHub Tools
#Getting Started with GitHub Tools
This guide will help you set up and start using GitHub tools in the MCP Chat AI Assistant.
#π Step 1: Connect Your GitHub Account
#Through Chat Settings
- Click the Settings icon in the chat interface
- Navigate to GitHub Integration
- Click Connect GitHub Account
- Authorize the application with your GitHub account
- Grant necessary permissions
#Required Permissions
The GitHub integration requires these permissions:
- Repository access - Read and write to your repositories
- Issues - Create and manage issues
- Pull requests - Create and manage pull requests
- Contents - Read and modify file contents
#π Step 2: Select a Repository
#Method 1: Repository Selector
- Look for the Repository Selector dropdown in the chat interface
- Choose from your available repositories
- The selected repository will be used for all GitHub operations
#Method 2: Ask the AI
"Show me my repositories" "Switch to the my-awesome-project repository" "What repositories do I have access to?"
#Repository Types Supported
- β Public repositories - Full access
- β Private repositories - Full access (with proper permissions)
- β Organization repositories - Based on your organization role
- β Forked repositories - Full access to your forks
#π― Step 3: Your First Request
Try these beginner-friendly commands:
#Explore Your Repository
"What files are in the root directory?" "Show me the structure of the src folder" "What languages are used in this project?"
#Read Code
"Show me the README file" "What's in the package.json file?" "Display the main entry point of this project"
#Get Repository Information
"Tell me about this repository" "What's the latest commit?" "How many open issues are there?"
#π§ Understanding the Interface
#GitHub Connection Status
- π’ Connected - Green indicator shows active GitHub connection
- π‘ Limited - Yellow indicates rate limiting (wait a moment)
- π΄ Disconnected - Red means you need to reconnect
#Repository Context
- Current repository is displayed in the interface
- All operations will be performed on the selected repository
- Switch repositories anytime using the selector
#Rate Limiting
GitHub API has rate limits:
- 5,000 requests/hour for authenticated users
- The interface shows your remaining quota
- If you hit limits, wait or try again later
#π‘ Tips for Success
#1. Be Specific
Instead of: "Show me the code" Try: "Show me the user authentication code in the auth folder"
#2. Use Natural Language
The AI understands context, so you can ask follow-up questions:
You: "Show me the main component" AI: [Shows component] You: "What props does this component accept?" AI: [Analyzes the component's props]
#3. Reference File Paths
You can reference files directly:
"Update the src/components/Button.tsx file to add a loading state" "Compare the old and new versions of config/database.js"
#4. Combine Operations
"Create a new feature branch called 'user-profile', then show me the components folder" "Find all TODO comments in the codebase and create an issue to track them"
#π¨ Common Setup Issues
#Issue: "Failed to connect to GitHub"
Solution:
- Check your internet connection
- Ensure you're logged into GitHub in your browser
- Try disconnecting and reconnecting
- Check if you have two-factor authentication enabled
#Issue: "Repository not found"
Solution:
- Verify you have access to the repository
- Check if the repository name is correct
- Ensure the repository isn't private (unless you have access)
- Try refreshing the repository list
#Issue: "Permission denied"
Solution:
- Check repository permissions in GitHub
- Verify the GitHub app has the necessary scopes
- Contact the repository owner for access
- Re-authorize the application with updated permissions
#π Quick Reference Commands
Task | Example Command |
---|---|
Browse files | "Show me the src directory" |
Read a file | "What's in the README.md file?" |
Search code | "Find all functions named 'authenticate'" |
Create issue | "Create an issue for the login bug" |
Check status | "What's the current status of this repo?" |
List branches | "Show me all branches" |
Get repo info | "Tell me about this repository" |
#β¨ What's Next?
Now that you're connected, explore these advanced features:
- File Operations - Learn to manage files and directories
- Code Search - Master the search capabilities
- AI Analysis - Discover AI-powered insights
- Issue Management - Streamline your workflow
Ready to start building? Ask the AI assistant anything about your code!