| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:93e1951b-a3ce-208e-2e01-7ece6de8efce |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BBBA:1391E1:65822:8639D:6A59BBC4 |
| html-safe-nonce | 28be918d939e322e44aeee0016822198e53cbc15207006a3bbbe1932d24f6327 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkJBOjEzOTFFMTo2NTgyMjo4NjM5RDo2QTU5QkJDNCIsInZpc2l0b3JfaWQiOiI2Mzk3OTc2MjU4Nzg2NDc0OTQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b59768f3d018333fa9d446bf0598d151a03d009a39a628c4691dd45d6801a1aa |
| hovercard-subject-tag | pull_request:2343436029 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/216/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/a403a6bd6b2703be09bcdefb42fb45e4e4358a72bc1238e453a296677fc1f259/modelcontextprotocol/python-sdk/pull/216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a403a6bd6b2703be09bcdefb42fb45e4e4358a72bc1238e453a296677fc1f259/modelcontextprotocol/python-sdk/pull/216 |
| og:image:alt | Motivation and Context
In the server, it seems like a common case to need to access the raw HTTP headers (think a reverse proxy header, or some custom analytics headers).
Example use case, where we... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abdullahkady |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| 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 | ab680789ae4a316cdaf0d5a292a1760140931cc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/216#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F216 |
| 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 |
| 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%2Fpython-sdk%2Fpull%2F216 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
|
modelcontextprotocol
| https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
|
Notifications
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Fork
3.7k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Star
23.6k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
255
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
303
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
6
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
| abdullahkady | https://github.com/abdullahkady |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| abdullahkady:main | https://github.com/abdullahkady/python-sdk/tree/main |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| Commits4 (4) | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/216/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/216/files |
| enable http headers in sse in the context | https://github.com/modelcontextprotocol/python-sdk/pull/216#top |
| abdullahkady | https://github.com/abdullahkady |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| abdullahkady:main | https://github.com/abdullahkady/python-sdk/tree/main |
|
| https://github.com/abdullahkady |
| abdullahkady | https://github.com/abdullahkady |
| Feb 19, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#issue-2861972038 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| MCP Documentation | https://modelcontextprotocol.io |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| abdullahkady | https://github.com/abdullahkady |
| February 18, 2025 19:45 | https://github.com/modelcontextprotocol/python-sdk/pull/216#commits-pushed-144db31 |
|
| https://github.com/abdullahkady |
| enable http headers in sse in the context | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/144db31f492677e966582a33a0cbfd1dcd50a407 |
| 144db31 | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/144db31f492677e966582a33a0cbfd1dcd50a407 |
|
| https://github.com/abdullahkady |
| add todo comment | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/e402103483fcfa403b413e8c4d319408d400fa26 |
| e402103 | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/e402103483fcfa403b413e8c4d319408d400fa26 |
| https://github.com/dsp-ant |
| dsp-ant | https://github.com/dsp-ant |
| dsp-ant | https://github.com/dsp-ant |
| jerome3o-anthropic | https://github.com/jerome3o-anthropic |
| jspahrsummers | https://github.com/jspahrsummers |
| February 19, 2025 14:38 | https://github.com/modelcontextprotocol/python-sdk/pull/216#event-16366800212 |
| https://github.com/dsp-ant |
| dsp-ant | https://github.com/dsp-ant |
|
Feb 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/216#pullrequestreview-2627049242 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/216/files/e402103483fcfa403b413e8c4d319408d400fa26 |
| dsp-ant | https://github.com/dsp-ant |
| https://github.com/modelcontextprotocol/python-sdk/pull/216#pullrequestreview-2627049242 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| src/mcp/types.py | https://github.com/modelcontextprotocol/python-sdk/pull/216/files/e402103483fcfa403b413e8c4d319408d400fa26#diff-9b043ee327a542607e73b38ebb19c77049650efbe3a1f9d5891b0f8af09599ae |
| dsp-ant | https://github.com/dsp-ant |
| Feb 19, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#discussion_r1961817795 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| schema.ts | https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.ts |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| abdullahkady | https://github.com/abdullahkady |
| Feb 20, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#discussion_r1963822918 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @dsp-ant | https://github.com/dsp-ant |
| through the streams | https://github.com/abdullahkady/python-sdk/blob/144db31f492677e966582a33a0cbfd1dcd50a407/src/mcp/server/sse.py#L176 |
| params | https://github.com/abdullahkady/python-sdk/blob/b6e45768f2a9764a4f91e4c1d19d7cb0272daeca/src/mcp/types.py#L121 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| abdullahkady | https://github.com/abdullahkady |
| Mar 17, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#discussion_r1999704323 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @dsp-ant | https://github.com/dsp-ant |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| src/mcp/server/lowlevel/server.py | https://github.com/modelcontextprotocol/python-sdk/pull/216/files/e402103483fcfa403b413e8c4d319408d400fa26#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4 |
| dsp-ant | https://github.com/dsp-ant |
| Feb 19, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#discussion_r1961821737 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
|
| https://github.com/abdullahkady |
| type instead of try/except | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/b6e45768f2a9764a4f91e4c1d19d7cb0272daeca |
| b6e4576 | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/b6e45768f2a9764a4f91e4c1d19d7cb0272daeca |
| https://github.com/abdullahkady |
| abdullahkady | https://github.com/abdullahkady |
| February 19, 2025 15:50 | https://github.com/modelcontextprotocol/python-sdk/pull/216#event-16367951913 |
| https://github.com/abdullahkady |
| abdullahkady | https://github.com/abdullahkady |
| dsp-ant | https://github.com/dsp-ant |
| February 20, 2025 16:11 | https://github.com/modelcontextprotocol/python-sdk/pull/216#event-16385206316 |
| https://github.com/abdullahkady |
| abdullahkady | https://github.com/abdullahkady |
| February 21, 2025 16:53 | https://github.com/modelcontextprotocol/python-sdk/pull/216#event-16404015335 |
|
| https://github.com/abdullahkady |
| Merge branch 'main' into main | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/1f146f64b4f2106d2355d94049140f2ea4fb12fb |
| 1f146f6 | https://github.com/modelcontextprotocol/python-sdk/pull/216/commits/1f146f64b4f2106d2355d94049140f2ea4fb12fb |
| https://github.com/dsp-ant |
| dsp-ant | https://github.com/dsp-ant |
| stale review | https://github.com/modelcontextprotocol/python-sdk/pull/216#pullrequestreview-2627049242 |
| February 24, 2025 21:30 | https://github.com/modelcontextprotocol/python-sdk/pull/216#event-16438152284 |
| https://github.com/dsp-ant |
| dsp-ant | https://github.com/dsp-ant |
| Feb 26, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#issuecomment-2684742224 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| https://github.com/gdoctor |
| gdoctor | https://github.com/gdoctor |
| Mar 21, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#issuecomment-2744041206 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| https://github.com/vivek-athina |
| vivek-athina | https://github.com/vivek-athina |
| Mar 25, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#issuecomment-2750324468 |
| @dsp-ant | https://github.com/dsp-ant |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| https://github.com/lochiiconnectivity |
| lochiiconnectivity | https://github.com/lochiiconnectivity |
|
Apr 14, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/216#ref-issue-2994229970 |
|
Support HTTP Headers in SSE Context
PrefectHQ/fastmcp#157
| https://github.com/PrefectHQ/fastmcp/issues/157 |
| https://github.com/ZAKLLL |
| ZAKLLL | https://github.com/ZAKLLL |
| Apr 24, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#issuecomment-2826260953 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| https://github.com/sidey |
| sidey | https://github.com/sidey |
| May 10, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#issuecomment-2869085129 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| @dsp-ant | https://github.com/dsp-ant |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
|
May 13, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/216#ref-pullrequest-2951878480 |
|
Added support for raw request injection in RequestContext.
#380
| https://github.com/modelcontextprotocol/python-sdk/pull/380 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
| r-05-25 | https://github.com/modelcontextprotocol/python-sdk/milestone/7 |
| May 13, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#event-17637407097 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
| May 28, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#issuecomment-2916674667 |
| #816 | https://github.com/modelcontextprotocol/python-sdk/pull/816 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
| May 28, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/216#event-17852939530 |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F216 |
|
| https://github.com/jerome3o-anthropic |
|
jerome3o-anthropic
| https://github.com/jerome3o-anthropic |
|
| https://github.com/jspahrsummers |
|
jspahrsummers
| https://github.com/jspahrsummers |
|
| https://github.com/dsp-ant |
|
dsp-ant
| https://github.com/dsp-ant |
|
r-05-25
| https://github.com/modelcontextprotocol/python-sdk/milestone/7 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/216 |
|
| https://github.com/abdullahkady |
|
| https://github.com/dsp-ant |
|
| https://github.com/gdoctor |
|
| https://github.com/vivek-athina |
|
| https://github.com/ZAKLLL |
|
| https://github.com/sidey |
|
| https://github.com/ihrpr |
|
| 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 |