Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mcp/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ class GetPromptRequest(Request[GetPromptRequestParams, Literal["prompts/get"]]):
class TextContent(BaseModel):
"""Text content for a message."""

type: Literal["text"]
type: Literal["text"] = "text"
text: str
"""The text content of the message."""
annotations: Annotations | None = None
Expand All @@ -639,7 +639,7 @@ class TextContent(BaseModel):
class ImageContent(BaseModel):
"""Image content for a message."""

type: Literal["image"]
type: Literal["image"] = "image"
data: str
"""The base64-encoded image data."""
mimeType: str
Expand Down Expand Up @@ -667,7 +667,7 @@ class EmbeddedResource(BaseModel):
of the LLM and/or the user.
"""

type: Literal["resource"]
type: Literal["resource"] = "resource"
resource: TextResourceContents | BlobResourceContents
annotations: Annotations | None = None
model_config = ConfigDict(extra="allow")
Expand Down
Loading