create_pull_request_review tool does not support inline comments with `line` parameter · Issue #112 · github/github-mcp-server · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

create_pull_request_review tool does not support inline comments with line parameter #112

Closed
@ashwin-ant

Description

@ashwin-ant

Describe the bug

When an inline comment is specified for the create_pull_request_review tool, it currently only allows comments with the position field specified. The GitHub REST API endpoint for creating pull requests supports line as an alternative to position. Would it be possible to support this option in the MCP tool?

Affected version

server version v0.1.0 (b89336793c5bc9b9abdd5100d876babbc1031f5d) 2025-04-04T15:38:21Z

Steps to reproduce the behavior

Try posting a pull request with a comments field like:

comments: [
  {
    path: 'file.md',
    line: 6,
    body: 'body text here'
  }
]

Expected vs actual behavior

Expected: Review posts with an inline comment on line 6 of file.md

Actual: tool call fails with error each comment must have a position

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      TMZ Celebrity News – Breaking Stories, Videos & Gossip

      Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

      Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

      🎥 Watch TMZ Live

      TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.