Skip to content

Commit 785964e

Browse files
committed
Address nits
1 parent c99d4f7 commit 785964e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/mcp/client/streamable_http.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)