### What problem does this PR solve? Add documentation of authorization header for MCP server based on OAuth 2.1 ### Type of change - [x] Documentation Update --------- Co-authored-by: writinwaters <93570324+writinwaters@users.noreply.github.com>tags/v0.19.1
| async with sse_client("http://localhost:9382/sse", headers={"api_key": "YOUR_KEY_HERE"}) as streams: | async with sse_client("http://localhost:9382/sse", headers={"api_key": "YOUR_KEY_HERE"}) as streams: | ||||
| # Rest of your code... | # Rest of your code... | ||||
| ``` | ``` | ||||
| ::: | |||||
| Or follow the requirements of [OAuth 2.1 Section 5](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-12#section-5) by providing an Authorization request headers field: | |||||
| ```python | |||||
| async with sse_client("http://localhost:9382/sse", headers={"Authorization": "YOUR_KEY_HERE"}) as streams: | |||||
| # Rest of your code... | |||||
| ``` | |||||
| ::: |