File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -478,11 +478,12 @@ async def streamablehttp_client(
478478 `sse_read_timeout` determines how long (in seconds) the client will wait for a new
479479 event before disconnecting. All other HTTP operations are controlled by `timeout`.
480480
481- `auth_client_provider` is an optional protocol that can be extended to implement
482- custom client-to-server authentication. Before each request to the MCP Server,
483- the get_token method is invoked to retrieve a fresh authentication token and
484- update the request headers. Note that if the passed in headers already
485- contain an authorization header, this provider will not be called.
481+ `auth_client_provider` instance of `AuthClientProvider` that can be passed to
482+ support client-to-server authentication. Before each request to the MCP Server,
483+ the auth_client_provider.get_token method is invoked to retrieve a fresh
484+ authentication token and update the request headers. Note that if the passed in
485+ `headers` already contain an Authorization header, that header will take precedence
486+ over any tokens generated by this provider.
486487
487488 Yields:
488489 Tuple containing:
You can’t perform that action at this time.
0 commit comments