Skip to content

Request Headers in Tools #453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wbeard opened this issue Apr 8, 2025 · 2 comments
Closed

Request Headers in Tools #453

wbeard opened this issue Apr 8, 2025 · 2 comments

Comments

@wbeard
Copy link

wbeard commented Apr 8, 2025

Hey, thanks for the SDK!

Is it possible to read the headers of the request being sent to call a tool? The client is passing in some headers that I can use to auth. I've looked through the Context class and can't find where request headers are located.

So, any pointers to how I can do this would be appreciated!

@JorgeRuizITCL
Copy link

JorgeRuizITCL commented Apr 8, 2025

Not now, but might be possible in a future release.

Check (and support) this PR #380

@wbeard
Copy link
Author

wbeard commented Apr 8, 2025

Yeah, that looks like exactly what the sdk needs. Thanks for the heads up!

@wbeard wbeard closed this as completed Apr 8, 2025
@wbeard wbeard closed this as completed Apr 8, 2025
@JorgeRuizITCL JorgeRuizITCL marked this as a duplicate of #424 Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants