René's URL Explorer Experiment


Title: Surface the JSON-RPC envelope in WithMCPParse for method-less messages so consumers need not re-read the body · Issue #3122 · github/github-mcp-server · GitHub

Open Graph Title: Surface the JSON-RPC envelope in WithMCPParse for method-less messages so consumers need not re-read the body · Issue #3122 · github/github-mcp-server

X Title: Surface the JSON-RPC envelope in WithMCPParse for method-less messages so consumers need not re-read the body · Issue #3122 · github/github-mcp-server

Description: Problem WithMCPParse returns early when the parsed message has no method: // Skip if not a valid JSON-RPC 2.0 request if mcpReq.JSONRPC != "2.0" || mcpReq.Method == "" { next.ServeHTTP(w, r) return } That is precisely the shape of a JSON...

Open Graph Description: Problem WithMCPParse returns early when the parsed message has no method: // Skip if not a valid JSON-RPC 2.0 request if mcpReq.JSONRPC != "2.0" || mcpReq.Method == "" { next.ServeHTTP(w, r) return...

X Description: Problem WithMCPParse returns early when the parsed message has no method: // Skip if not a valid JSON-RPC 2.0 request if mcpReq.JSONRPC != "2.0" || mcpReq.Method == "" { next.Se...

Opengraph URL: https://github.com/github/github-mcp-server/issues/3122

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Surface the JSON-RPC envelope in WithMCPParse for method-less messages so consumers need not re-read the body","articleBody":"## Problem\n\n`WithMCPParse` returns early when the parsed message has no `method`:\n\n```go\n// Skip if not a valid JSON-RPC 2.0 request\nif mcpReq.JSONRPC != \"2.0\" || mcpReq.Method == \"\" {\n    next.ServeHTTP(w, r)\n    return\n}\n```\n\nThat is precisely the shape of a JSON-RPC *response*, including the ping/heartbeat responses clients send back (`{\"jsonrpc\":\"2.0\",\"id\":42,\"result\":{}}`). For those, `MCPMethodInfo` is never populated, and a consumer cannot distinguish \"not parsed because it was a response\" from \"not parsed because it was malformed or non-MCP\".\n\n## Why this matters downstream\n\nIn `github/github-mcp-server-remote`, `requestctx.WithHandler` needs to know whether a request is a heartbeat (it is used to suppress log noise for pings). Because the parsed metadata cannot express that, it has to read and decode the body itself, independently of `WithMCPParse`.\n\nThat was the root of github/github-mcp-server-remote#938: two middleware each did `io.ReadAll` on the same body before any size limit applied. We fixed the memory amplification in github/github-mcp-server-remote#939 by enforcing the limit at the edge and bounding heartbeat detection to a 4 KiB prefix, but the duplicate read is still there in reduced form — every POST pays a bounded copy plus a `json.Unmarshal` that `WithMCPParse` is about to repeat a moment later.\n\nWe deliberately did not work around it downstream. The only in-repo option was a substring pre-filter before the unmarshal, which is not strictly semantics-preserving (a client escaping the key as `\"\\u0072esult\"` would change the result), so we left the read in place rather than take that risk.\n\n## Suggested change\n\nSurface the JSON-RPC envelope even when `method` is empty, so consumers can classify responses without re-reading the body. For example, keep the existing early return for genuinely non-MCP payloads but still record the envelope when `jsonrpc == \"2.0\"`:\n\n- add `ID` and a `Result` presence flag (or an `IsResponse bool`) to `MCPMethodInfo`, and\n- populate `MCPMethodInfo` for `jsonrpc == \"2.0\"` messages with an empty `method`, leaving `Method` empty as it is today.\n\nExisting consumers that switch on `Method` are unaffected, since the field keeps its current value.\n\n## Payoff\n\n`requestctx.WithHandler` could then move below `WithMCPParse` and read nothing at all: heartbeat classification would come from already-parsed metadata. That removes the last duplicate body read on the remote hot path (~1,250 RPS on 1 CPU / 1 GiB pods).\n\nHappy to send the PR if the shape sounds right.\n\n## References\n\n- github/github-mcp-server-remote#938 — original issue\n- github/github-mcp-server-remote#939 — remote-side fix, which documents this as the remaining follow-up\n- github/github-mcp-server#3111 — the upstream body-limit work this builds on","author":{"url":"https://github.com/SamMorrowDrums","@type":"Person","name":"SamMorrowDrums"},"datePublished":"2026-08-19T14:49:28Z","url":"https://github.com/github/github-mcp-server/issues/3122"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:15d680d2-d993-77c0-bbbd-6c8b381ddf5b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF8E:17E9B8:45A2DC:5F1DCA:6B068592
html-safe-nonced0f095c8e8e5cc7d70cf3bc0b4a515de6d5606edce325368365232ce430ac340
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjhFOjE3RTlCODo0NUEyREM6NUYxRENBOjZCMDY4NTkyIiwidmlzaXRvcl9pZCI6IjIyMTI4MzAwMzY5ODA2NzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac11e36f7beb9073680f4658df9e3cf389ba96119ab4e6b33bd32ec5ee92e99480
hovercard-subject-tagissue:5193952582
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3122/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b9d47d04c78f977efddf4cdd0cb5e172f0e297b85c579271f095b658b04490d9/github/github-mcp-server/issues/3122
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b9d47d04c78f977efddf4cdd0cb5e172f0e297b85c579271f095b658b04490d9/github/github-mcp-server/issues/3122
og:image:altProblem WithMCPParse returns early when the parsed message has no method: // Skip if not a valid JSON-RPC 2.0 request if mcpReq.JSONRPC != "2.0" || mcpReq.Method == "" { next.ServeHTTP(w, r) return...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSamMorrowDrums
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/3122#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3122
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3122
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/3122
Reloadhttps://github.com/github/github-mcp-server/issues/3122
Reloadhttps://github.com/github/github-mcp-server/issues/3122
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues238 (238)https://github.com/github/github-mcp-server/issues
Pull requests228 (228)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
https://github.com/github/github-mcp-server
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3122
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3122
Surface the JSON-RPC envelope in WithMCPParse for method-less messages so consumers need not re-read the bodyhttps://github.com/github/github-mcp-server/issues/3122#top
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Aug 19, 2026https://github.com/github/github-mcp-server/issues/3122#issue-5193952582
Limit HTTP request bodies before MCP middleware parsing #3111https://github.com/github/github-mcp-server/pull/3111
github-actionshttps://github.com/apps/github-actions
request ai reviewhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22request%20ai%20review%22
request ai reviewhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22request%20ai%20review%22
on Aug 19, 2026https://github.com/github/github-mcp-server/issues/3122#event-29689255158
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Aug 19, 2026https://github.com/github/github-mcp-server/issues/3122#issuecomment-5343949274
SamMorrowDrumshttps://github.com/SamMorrowDrums
not plannedhttps://github.com/github/github-mcp-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 22, 2026https://github.com/github/github-mcp-server/issues/3122#event-29848338604
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/github-mcp-server/issues/3122
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3122
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.