Skip to content

Commit 7942184

Browse files
Bump Pydantic in the lockfile (#1041)
1 parent 3f0964d commit 7942184

File tree

3 files changed

+101
-71
lines changed

3 files changed

+101
-71
lines changed

src/mcp/server/auth/routes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ def validate_issuer_url(url: AnyHttpUrl):
3232
"""
3333

3434
# RFC 8414 requires HTTPS, but we allow localhost HTTP for testing
35-
if url.scheme != "https" and url.host != "localhost" and not url.host.startswith("127.0.0.1"):
35+
if (
36+
url.scheme != "https"
37+
and url.host != "localhost"
38+
and (url.host is not None and not url.host.startswith("127.0.0.1"))
39+
):
3640
raise ValueError("Issuer URL must be HTTPS")
3741

3842
# No fragments or query parameters allowed

tests/server/fastmcp/test_func_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def func_dict_any() -> dict[str, Any]:
203203

204204
meta = func_metadata(func_dict_any)
205205
assert meta.output_schema == {
206+
"additionalProperties": True,
206207
"type": "object",
207208
"title": "func_dict_anyDictOutput",
208209
}

0 commit comments

Comments
 (0)