chore: migrate off deprecated cpex payload .headers - #5852
Open
Shaurya2k06 wants to merge 1 commit into
Open
Conversation
Move Tool/Agent hook headers to extensions.http.headers. HttpPreRequest and HttpAuth still dual-write (field required in cpex 0.1.1). Closes IBM#5828 Signed-off-by: shaurya2k06 <shaurya2k06@gmail.com>
Shaurya2k06
requested review from
Lang-Akshay,
brian-hussey,
crivetimihai,
ja8zyjits and
msureshkumar88
as code owners
July 25, 2026 07:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Closes #5828
Related: #5825 (warning noise EPIC), #5832 (upstream removal / cpex pin bump — not closed here)
Summary
Migrate gateway hosts, header-touching plugins, and tests off deprecated cpex payload
.headersontoextensions.http.headers.Helper
build_hook_extensions()/headers_from_modified_extensions()inmcpgateway/plugins/utils.pyHosts
tool_service.py,a2a_service.py: omit payloadheaders=; pass/read via extensionshttp_auth_middleware.py,auth.py: dual-write (payload.headersstill required in cpex 0.1.1; real data onextensions.http)Plugins
write_headers); jwt_claims, unified_pdp, telemetry (read_headers); sparc; examplescapabilitiesinplugins/config.yamlTests
filterwarningssuppressionsResidual warnings: HttpPreRequest (~13) and HttpAuthResolveUser (~20) remain until upstream makes those fields optional (#5832).
Reviewability
triageType of Change
Verification
make test.headerswarnings = 0make ruff bandit interrogate pylint verifyChecklist
filterwarningssuppressions for these deprecations