use X-Adapt-Org header from config.toml#11
Open
Jumballaya wants to merge 1 commit into
Open
Conversation
guimorg
reviewed
Jul 16, 2026
Comment on lines
+325
to
+331
| fn adapt_http_client(config: &AdaptConfig) -> Result<reqwest::Client, auth::AuthError> { | ||
| reqwest::Client::builder() | ||
| .timeout(Duration::from_secs(15)) | ||
| .default_headers(adapt_headers(config)?) | ||
| .build() | ||
| .map_err(|error| auth::map_transport_error(error, &config.bearer_token)) | ||
| } |
Owner
There was a problem hiding this comment.
way better to place this here! ty!
guimorg
requested changes
Jul 16, 2026
guimorg
left a comment
Owner
There was a problem hiding this comment.
Yo, @Jumballaya! So awesome! Thank you for you contribution!
One question and just a few changes that I ask:
Question: so, is the Adapt Org suppose to be required? So far I was not using it because I belong in a single organization, so I'm just wondering if the org id should actually be optional!
The only changes I ask are related to solving the merge conflict (sorry about that) and using gitmoji (so just add a ✨ to the PR title and the commit 😅 ).
Awesome to see a contribution from the Adapt team!
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.
Hey, I am an engineer at Adapt and absolutely love seeing that someone is building on top of Adapt!
This adds the
X-Adapt-Orgheader to the call to the Adapt MCP and makes it so it can be added via the config.tomlThe org-id can be found here -- https://app.adapt.com/settings/organization