MCP server exposing GitHub repos, issues, pull requests, code search, and users to LLM agents via stdio.
Strong schema definitions with proper Zod validation, clear parameter constraints, and comprehensive error handling. All 10 tools have explicit input schemas with type definitions and descriptions. Tool names follow verb_noun convention (list_, get_, create_, search_). Descriptions are detailed and actionable (avg ~180 chars). Main gaps: output schemas not formally documented in code; some parameter descriptions could be more prescriptive about format/constraints; no tool annotations visible in registration code.
Open a new issue. Non-destructive write (only adds). Args: owner, repo, title (required, 1-256 chars), body (markdown, optional), labels (string[], must already exist on repo), assignees (string[]). Returns: { created: true, number, title, html_url, state, labels[], assignees[], ... }. Error handling: 401/403 if token lacks 'issues:write'. 422 if a referenced label or assignee does not exist.
Fetch a single issue or PR by number, including its body. Args: owner, repo, issue_number (positive int), response_format. Returns: full issue summary plus body. Error handling: 404 if issue_number does not exist in the repo.
Fetch a single PR with body, mergeability, diff stats, reviewers. Args: owner, repo, pull_number (positive int), response_format. Returns: full PR summary plus body, mergeable, mergeable_state, additions, deletions, changed_files, commits, merged, merged_by.
Fetch metadata for a single GitHub repository. Args: owner (string), repo (string), response_format ('markdown' | 'json', default 'markdown'). Returns: { id, full_name, description, private, fork, default_branch, language, stars, watchers, forks, open_issues, topics[], license, archived, created_at, updated_at, pushed_at, html_url }. Examples: - 'What is the default branch of anthropics/claude-code?' - 'How many open issues does facebook/react have?' Error handling: 404 if owner/repo do not exist or are private and your token lacks access.
Output schemas not formally documented. Tool descriptions mention return fields (e.g., 'Returns: paginated envelope. Each item: { number, title, state, ... }') but no structured schema definitions visible in code. LLMs cannot reliably parse unstructured text descriptions of response shapes.
Tool annotations (readOnlyHint, destructiveHint, idempotentHint) not visible in tool registration. github_create_issue is a write operation but no destructiveHint annotation found. Agents cannot distinguish safe reads from state-modifying calls without explicit hints.
Parameter descriptions lack prescriptive format guidance. E.g., 'since' is marked as datetime but description does not state 'ISO 8601 format required' or show an example. 'query' in search tools accepts GitHub query syntax but does not explain qualifiers (repo:, language:, path:) that LLMs need to construct valid queries.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2025-06-18+ | v2 |
Fetch a public user or organization profile by login. Args: username (1-39 chars), response_format. Returns: { id, login, type ('User'|'Organization'), name, company, blog, location, email, bio, twitter_username, public_repos, public_gists, followers, following, created_at, updated_at, html_url }. Error handling: 404 if the username does not exist.
List issues (and PRs, flagged is_pull_request=true) in a repository. Args: owner, repo, state ('open'|'closed'|'all', default 'open'), labels (string[]), assignee (string|'*'|'none'), since (ISO 8601), limit (1-100, default 30), offset (default 0), response_format. Returns: paginated envelope. Each item: { number, title, state, user, labels[], assignees[], comments, created_at, updated_at, closed_at, html_url, is_pull_request }. Note: GitHub's REST issues endpoint mixes issues and PRs; filter is_pull_request=false if you want issues only.
List pull requests in a repository. Args: owner, repo, state ('open'|'closed'|'all', default 'open'; 'closed' includes merged), base, head, sort ('created'|'updated'|'popularity'|'long-running', default 'created'), direction, limit, offset, response_format. Returns: paginated envelope. Each item: { number, title, state, draft, user, base, head, labels[], requested_reviewers[], comments, created_at, updated_at, closed_at, merged_at, html_url }.
List files and directories at a path within a GitHub repo. Args: owner (string), repo (string), path (string, default ''), ref (string, optional), response_format ('markdown' | 'json'). Returns: { owner, repo, path, ref, count, entries[] }. Each entry has type ('file' | 'dir' | 'submodule' | 'symlink'), name, path, size, sha, html_url, and download_url for files. Examples: - 'List the src directory of anthropics/anthropic-sdk-typescript' - 'Show the files at the root of microsoft/typescript on branch release-5.4' Error handling: 404 if path or ref does not exist.
Search file contents across GitHub. Args: query (with qualifiers like 'repo:', 'language:', 'path:', 'extension:', 'filename:'), sort ('indexed'|'best-match', default 'best-match'), order, limit, offset, response_format. Returns: paginated envelope with total_count. Each item: { name, path, sha, repository, html_url, score }. Error handling: 422 if query is malformed (GitHub requires at least one search term). 403 on the strict 30 req/min code-search rate limit.
Search issues and PRs across GitHub. Args: query (e.g. 'repo:facebook/react is:open label:bug', 'author:torvalds is:pr'), sort ('created'|'updated'|'comments'|'reactions'|'best-match', default 'best-match'), order, limit, offset, response_format. Returns: paginated envelope with total_count. Items same shape as github_list_issues. Error handling: 422 on invalid query syntax. 403 on search rate limit.
Error handling is server-side only (error_handler.ts). Tool descriptions mention error cases (404, 422, 403) but do not guide LLM recovery. E.g., 'Error: Resource not found' does not suggest 'Try search_users() with a partial name' or 'Verify owner/repo are correct'.
No batch variants for tools agents call in loops. If an agent needs to create 5 issues, it must call github_create_issue 5 times sequentially. A batch_create_issues tool accepting an array would reduce token waste and latency.