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