Remove overly restrictive MIME type validation from Resource (#2585)

This commit is contained in:
Jeremiah Lowin 2025-12-09 20:40:00 -05:00 committed by GitHub
commit 0bcd69cd98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,6 @@ class Resource(FastMCPComponent):
mime_type: str = Field(
default="text/plain",
description="MIME type of the resource content",
pattern=r"^[a-zA-Z0-9]+/[a-zA-Z0-9\-+.]+$",
)
annotations: Annotated[
Annotations | None,