Title: Request Headers in Tools · Issue #453 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Request Headers in Tools · Issue #453 · modelcontextprotocol/python-sdk
X Title: Request Headers in Tools · Issue #453 · modelcontextprotocol/python-sdk
Description: Hey, thanks for the SDK! Is it possible to read the headers of the request being sent to call a tool? The client is passing in some headers that I can use to auth. I've looked through the Context class and can't find where request header...
Open Graph Description: Hey, thanks for the SDK! Is it possible to read the headers of the request being sent to call a tool? The client is passing in some headers that I can use to auth. I've looked through the Context c...
X Description: Hey, thanks for the SDK! Is it possible to read the headers of the request being sent to call a tool? The client is passing in some headers that I can use to auth. I've looked through the Conte...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/453
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request Headers in Tools","articleBody":"Hey, thanks for the SDK!\n\nIs it possible to read the headers of the request being sent to call a tool? The client is passing in some headers that I can use to auth. I've looked through the Context class and can't find where request headers are located.\n\nSo, any pointers to how I can do this would be appreciated!","author":{"url":"https://github.com/wbeard","@type":"Person","name":"wbeard"},"datePublished":"2025-04-08T06:33:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/453/python-sdk/issues/453"}
| 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:30319db3-8db0-c194-b795-aea95a7e3964 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC7C:1B6875:12D4C14:193CF09:6A5AB27C |
| html-safe-nonce | 92081c60c5bb811b9f3b90e953f44b69319d897311628c2ef4f735c9890f2f78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzdDOjFCNjg3NToxMkQ0QzE0OjE5M0NGMDk6NkE1QUIyN0MiLCJ2aXNpdG9yX2lkIjoiODg3NjA4NzM1NjgxNjAxMTkwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7e11688642b000f50443f3ea36e521a376084e2a2066eeccc21e0fc11c596bdb |
| hovercard-subject-tag | issue:2978746060 |
| 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/modelcontextprotocol/python-sdk/453/issue_layout |
| twitter:image | https://opengraph.githubassets.com/548fe82504ea893ba0bd2e583cbdd4f24bc46367df802317b099d1ded70cf3ba/modelcontextprotocol/python-sdk/issues/453 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/548fe82504ea893ba0bd2e583cbdd4f24bc46367df802317b099d1ded70cf3ba/modelcontextprotocol/python-sdk/issues/453 |
| og:image:alt | Hey, thanks for the SDK! Is it possible to read the headers of the request being sent to call a tool? The client is passing in some headers that I can use to auth. I've looked through the Context c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wbeard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 21c53da6db0c40484841ba32fe19ecf485e7e734334faab487cd59d884d2bb33 |
| turbo-cache-control | no-preview |
| 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 | 6e85f20f54e1147d8162094880590864abefff6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width