Skip to content

Commit c606f6c

Browse files
committed
merge with recent branch
1 parent 0b58a94 commit c606f6c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/mcp/client/auth/oauth2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,7 @@ async def async_auth_flow(self, request: httpx.Request) -> AsyncGenerator[httpx.
680680
self._select_scopes(response)
681681

682682
# Step 3: Discover OAuth metadata (with fallback for legacy servers)
683-
discovery_urls = self._get_discovery_urls(
684-
self.context.auth_server_url or self.context.server_url
685-
)
683+
discovery_urls = self._get_discovery_urls(self.context.auth_server_url or self.context.server_url)
686684
for url in discovery_urls:
687685
oauth_metadata_request = self._create_oauth_metadata_request(url)
688686
oauth_metadata_response = yield oauth_metadata_request

tests/server/fastmcp/resources/test_file_resources.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ async def test_missing_file_error(self, temp_file: Path):
100100
with pytest.raises(ValueError, match="Error reading file"):
101101
await resource.read()
102102

103+
103104
@pytest.mark.skipif(os.name == "nt", reason="File permissions behave differently on Windows")
104105
@pytest.mark.anyio
105106
async def test_permission_error(temp_file: Path):

0 commit comments

Comments
 (0)