Skip to content

Commit 44e59b6

Browse files
committed
merge with recent branch
1 parent 654b30d commit 44e59b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/mcp/client/auth/oauth2.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,10 @@ def _create_registration_request(self, metadata: OAuthMetadata | None = None) ->
227227
if self._client_info:
228228
return None
229229

230-
if context and context.client_info:
231-
self._client_info = context.client_info
232-
return None
230+
if metadata is not None:
231+
if context and context.client_info:
232+
self._client_info = context.client_info
233+
return None
233234

234235
# If we reach this point we don't yet have stored client information, so
235236
# proceed with building a dynamic registration request.

0 commit comments

Comments
 (0)