feat: Support generic client headers map#56
Open
stenalpjolly wants to merge 3 commits intogoogleapis:mainfrom
Open
feat: Support generic client headers map#56stenalpjolly wants to merge 3 commits intogoogleapis:mainfrom
stenalpjolly wants to merge 3 commits intogoogleapis:mainfrom
Conversation
Contributor
Author
|
/gcbrun |
1 similar comment
Contributor
|
/gcbrun |
|
I’m sorry, I’m trying to figure it out what’s this about, my email got
logged in with chatgtp which is was referring to googleapis, I have no clue
what’s going on, I have tried to message google and delete or removed this
but again I have no idea what’s this is and what is doing with my account.
…On Mon, Apr 6, 2026 at 12:37 PM Anubhav Dhawan ***@***.***> wrote:
*anubhav756* left a comment (googleapis/mcp-toolbox-sdk-java#56)
<#56 (comment)>
/gcbrun
—
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B7IQDXYOBBKTKS6XGHG5F3L4UPMOFAVCNFSM6AAAAACXOHYZ3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCOJTGUZDAMZVG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Contributor
Author
|
/gcbrun |
1 similar comment
Contributor
|
/gcbrun |
fb8cb3c to
c266fd1
Compare
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.
Summary
This PR introduces the ability to pass custom HTTP headers to the
McpToolboxClientand deprecates the.apiKey()method in favor of the new.headers()method. It also includes improvements to E2E test execution.Changes:
.headers(Map<String, String>)method toMcpToolboxClient.Builderto allow providing custom HTTP headers (e.g., customAuthorizationtokens).apiKey(): The.apiKey()method is now soft-deprecated but retained for backward compatibility. It acts as a fallback if noAuthorizationheader is provided in.headers().Authorizationheader.McpToolboxClientBuilderTestto verify builder logic with both headers and api keys.ToolboxE2ESetupto skip E2E tests gracefully via JUnitAssumptionswhenGOOGLE_CLOUD_PROJECTis not set, preventing test suite failures in unauthenticated environments.