Skip to content

Commit bc348b6

Browse files
committed
Drop explanatory comments on url_preserve_empty_path config
1 parent 928fb98 commit bc348b6

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/mcp/shared/auth.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ class OAuthClientMetadata(BaseModel):
3737
See https://datatracker.ietf.org/doc/html/rfc7591#section-2
3838
"""
3939

40-
# Preserve empty URL paths so identifiers are compared as transmitted (RFC 3986 6.2.1)
41-
# instead of acquiring a trailing slash; defaults in Pydantic v3.
4240
model_config = ConfigDict(url_preserve_empty_path=True)
4341

4442
redirect_uris: list[AnyUrl] | None = Field(..., min_length=1)
@@ -127,8 +125,6 @@ class OAuthMetadata(BaseModel):
127125
See https://datatracker.ietf.org/doc/html/rfc8414#section-2
128126
"""
129127

130-
# Preserve empty URL paths so the issuer is compared as transmitted (RFC 3986 6.2.1)
131-
# instead of acquiring a trailing slash; defaults in Pydantic v3.
132128
model_config = ConfigDict(url_preserve_empty_path=True)
133129

134130
issuer: AnyHttpUrl
@@ -160,8 +156,6 @@ class ProtectedResourceMetadata(BaseModel):
160156
See https://datatracker.ietf.org/doc/html/rfc9728#section-2
161157
"""
162158

163-
# Preserve empty URL paths so the resource and authorization servers are compared as
164-
# transmitted (RFC 3986 6.2.1) instead of acquiring a trailing slash; defaults in Pydantic v3.
165159
model_config = ConfigDict(url_preserve_empty_path=True)
166160

167161
resource: AnyHttpUrl

0 commit comments

Comments
 (0)