Skip to content

How about adding a tool for fetching individual comments by ID/anchor? #698

Description

@jellybulb

Describe the feature or problem you’d like to solve

Currently, github-mcp-server provides tools to fetch "all comments" from issues, pull requests, and discussions.

  • get_issue_comments
  • get_pull_request_comments
  • get_discussion_comments

While this is useful, it can be inefficient when someone only need to access a specific comment.

So, I would like to request a new tool that can fetch individual comments directly using their anchor IDs, similar to how GitHub URLs work with anchors.

Proposed solution

This would be particularly useful for:

  • Fetching specific comments without retrieving the entire comment thread
  • Direct access to comments referenced by their URLs
  • More efficient API usage when working with large comment threads
  • Reduced API calls and bandwidth usage
  • Faster access to specific comments
  • Better support for comment-specific workflows
  • Particularly valuable in restricted environments like GitHub Enterprise, where issue access may be limited

Example prompts or workflows (for tools/toolsets only)

The tool(s) should be able to fetch individual comments like these:

Activity

  1. github-actions commented on Mar 23, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 30 days with no activity. Leave a comment to avoid closing this issue in 60 days.

  2. github-actions commented on May 22, 2026

    @github-actions
    Contributor

    This issue was closed because it has been inactive for 60 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions