Extract the x-mcp-header annotations from a tool inputSchema, returning a
map of (top-level) parameter name -> header name (Mcp-Param-{name}).
Retained for backward compatibility; only top-level, primitive-typed, valid
annotations appear. Nested annotations (which validateInputSchemaHeaders
accepts and paramHeaders surfaces) are silently omitted, so a schema whose
only annotations are nested validates yet yields an empty map. Prefer
paramHeaders (path-aware, any nesting depth) for new code.
Extract the x-mcp-header annotations from a tool inputSchema, returning a map of (top-level) parameter name -> header name (Mcp-Param-{name}).
Retained for backward compatibility; only top-level, primitive-typed, valid annotations appear. Nested annotations (which validateInputSchemaHeaders accepts and paramHeaders surfaces) are silently omitted, so a schema whose only annotations are nested validates yet yields an empty map. Prefer paramHeaders (path-aware, any nesting depth) for new code.