When to Use This vs gh CLI
Prefer gh CLI for:
- •Creating/viewing/merging PRs (
gh pr create,gh pr view) - •Issues (
gh issue list,gh issue create) - •Releases, checks, actions, API calls (
gh api) - •Most day-to-day GitHub operations
Use mcporter GitHub MCP for:
- •Semantic code search across repos
- •File content retrieval via MCP
- •Operations where MCP provides richer structured data
Prerequisites
Requires GITHUB_TOKEN env var (set in ~/.zshrc).
Call Syntax
bash
# Colon-delimited mcporter call github.TOOL_NAME key:value --output json # Function-call style mcporter call 'github.TOOL_NAME(key: "value")' --output json
Discovering Available Tools
The GitHub MCP server tools depend on authentication state. To see what's available:
bash
mcporter list github --all-parameters
Common Patterns
bash
# Search code mcporter call 'github.search_code(query: "className in:file language:typescript")' --output json # Get file contents mcporter call 'github.get_file_contents(owner: "org", repo: "repo", path: "src/index.ts")' --output json # List repos mcporter call 'github.list_repos(owner: "org")' --output json