Skip to content

Commit 5c43418

Browse files
committed
Move description to Implementation class
1 parent a680259 commit 5c43418

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/mcp/types.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,6 @@ class BaseMetadata(BaseModel):
244244
if present).
245245
"""
246246

247-
description: str | None = None
248-
"""
249-
An optional human-readable description of what this implementation does.
250-
251-
This can be used by clients or servers to provide context about their purpose
252-
and capabilities. For example, a server might describe the types of resources
253-
or tools it provides, while a client might describe its intended use case.
254-
"""
255-
256247

257248
class Icon(BaseModel):
258249
"""An icon for display in user interfaces."""
@@ -282,6 +273,15 @@ class Implementation(BaseMetadata):
282273

283274
model_config = ConfigDict(extra="allow")
284275

276+
description: str | None = None
277+
"""
278+
An optional human-readable description of what this implementation does.
279+
280+
This can be used by clients or servers to provide context about their purpose
281+
and capabilities. For example, a server might describe the types of resources
282+
or tools it provides, while a client might describe its intended use case.
283+
"""
284+
285285

286286
class RootsCapability(BaseModel):
287287
"""Capability for root operations."""

0 commit comments

Comments
 (0)