Title: Long URL in an issue/PR body is stored wrapped in a code span, breaking the link · Issue #3299 · github/github-mcp-server · GitHub
Open Graph Title: Long URL in an issue/PR body is stored wrapped in a code span, breaking the link · Issue #3299 · github/github-mcp-server
X Title: Long URL in an issue/PR body is stored wrapped in a code span, breaking the link · Issue #3299 · github/github-mcp-server
Description: A URL of 104 characters or more, written into an issue body or pull request description through the MCP, is stored wrapped in a double-backtick code span. At 103 characters and below it stores verbatim. The link is then broken on GitHub ...
Open Graph Description: A URL of 104 characters or more, written into an issue body or pull request description through the MCP, is stored wrapped in a double-backtick code span. At 103 characters and below it stores verb...
X Description: A URL of 104 characters or more, written into an issue body or pull request description through the MCP, is stored wrapped in a double-backtick code span. At 103 characters and below it stores verb...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3299
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Long URL in an issue/PR body is stored wrapped in a code span, breaking the link","articleBody":"A URL of **104 characters or more**, written into an issue body or pull request description through the MCP, is stored wrapped in a double-backtick code span. At 103 characters and below it stores verbatim.\n\nThe link is then broken on GitHub itself, not only in a read-back through the server — the rendered page shows a code span where the link should be.\n\n## Reproduction\n\nWrite a body containing a markdown link whose destination is 104 characters or longer, then read the stored body back through the REST API, so that the read path is not part of the picture.\n\nSent:\n\n```\n[link](https://example.com/T104-0123456789012345678901234567890123456789012345678901234567890123456789012345678)\n```\n\nStored:\n\n```\n[link](``https://example.com/T104-0123456789012345678901234567890123456789012345678901234567890123456789012345678``)\n```\n\nThe same URL one character shorter stores untouched:\n\n```\n[link](https://example.com/T104-012345678901234567890123456789012345678901234567890123456789012345678901234567)\n```\n\n## What I varied\n\nStepping the length by twos, then by ones across the boundary ([reproduction](https://github.com/flungo/github-workflows/issues/51)):\n\n| Variable | Result |\n| --- | --- |\n| Length | **104 is the boundary** — 96, 98, 100, 101, 102 and 103 store clean; 104, 106, 108, 128, 148, 168 and 188 all wrapped |\n| Host | Irrelevant — `example.com` at 184 wraps exactly as `docs.github.com` does, and short non-GitHub URLs are untouched |\n| Construct | Irrelevant — markdown link destination, bare URL and autolink all wrap; an autolink's `\u003c` and `>` are additionally escaped to entities |\n| Write tool | Both — `issue_write` and `update_pull_request` behave alike |\n\nWhere the closing backticks land varies with length: inside the link's parentheses around 104 to 130, and outside them, swallowing the `)`, from about 148 up.\n\nOne consequence worth noting: because the behaviour applies to a bare URL as well as a link destination, an MCP client cannot post this report with a working example in it — the example is corrupted by the behaviour being reported. This body was pasted by hand for that reason.\n\n## Not the same as #3165\n\nThat one is a read-modify-write persisting a lossy read, and states that a fresh write does not trigger it. Here the body is composed fresh and never read first, and there is a clear length threshold, neither of which that issue describes.\n\nIt may be a side effect of the newer body-filtering work (#3035, #3177) preserving a long token by wrapping it rather than deleting it, but I have not verified that and cannot tell which server version served these calls.\n\nObserved 2026-09-17 through the remote MCP endpoint, driven from Claude Code.","author":{"url":"https://github.com/flungo","@type":"Person","name":"flungo"},"datePublished":"2026-09-17T09:28:17Z","url":"https://github.com/github/github-mcp-server/issues/3299"}
| 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:0afc2861-ea0c-f8c4-ee50-63b2ae649e5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A422:104E74:93AC56:CA83CA:6B0693C1 |
| html-safe-nonce | 67aea3c6b72e386fe502ef67763e5cfb6911cb06744efd63e0107cba8a6cfc82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDIyOjEwNEU3NDo5M0FDNTY6Q0E4M0NBOjZCMDY5M0MxIiwidmlzaXRvcl9pZCI6IjU3ODU2MzE2NTE3MzY3NTMwODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb2b41ee6f282f76b99b52a789e837164290cc6b7f077f8c948fa7ccb1a8a3d1 |
| hovercard-subject-tag | issue:5485512971 |
| 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/3299/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f045be71b9b81177c2ab35ce60576f4d6ed1b5c3ac6deb8213dcdbc8b740867/github/github-mcp-server/issues/3299 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f045be71b9b81177c2ab35ce60576f4d6ed1b5c3ac6deb8213dcdbc8b740867/github/github-mcp-server/issues/3299 |
| og:image:alt | A URL of 104 characters or more, written into an issue body or pull request description through the MCP, is stored wrapped in a double-backtick code span. At 103 characters and below it stores verb... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flungo |
| 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 | full |
| 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