Skip to content

[Server] Reject Mcp-Param header when the body omits its argument - #534

Merged
chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:fix-mcp-param-header-without-argument
Oct 6, 2026
Merged

chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:fix-mcp-param-header-without-argument

Conversation

@chr-hertel

Copy link
Copy Markdown
Member

Closes #533

A recognized Mcp-Param-* header without its mirrored argument in the body now fails with -32020 instead of passing, same as the Python SDK. Both absent is still fine, unknown Mcp-Param-* headers stay ignored.

@chr-hertel chr-hertel added the Server Issues & PRs related to the Server component label Oct 5, 2026
soyuka
soyuka previously approved these changes Oct 6, 2026
@chr-hertel
chr-hertel force-pushed the fix-mcp-param-header-without-argument branch from c7279c2 to a72f6f5 Compare October 6, 2026 21:05
@chr-hertel
chr-hertel merged commit 8091050 into modelcontextprotocol:main Oct 6, 2026
27 checks passed
@chr-hertel
chr-hertel deleted the fix-mcp-param-header-without-argument branch October 6, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Server Issues & PRs related to the Server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Server] Mcp-Param header is accepted when the body omits its argument

2 participants