Skip to content

Add support for reading issue comments in GitHub MCP server #3006

@ylevental

Description

@ylevental

Feature Request

The GitHub MCP server currently supports reading pull request comments via github_get_pull_request_comments, but there's no equivalent functionality for reading issue comments.

Current State

  • ✅ Can read issue metadata (github_get_issue)
  • ✅ Can add comments to issues (github_add_issue_comment)
  • ✅ Can read PR comments (github_get_pull_request_comments)
  • ❌ Cannot read existing issue comments

Requested Feature

Add a new tool (e.g., github_get_issue_comments) that uses the GitHub API endpoint:

GET /repos/{owner}/{repo}/issues/{issue_number}/comments

Use Case

When analyzing GitHub issues, understanding the full discussion context is essential. Currently, users must fall back to web scraping to read issue comments, which defeats the purpose of having a direct API integration.

Example Usage

github_get_issue_comments(owner="modelcontextprotocol", repo="servers", issue_number=123)

This would return the list of comments with their authors, timestamps, and content - just like the existing github_get_pull_request_comments does for PRs.

Additional Context

This feature would complete the GitHub issue integration and provide feature parity with the pull request functionality that already exists.

Also, this entire issue was generated with Claude Code (except for this sentence) 😄😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions