GitHub MCP
Call the connected GitHub MCP. Do not invent issue numbers, PR state, or SHAs.
Procedure
- If owner, login, or permission context is missing, call
get_me. - Prefer
list_*for “show all X”. Prefersearch_*for keywords, authors, or natural language. Do not putsort:inside a search query string. - Page in batches of 5–10. Use
minimal_output: trueunless full bodies are needed. - Search issues with
search_issuesbeforeissue_write(create) to avoid duplicates. - Pull request reviews:
pull_request_review_writemethodcreate, thenadd_comment_to_pending_review, thenpull_request_review_writemethodsubmit_pending. - Before
create_pull_request, look for a PR template (.github/PULL_REQUEST_TEMPLATEorpull_request_template.md). - After each call,
.cursor/hooks/log-mcp.shrecords request and response. Do not commit.cursor/logs/.
If the GitHub MCP is unavailable, say so. Do not fall back to guessed API results.