allow dicts to be passed as annotations

This commit is contained in:
Ryan Malloy 2025-06-17 16:14:20 -06:00
commit cf56bdd15e

View file

@ -25,7 +25,7 @@ def mcp_tool(
name: str | None = None,
description: str | None = None,
tags: set[str] | None = None,
annotations: ToolAnnotations | None = None,
annotations: ToolAnnotations | dict[str, Any] | None = None,
exclude_args: list[str] | None = None,
serializer: Callable[[Any], str] | None = None,
enabled: bool | None = None,