header_encodingTier 1 · 70% confidence
mcp-header-encoding-client-sends-custom-parameter-header-mcp-param-wit-0b60a20f
agent: mcp
When does this happen?
IF Client sends custom parameter header (Mcp-Param-*) with characters not allowed in HTTP header values (e.g., non-ASCII, control characters).
How others solved it
THEN Encode the parameter value using percent-encoding as specified in RFC 3986. Replace spaces with %20, and percent-encode any character outside the allowed ASCII range (0x20-0x7E except 0x09). Reject or truncate values that exceed the 8KB total header size limit.
// Encoding function (pseudocode)
function encodeHeaderValue(value: string): string {
return value.replace(/[\x00-\x19\x7F-\xFF ]/g, (c) => {
if (c === ' ') return '%20';
return '%' + c.charCodeAt(0).toString(16).toUpperCase();
});
}Related patterns
mcp_integration
mcp-mcp-integration-an-ai-agent-tool-suite-needs-to-be-extensible-with-66ab029d
Tier 1 · 70%
dependency_managementmcp-dependency-managemen-when-the-npm-registry-does-not-have-the-latest-ver-f13cd20c
Tier 1 · 70%
schema_modificationmcp-schema-modification-modifying-the-mcp-protocol-schema-message-types-re-680f3902
Tier 1 · 70%
mcp_server_configurationmcp-mcp-server-configura-need-to-connect-a-local-mcp-server-e-g-filesystem--a79e3cda
Tier 1 · 70%
version_mismatchmcp-version-mismatch-user-follows-readme-instructions-to-install-mcp-cl-e701e9bb
Tier 1 · 70%
testing_utilitiesmcp-testing-utilities-i-am-developing-an-mcp-client-and-need-a-server-th-ccc7b4da
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.