Title: HTTP standard headers + x-mcp-header · Issue #2900 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: HTTP standard headers + x-mcp-header · Issue #2900 · modelcontextprotocol/python-sdk
X Title: HTTP standard headers + x-mcp-header · Issue #2900 · modelcontextprotocol/python-sdk
Description: Tracks: #2715 The shared encode/decode and x-mcp-header rule helpers used by both sides; server-side validation of inbound headers vs body. What's in it Encode/decode helpers for Mcp-Method/Mcp-Name/Mcp-Param-* (base64-sentinel, the x-mc...
Open Graph Description: Tracks: #2715 The shared encode/decode and x-mcp-header rule helpers used by both sides; server-side validation of inbound headers vs body. What's in it Encode/decode helpers for Mcp-Method/Mcp-Nam...
X Description: Tracks: #2715 The shared encode/decode and x-mcp-header rule helpers used by both sides; server-side validation of inbound headers vs body. What's in it Encode/decode helpers for Mcp-Method/Mcp...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/2900
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"HTTP standard headers + x-mcp-header","articleBody":"Tracks: #2715\n\nThe shared encode/decode and `x-mcp-header` rule helpers used by both sides; server-side validation of inbound headers vs body.\n\n## What's in it\n\n- Encode/decode helpers for `Mcp-Method`/`Mcp-Name`/`Mcp-Param-*` (base64-sentinel, the `x-mcp-header` constraint rules).\n- Server: validate inbound headers vs body, reject mismatches — wired in by #2893.\n- Client emit is owned by #2894 (consumes these helpers).\n\n## Conformance\n\n- (helpers — scenarios are owned by _New HTTP serving path (modern + dual-era)_ server-side and _New Client (all-versions, low-level + high-level)_ client-side)\n- Together with #2893: `http-header-validation`, `http-custom-header-server-validation`\n- Together with #2894: `http-custom-headers`, `http-invalid-tool-headers`, `http-standard-headers`\n\n## Dependencies\n\n- Depends on: #2893\n\n## References\n\n- [Transports — headers](https://modelcontextprotocol.io/specification/draft/basic/transports/streamable-http#request-metadata)\n- [SEP-2243](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2243)\n- [sep-2243.yaml](https://github.com/modelcontextprotocol/conformance/blob/main/src/seps/sep-2243.yaml)\n- [python-sdk #2715](https://github.com/modelcontextprotocol/python-sdk/issues/2715)\n","author":{"url":"https://github.com/maxisbey","@type":"Person","name":"maxisbey"},"datePublished":"2026-06-17T11:12:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2900/python-sdk/issues/2900"}
| 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:2756d2a3-7d2f-1aa2-3903-6846856eb382 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB6A:2A34A:EEEEBA:15830F5:6A589D74 |
| html-safe-nonce | 781145339b6ae495b2b3bf9b14b311ef9637d45d578f0c64d7afa8ad4dde4dee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjZBOjJBMzRBOkVFRUVCQToxNTgzMEY1OjZBNTg5RDc0IiwidmlzaXRvcl9pZCI6IjY4NjkxNDAyODYwNjg4OTMzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a2710e65c672e4f432244a9f6649f731bad6bb9839fb8687a1f882ca3130aa1b |
| hovercard-subject-tag | issue:4682675584 |
| 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/2900/issue_layout |
| twitter:image | https://opengraph.githubassets.com/693b3899224523ddc510b4d30ee5fdd057ed6da3a6ab4d64398b4218ba418cf5/modelcontextprotocol/python-sdk/issues/2900 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/693b3899224523ddc510b4d30ee5fdd057ed6da3a6ab4d64398b4218ba418cf5/modelcontextprotocol/python-sdk/issues/2900 |
| og:image:alt | Tracks: #2715 The shared encode/decode and x-mcp-header rule helpers used by both sides; server-side validation of inbound headers vs body. What's in it Encode/decode helpers for Mcp-Method/Mcp-Nam... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisbey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width