| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7ae46fa6-4cd0-e09f-944b-36e7fedc314a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9EB2:32DBD9:2EAE3AE:41AF279:6A5F794E |
| html-safe-nonce | bdf69f6752c9304ed4b57e3fa28d05ddb8b5b8be1da4b458ca7b30be8052c624 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUIyOjMyREJEOToyRUFFM0FFOjQxQUYyNzk6NkE1Rjc5NEUiLCJ2aXNpdG9yX2lkIjoiMTQ2ODk5NzQwOTY1MzYxOTAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 10b0c354f14f24891ef0645028f81e56082c66784285f6f79e098866df8deab8 |
| hovercard-subject-tag | pull_request:2481316813 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
| twitter:image | https://avatars.githubusercontent.com/u/61732609?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/61732609?s=400&v=4 |
| og:image:alt | Add an handler for ping request in MCP client
Motivation and Context
According to the spec, the client and server must respond to ping with an empty map.
The server already handles ping requests.
I... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 452de97a03b38f04f76083e607149d32906d2c0b7b8eefeb40f6abb19033123d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 04b6e0d7b342a002446f33418e84ead364c16c2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/java-sdk/pull/203/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fjava-sdk%2Fpull%2F203%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fjava-sdk%2Fpull%2F203%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fjava-sdk |
| Reload | https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
| Reload | https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
| Reload | https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
|
modelcontextprotocol
| https://github.com/modelcontextprotocol |
| java-sdk | https://github.com/modelcontextprotocol/java-sdk |
|
Notifications
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fjava-sdk |
|
Fork
983
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fjava-sdk |
|
Star
3.6k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fjava-sdk |
|
Code
| https://github.com/modelcontextprotocol/java-sdk |
|
Issues
135
| https://github.com/modelcontextprotocol/java-sdk/issues |
|
Pull requests
147
| https://github.com/modelcontextprotocol/java-sdk/pulls |
|
Discussions
| https://github.com/modelcontextprotocol/java-sdk/discussions |
|
Actions
| https://github.com/modelcontextprotocol/java-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/java-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/java-sdk/models |
|
Security and quality
2
| https://github.com/modelcontextprotocol/java-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/java-sdk/pulse |
|
Code
| https://github.com/modelcontextprotocol/java-sdk |
|
Issues
| https://github.com/modelcontextprotocol/java-sdk/issues |
|
Pull requests
| https://github.com/modelcontextprotocol/java-sdk/pulls |
|
Discussions
| https://github.com/modelcontextprotocol/java-sdk/discussions |
|
Actions
| https://github.com/modelcontextprotocol/java-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/java-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/java-sdk/models |
|
Security and quality
| https://github.com/modelcontextprotocol/java-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/java-sdk/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fjava-sdk%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fjava-sdk%2Fissues%2Fnew%2Fchoose |
| OrGivati | https://github.com/OrGivati |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/java-sdk/tree/main |
| OrGivati:handle-ping | https://github.com/OrGivati/java-sdk/tree/handle-ping |
|
Conversation
3
| https://github.com/modelcontextprotocol/java-sdk/pull/203 |
|
Commits
10
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits |
|
Checks
0
| https://github.com/modelcontextprotocol/java-sdk/pull/203/checks |
|
Files changed
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
|
feat(McpAsyncClient): Handle ping request
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#top |
|
Show all changes
10 commits
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
|
6561d16
replace path matching from `getPathInfo` to `getRequestURI`.
OrGivati Mar 24, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/6561d16ebc3fa07b159f5aef3eeb449cb837b667 |
|
9be29fe
Merge remote-tracking branch 'origin/main'
OrGivati Apr 25, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/9be29fe40c9f0b875b318fa5fbe5d3cf1a4fd968 |
|
39b426e
feat(McpAsyncClient): handle ping request
OrGivati Apr 25, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/39b426ebda02b5fcde3d1a03f263b14ebb16b965 |
|
b48b63e
fix styles
OrGivati Apr 25, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/b48b63e41659f14c6f2163ef3b3f0cc3de502715 |
|
e4446c9
add comment
OrGivati Apr 25, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/e4446c97210a9cbcd201fe132d034af19d75a5cf |
|
1925137
fix format
OrGivati Apr 25, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/1925137c2cd54cb70c096900ba1aa2b9f0a2c322 |
|
d121abe
Merge branch 'main' into handle-ping
OrGivati Apr 29, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/d121abe9049809c647adb8c87cc35eac4e425013 |
|
db00a14
Merge branch 'main' into handle-ping
OrGivati May 14, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/db00a1402bacc9e081726ca30930da8cf35c729a |
|
8e44cc3
Merge branch 'main' into handle-ping
OrGivati May 15, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/8e44cc362d20199d31bfbeb08600d077898e17eb |
|
2182aed
Merge branch 'modelcontextprotocol:main' into handle-ping
OrGivati May 18, 2025
| https://github.com/modelcontextprotocol/java-sdk/pull/203/commits/2182aed088e2aca34712a00b02f9cdde967b253b |
|
Clear filters
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
| Please reload this page | https://github.com/modelcontextprotocol/java-sdk/pull/203/files |
|
McpAsyncClient.java
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-31e16deaf3da3266ef0811b072b367a44c30e9c03c9e1fc738de6dc07d22d63d |
|
McpAsyncClientResponseHandlerTests.java
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-81520d07dbdbd984cb73ed7d57bc0f857b9c4d0b8f94cecd3c5d605dffb49033 |
| mcp/src/main/java/io/modelcontextprotocol/client/McpAsyncClient.java | https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-31e16deaf3da3266ef0811b072b367a44c30e9c03c9e1fc738de6dc07d22d63d |
|
View file
| https://github.com/OrGivati/java-sdk/blob/2182aed088e2aca34712a00b02f9cdde967b253b/mcp/src/main/java/io/modelcontextprotocol/client/McpAsyncClient.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/java-sdk/pull/203/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-31e16deaf3da3266ef0811b072b367a44c30e9c03c9e1fc738de6dc07d22d63d |
|
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-31e16deaf3da3266ef0811b072b367a44c30e9c03c9e1fc738de6dc07d22d63d |
|
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-31e16deaf3da3266ef0811b072b367a44c30e9c03c9e1fc738de6dc07d22d63d |
|
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-31e16deaf3da3266ef0811b072b367a44c30e9c03c9e1fc738de6dc07d22d63d |
| mcp/src/test/java/io/modelcontextprotocol/client/McpAsyncClientResponseHandlerTests.java | https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-81520d07dbdbd984cb73ed7d57bc0f857b9c4d0b8f94cecd3c5d605dffb49033 |
|
View file
| https://github.com/OrGivati/java-sdk/blob/2182aed088e2aca34712a00b02f9cdde967b253b/mcp/src/test/java/io/modelcontextprotocol/client/McpAsyncClientResponseHandlerTests.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/java-sdk/pull/203/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/java-sdk/pull/203/files#diff-81520d07dbdbd984cb73ed7d57bc0f857b9c4d0b8f94cecd3c5d605dffb49033 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |