Add _fastmcp meta namespace (#1290)

This commit is contained in:
Jeremiah Lowin 2025-07-29 12:07:53 -07:00 committed by GitHub
commit 0691701951
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 373 additions and 151 deletions

View file

@ -97,7 +97,7 @@ class TestTools:
assert tools[0].model_dump() == dict(
name="create_user_users_post",
meta=dict(tags=["create", "users"]),
meta=dict(_fastmcp=dict(tags=["create", "users"])),
title=None,
annotations=None,
description=IsStr(regex=r"^Create a new user\..*$", regex_flags=re.DOTALL),
@ -122,7 +122,7 @@ class TestTools:
)
assert tools[1].model_dump() == dict(
name="update_user_name_users",
meta=dict(tags=["update", "users"]),
meta=dict(_fastmcp=dict(tags=["update", "users"])),
title=None,
annotations=None,
description=IsStr(