Skip to content

Conversation

@Kludex
Copy link
Member

@Kludex Kludex commented Jan 21, 2026

No description provided.

@Kludex Kludex changed the title Add meta to Client methods Add meta to Client methods Jan 21, 2026
from mcp.server.fastmcp import FastMCP
from mcp.shared.session import ProgressFnT

logger = logging.getLogger(__name__)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary logger.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes here are not breaking change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the meta parameter in the methods here is also not a breaking change, because they have a default value. Which means is just a feature.

"TaskExecutionMode",
"TaskStatus",
# Base classes
"MCPModel",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MCPModel should be internal. It's not supposed to be exposed.

A lot of types here aren't supposed to be exposed.

model_config = ConfigDict(extra="allow", alias_generator=to_camel, populate_by_name=True)


Meta: TypeAlias = dict[str, Any]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Meta type was being used as dict[str, Any] or as class Meta(BaseModel) depending on the class, which doesn't make sense. I've set dict[str, Any] for all of them, which matches the spec and most of the types here.

@Kludex Kludex requested a review from maxisbey January 21, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants