Skip to content

Commit f2cfe80

Browse files
committed
fix: remove unused type DataContent
1 parent 9444672 commit f2cfe80

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/mcp/types.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -646,27 +646,6 @@ class ImageContent(BaseModel):
646646
model_config = ConfigDict(extra="allow")
647647

648648

649-
class DataContent(BaseModel):
650-
"""Structured JSON content for a message or tool result."""
651-
652-
type: Literal["data"]
653-
data: dict[str, Any]
654-
"""
655-
The structured JSON data. This is a JSON serializable object.
656-
"""
657-
658-
schema_definition: dict[str, Any] | str | None = None
659-
"""
660-
An optional schema describing the structure of the data.
661-
- Can be a string (schema reference URI),
662-
- A dictionary (full schema definition),
663-
- Or omitted if no schema is provided.
664-
"""
665-
666-
annotations: Annotations | None = None
667-
model_config = ConfigDict(extra="allow")
668-
669-
670649
class SamplingMessage(BaseModel):
671650
"""Describes a message issued to or received from an LLM API."""
672651

@@ -814,7 +793,7 @@ class CallToolRequest(Request[CallToolRequestParams, Literal["tools/call"]]):
814793
class CallToolResult(Result):
815794
"""The server's response to a tool call."""
816795

817-
content: list[TextContent | ImageContent | DataContent | EmbeddedResource]
796+
content: list[TextContent | ImageContent | EmbeddedResource]
818797
isError: bool = False
819798

820799

0 commit comments

Comments
 (0)