René's URL Explorer Experiment


Title: [Server] Handle malformed JSON-RPC input graceful by chr-hertel · Pull Request #412 · modelcontextprotocol/php-sdk · GitHub

Open Graph Title: [Server] Handle malformed JSON-RPC input graceful by chr-hertel · Pull Request #412 · modelcontextprotocol/php-sdk

X Title: [Server] Handle malformed JSON-RPC input graceful by chr-hertel · Pull Request #412 · modelcontextprotocol/php-sdk

Description: The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation. - [Server] Handle malformed JSON-RPC input graceful by chr-hertel · Pull Request #412 · modelcontextprotocol/php-sdk

Open Graph Description: Malformed input could fail with a PHP TypeError/ValueError instead of an InvalidInputMessageException. Those escape every catch on the way out — MessageFactory, Protocol::processInput(), BaseTransp...

X Description: Malformed input could fail with a PHP TypeError/ValueError instead of an InvalidInputMessageException. Those escape every catch on the way out — MessageFactory, Protocol::processInput(), BaseTransp...

Opengraph URL: https://github.com/modelcontextprotocol/php-sdk/pull/412

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a291eea0-459a-9914-6c4d-f21ca0f42ef3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC160:2BB16:296187F:36E3E28:6B06B9A1
html-safe-nonce522c14125a2ff70fbe06db36044d8315bb0722807bc1b8233a4557217eb40bf8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTYwOjJCQjE2OjI5NjE4N0Y6MzZFM0UyODo2QjA2QjlBMSIsInZpc2l0b3JfaWQiOiI2MzQxNzAwNTQzNTYzODcyNjczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3ceb839c07804a244c07e8bceedaa7a64fa891e6c672e582bc1d86d6755133d6
hovercard-subject-tagpull_request:4248557552
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/php-sdk/412/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0f17a5f5b70499555fa20e6dc9005278b22aa5b87fa7f839ea764996581f8240/modelcontextprotocol/php-sdk/pull/412
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0f17a5f5b70499555fa20e6dc9005278b22aa5b87fa7f839ea764996581f8240/modelcontextprotocol/php-sdk/pull/412
og:image:altMalformed input could fail with a PHP TypeError/ValueError instead of an InvalidInputMessageException. Those escape every catch on the way out — MessageFactory, Protocol::processInput(), BaseTransp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechr-hertel
hostnamegithub.com
expected-hostnamegithub.com
None32031aaff792fa7ad778f7418e1fbfc0d525a5779804329b769aa75230448a18
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/php-sdk git https://github.com/modelcontextprotocol/php-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id1020454748
octolytics-dimension-repository_nwomodelcontextprotocol/php-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1020454748
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/php-sdk
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
release37014d914b7d14eede971655595f687a0202af40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/php-sdk/pull/412#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fphp-sdk%2Fpull%2F412
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%2Fmodelcontextprotocol%2Fphp-sdk%2Fpull%2F412
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fphp-sdk
Reloadhttps://github.com/modelcontextprotocol/php-sdk/pull/412
Reloadhttps://github.com/modelcontextprotocol/php-sdk/pull/412
Reloadhttps://github.com/modelcontextprotocol/php-sdk/pull/412
modelcontextprotocolhttps://github.com/modelcontextprotocol
php-sdkhttps://github.com/modelcontextprotocol/php-sdk
Codehttps://github.com/modelcontextprotocol/php-sdk
Issues31 (31)https://github.com/modelcontextprotocol/php-sdk/issues
Pull requests28 (28)https://github.com/modelcontextprotocol/php-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/php-sdk/actions
Projectshttps://github.com/modelcontextprotocol/php-sdk/projects
Security and quality2 (2)https://github.com/modelcontextprotocol/php-sdk/security
Insightshttps://github.com/modelcontextprotocol/php-sdk/insights
https://github.com/modelcontextprotocol/php-sdk
chr-hertelhttps://github.com/chr-hertel
mainhttps://github.com/modelcontextprotocol/php-sdk/tree/main
fix/malformed-input-hardeninghttps://github.com/modelcontextprotocol/php-sdk/tree/fix/malformed-input-hardening
Conversationhttps://github.com/modelcontextprotocol/php-sdk/pull/412
Commits3 (3)https://github.com/modelcontextprotocol/php-sdk/pull/412/commits
Checkshttps://github.com/modelcontextprotocol/php-sdk/pull/412/checks
Files changedhttps://github.com/modelcontextprotocol/php-sdk/pull/412/files
[Server] Handle malformed JSON-RPC input gracefulhttps://github.com/modelcontextprotocol/php-sdk/pull/412#top
chr-hertelhttps://github.com/chr-hertel
mainhttps://github.com/modelcontextprotocol/php-sdk/tree/main
fix/malformed-input-hardeninghttps://github.com/modelcontextprotocol/php-sdk/tree/fix/malformed-input-hardening
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
Aug 10, 2026https://github.com/modelcontextprotocol/php-sdk/pull/412#issue-5114699982
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
@nickelsechttps://github.com/nickelsec
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
CodeWithKyrianhttps://github.com/CodeWithKyrian
Nyholmhttps://github.com/Nyholm
soyukahttps://github.com/soyuka
code ownershttps://github.com/modelcontextprotocol/php-sdk/blob/785fc3b9b7006ecc8a73322c939d96a4a7154345/.github/CODEOWNERS#L1
August 10, 2026 21:58https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29248826383
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
bug https://github.com/modelcontextprotocol/php-sdk/issues?q=state%3Aopen%20label%3Abug
Server https://github.com/modelcontextprotocol/php-sdk/issues?q=state%3Aopen%20label%3AServer
Aug 10, 2026https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29248983243
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
Aug 10, 2026https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29248989782
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
force-pushedhttps://github.com/modelcontextprotocol/php-sdk/compare/c3fbec1c8a6d2a0d084d824da0f4116fb03fe0da..60208a4f6961c3c624c5d02f3fe6389163d4973a
c3fbec1https://github.com/modelcontextprotocol/php-sdk/commit/c3fbec1c8a6d2a0d084d824da0f4116fb03fe0da
60208a4https://github.com/modelcontextprotocol/php-sdk/commit/60208a4f6961c3c624c5d02f3fe6389163d4973a
Compare https://github.com/modelcontextprotocol/php-sdk/compare/c3fbec1c8a6d2a0d084d824da0f4116fb03fe0da..60208a4f6961c3c624c5d02f3fe6389163d4973a
August 10, 2026 22:22https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29249640816
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
Copilothttps://github.com/apps/copilot-pull-request-reviewer
August 10, 2026 22:35https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29250053426
started reviewinghttps://github.com/modelcontextprotocol/php-sdk/sessions/815d0c74-4022-4b22-ab21-02318788bb2c
chr-hertelhttps://github.com/chr-hertel
August 10, 2026 22:35https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29250071160
View session https://github.com/modelcontextprotocol/php-sdk/sessions/815d0c74-4022-4b22-ab21-02318788bb2c
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Aug 10, 2026 https://github.com/modelcontextprotocol/php-sdk/pull/412#pullrequestreview-4901500374
View reviewed changes https://github.com/modelcontextprotocol/php-sdk/pull/412/files
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/modelcontextprotocol/php-sdk/pull/412#pullrequestreview-4901500374
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Add a code-review agent skillhttps://github.com/modelcontextprotocol/php-sdk/new/main?filename=.github/skills/code-review/SKILL.md
Learn more in the docs.https://docs.github.com/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review#mcp-servers-and-agent-skills
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
src/Server/Protocol.phphttps://github.com/modelcontextprotocol/php-sdk/pull/412/files#diff-ca3ca0162190aac1f4e7320aeaae5444c03de92468052acaade941e091cd4c32
chr-hertelhttps://github.com/chr-hertel
Aug 11, 2026https://github.com/modelcontextprotocol/php-sdk/pull/412#discussion_r3754368967
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
src/Server/Protocol.phphttps://github.com/modelcontextprotocol/php-sdk/pull/412/files#diff-ca3ca0162190aac1f4e7320aeaae5444c03de92468052acaade941e091cd4c32
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
src/Server/Protocol.phphttps://github.com/modelcontextprotocol/php-sdk/pull/412/files#diff-ca3ca0162190aac1f4e7320aeaae5444c03de92468052acaade941e091cd4c32
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
src/Schema/Request/CreateSamplingMessageRequest.phphttps://github.com/modelcontextprotocol/php-sdk/pull/412/files#diff-43e8896fbc97b18d86e9adea9e6b4afedda74b3aff267f65ee0ab766472a8071
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
src/Schema/ModelPreferences.phphttps://github.com/modelcontextprotocol/php-sdk/pull/412/files#diff-5d88b2cb7fa5f2915f1fecf95f35ac1a071ed6d4a281d9566b4a94200933a8e4
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
0.8.0https://github.com/modelcontextprotocol/php-sdk/milestone/8
Aug 10, 2026https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29251965886
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
force-pushedhttps://github.com/modelcontextprotocol/php-sdk/compare/60208a4f6961c3c624c5d02f3fe6389163d4973a..07c6e0d41ae5b3bfb6b7d574d318c3c0f687ae4e
60208a4https://github.com/modelcontextprotocol/php-sdk/commit/60208a4f6961c3c624c5d02f3fe6389163d4973a
07c6e0dhttps://github.com/modelcontextprotocol/php-sdk/commit/07c6e0d41ae5b3bfb6b7d574d318c3c0f687ae4e
Compare https://github.com/modelcontextprotocol/php-sdk/compare/60208a4f6961c3c624c5d02f3fe6389163d4973a..07c6e0d41ae5b3bfb6b7d574d318c3c0f687ae4e
August 10, 2026 23:50https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29252325845
chr-hertelhttps://github.com/chr-hertel
August 11, 2026 01:58https://github.com/modelcontextprotocol/php-sdk/pull/412#commits-pushed-31f56dd
https://github.com/chr-hertel
Never let a throwable escape Protocol::processInput()https://github.com/modelcontextprotocol/php-sdk/pull/412/commits/31f56dd5ce763f6542b3a146480819c4e41eaa23
31f56ddhttps://github.com/modelcontextprotocol/php-sdk/pull/412/commits/31f56dd5ce763f6542b3a146480819c4e41eaa23
https://github.com/chr-hertel
Validate payload types in the schema hydration methodshttps://github.com/modelcontextprotocol/php-sdk/pull/412/commits/8ad14b31bdfe2b83d28923ff3d9ef35695f7b3d0
8ad14b3https://github.com/modelcontextprotocol/php-sdk/pull/412/commits/8ad14b31bdfe2b83d28923ff3d9ef35695f7b3d0
https://github.com/chr-hertel
Stop leaking handler exception messages to the clienthttps://github.com/modelcontextprotocol/php-sdk/pull/412/commits/e44dcf9c5204be2bc38df26ed4f03b9e9ac62d72
e44dcf9https://github.com/modelcontextprotocol/php-sdk/pull/412/commits/e44dcf9c5204be2bc38df26ed4f03b9e9ac62d72
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
force-pushedhttps://github.com/modelcontextprotocol/php-sdk/compare/07c6e0d41ae5b3bfb6b7d574d318c3c0f687ae4e..e44dcf9c5204be2bc38df26ed4f03b9e9ac62d72
07c6e0dhttps://github.com/modelcontextprotocol/php-sdk/commit/07c6e0d41ae5b3bfb6b7d574d318c3c0f687ae4e
e44dcf9https://github.com/modelcontextprotocol/php-sdk/commit/e44dcf9c5204be2bc38df26ed4f03b9e9ac62d72
Compare https://github.com/modelcontextprotocol/php-sdk/compare/07c6e0d41ae5b3bfb6b7d574d318c3c0f687ae4e..e44dcf9c5204be2bc38df26ed4f03b9e9ac62d72
August 10, 2026 23:59https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29252560891
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
enhancement https://github.com/modelcontextprotocol/php-sdk/issues?q=state%3Aopen%20label%3Aenhancement
Aug 11, 2026https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29252900691
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
c8ed07bhttps://github.com/modelcontextprotocol/php-sdk/commit/c8ed07bba251ec3748f548773bfb47280092fa42
Aug 14, 2026https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29479681034
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
https://github.com/chr-hertel
chr-hertelhttps://github.com/chr-hertel
August 14, 2026 20:34https://github.com/modelcontextprotocol/php-sdk/pull/412#event-29479682926
https://github.com/mglaman
mglamanhttps://github.com/mglaman
Sep 23, 2026 https://github.com/modelcontextprotocol/php-sdk/pull/412#ref-issue-5554944258
[Server] Allow a RequestEvent listener to reject a request with a JSON-RPC error #513 https://github.com/modelcontextprotocol/php-sdk/issues/513
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/php-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fphp-sdk%2Fpull%2F412
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
https://github.com/modelcontextprotocol/php-sdk/pull/412/files/60208a4f6961c3c624c5d02f3fe6389163d4973a
https://github.com/Nyholm
Nyholm https://github.com/Nyholm
https://github.com/CodeWithKyrian
CodeWithKyrian https://github.com/CodeWithKyrian
https://github.com/soyuka
soyuka https://github.com/soyuka
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
bug https://github.com/modelcontextprotocol/php-sdk/issues?q=state%3Aopen%20label%3Abug
enhancement https://github.com/modelcontextprotocol/php-sdk/issues?q=state%3Aopen%20label%3Aenhancement
Server https://github.com/modelcontextprotocol/php-sdk/issues?q=state%3Aopen%20label%3AServer
0.8.0 https://github.com/modelcontextprotocol/php-sdk/milestone/8
Please reload this pagehttps://github.com/modelcontextprotocol/php-sdk/pull/412
https://github.com/chr-hertel
https://github.com/apps/copilot-pull-request-reviewer
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.