You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Server][Client][Transport] SEP-2243: Emit Mcp-Method and Mcp-Name HTTP headers #353
2026-07-28All issues and PRs related to the spec release 2026-07-28ClientIssues & PRs related to the Client componentServerIssues & PRs related to the Server componentenhancementRequest for a new feature that's not currently supportedimproves spec complianceImproves consistency with other SDKs such as TyepScript
Surfaces the JSON-RPC method and target name as HTTP headers (e.g. Mcp-Method: tools/call, Mcp-Name: <tool name>) so middleboxes (proxies, gateways, observability) can route/trace/prioritize without parsing the body. Gated on protocol version — non-breaking.
PHP SDK changes
src/Server/Transport/StreamableHttpTransport.php — set/echo Mcp-Method / Mcp-Name headers on responses; read them on requests.
Add a small middleware under src/Server/Transport/Http/Middleware/ (e.g. McpMethodHeaderMiddleware.php).
src/Client/Transport/HttpTransport.php — set Mcp-Method and Mcp-Name on outgoing client POSTs.
Gate on negotiated protocol version (works with SEP-2575's per-request version).
Implemented via #445, #453, #441, as the broader x-mcp-header mechanism (src/Schema/Wire/McpHeader.php) — validated server-side by StandardHeaderValidator, emitted client-side by HeaderFactory.
2026-07-28All issues and PRs related to the spec release 2026-07-28ClientIssues & PRs related to the Client componentServerIssues & PRs related to the Server componentenhancementRequest for a new feature that's not currently supportedimproves spec complianceImproves consistency with other SDKs such as TyepScript
Activity
chr-hertel commentedon Aug 19, 2026
Implemented via #445, #453, #441, as the broader
x-mcp-headermechanism (src/Schema/Wire/McpHeader.php) — validated server-side byStandardHeaderValidator, emitted client-side byHeaderFactory.