Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce4dbe3

Browse files
committed
feat: support oauth for sse
1 parente84053a commitce4dbe3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎dive_mcp_host/host/tools/mcp_server.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ def _http_get_client(
728728
timeout=timeout,
729729
httpx_client_factory=self._httpx_client_factory,
730730
sse_read_timeout=sse_read_timeout,
731+
auth=auth,
731732
)
732733
ifself.config.transportin ("streamable"):
733734
returnstreamablehttp_client(
@@ -1013,8 +1014,10 @@ def auth_manager(self) -> OAuthManager:
10131014

10141015
asyncdefcreate_oauth_authorization(self)->AuthorizationProgress:
10151016
"""Authorize the OAuth client."""
1016-
ifself.config.transport!="streamable":
1017-
raiseRuntimeError("Only streamable transport is supported for oauth")
1017+
ifself.config.transport!="streamable"andself.config.transport!="sse":
1018+
raiseRuntimeError(
1019+
"Only streamable and sse transport is supported for oauth"
1020+
)
10181021

10191022
ifself.auth_managerisNone:
10201023
raiseRuntimeError("OAuth manager is not initialized")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp