Title: get_review_comments (pull_request_read) silently drops start_line for multi-line PR review comments · Issue #3190 · github/github-mcp-server · GitHub
Open Graph Title: get_review_comments (pull_request_read) silently drops start_line for multi-line PR review comments · Issue #3190 · github/github-mcp-server
X Title: get_review_comments (pull_request_read) silently drops start_line for multi-line PR review comments · Issue #3190 · github/github-mcp-server
Description: Describe the bug get_pull_request (method get_review_comments, or the equivalent underlying pulls/comments handling) drops the start_line/original_start_line fields for multi-line ("range") review comments. GitHub's REST API returns both...
Open Graph Description: Describe the bug get_pull_request (method get_review_comments, or the equivalent underlying pulls/comments handling) drops the start_line/original_start_line fields for multi-line ("range") review ...
X Description: Describe the bug get_pull_request (method get_review_comments, or the equivalent underlying pulls/comments handling) drops the start_line/original_start_line fields for multi-line ("range"...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3190
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_review_comments (pull_request_read) silently drops start_line for multi-line PR review comments","articleBody":"### Describe the bug\n\n`get_pull_request` (method `get_review_comments`, or the equivalent underlying `pulls/comments` handling) drops the `start_line`/`original_start_line` fields for multi-line (\"range\") review comments. GitHub's REST API returns both fields when a review comment spans more than one line, but the MCP tool's response only exposes `line` — the end of the range — with no indication the comment covers a range at all. A caller has no way to tell \"this comment is about line 69\" from \"this comment is about lines 62-69\"; both look identical in the tool's output.\n\nThis isn't just cosmetic — it produces silently wrong interpretations of review feedback. A caller that trusts `line` as \"the line this comment is about\" will read a comment addressed to an 8-line block as if it were addressed to only its last line, then act on that narrower (wrong) scope: applying a fix to one line when the reviewer meant the whole construct, or misjudging which code the feedback even refers to when the last line alone doesn't contain enough context to make sense of the comment. Because the field is simply absent rather than null or flagged, there's no way for a caller to detect that it's missing information and fall back to something safer — the response looks identical whether the comment was single-line or a wide range, so the failure mode is invisible until someone happens to cross-check against the raw REST API.\n\n### Affected version\n\n```\nGitHub MCP Server\nVersion: v1.5.0\nCommit: 8cd03c018525ae0bafc9b3cdb84ec2133e01bac2\nBuild Date: 2026-06-27T07:57:41Z\n```\n\n### Steps to reproduce the behavior\n\n1. On a pull request, add a review comment on a multi-line selection (e.g. select lines 62-69 in the diff view, not a single line).\n2. Call the MCP tool's pull-request-comments method (`pull_request_read` / `get_review_comments`) for that PR.\n3. Compare the returned comment object against `GET /repos/{owner}/{repo}/pulls/{pull_number}/comments` on the same PR via the raw REST API.\n\n### Expected vs actual behavior\n\n**Expected:** the tool's response includes `start_line` (and ideally `original_start_line`/`side`/`start_side`) whenever the underlying GitHub API has them, so a caller can reconstruct the comment's true line range.\n\n**Actual:** the tool only returns `line`. For a comment GitHub itself reports as spanning lines 62-69, the tool reports only `69`, indistinguishable from a genuine single-line comment on line 69.\n\n### Logs\n\nRaw GitHub REST API response for the affected comment (redacted to relevant fields):\n\n```json\n{\n \"id\": 6748769,\n \"path\": \"src/schemas/components/createDefaults.schema.json\",\n \"line\": 69,\n \"original_line\": 69,\n \"start_line\": 62,\n \"original_start_line\": 62,\n \"side\": \"RIGHT\",\n \"start_side\": \"RIGHT\"\n}\n```\n\nMCP tool's response for the same comment (via `pull_request_read`, method `get_review_comments`):\n\n```json\n{\n \"id\": \"...\",\n \"path\": \"src/schemas/components/createDefaults.schema.json\",\n \"line\": 69,\n \"author\": \"lundhik\",\n \"body\": \"...\"\n}\n```\n\n`start_line`/`original_start_line`/`side`/`start_side` are absent entirely — not `null`, just missing from the shape.","author":{"url":"https://github.com/fsahmad","@type":"Person","name":"fsahmad"},"datePublished":"2026-08-31T12:50:50Z","url":"https://github.com/github/github-mcp-server/issues/3190"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b1231fa3-0568-86f3-9fd8-aa06396a4728 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9278:333887:865D0B:B9A9B4:6B069B4B |
| html-safe-nonce | f550c53f44beaf5966924e5ddd61a736fd4797e4b40548777845799e7ce95416 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjc4OjMzMzg4Nzo4NjVEMEI6QjlBOUI0OjZCMDY5QjRCIiwidmlzaXRvcl9pZCI6IjM3MTQzMjI1OTg4MDU4MDU4OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce0b361cfc2a536d136113532419aacb91bbaafb472416d7aa89e875e859b6ce |
| hovercard-subject-tag | issue:5300340998 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3190/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6477eda8893cff75fb050188d5841538601a940d0bca095e65c16b8ed2b41b1f/github/github-mcp-server/issues/3190 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6477eda8893cff75fb050188d5841538601a940d0bca095e65c16b8ed2b41b1f/github/github-mcp-server/issues/3190 |
| og:image:alt | Describe the bug get_pull_request (method get_review_comments, or the equivalent underlying pulls/comments handling) drops the start_line/original_start_line fields for multi-line ("range") review ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fsahmad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width