Skip to content

Commit a137ea1

Browse files
fennb0Delta
authored andcommitted
feat: add resource annotations support to FastMCP (#1468)
1 parent 8ce0cf9 commit a137ea1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/server/fastmcp/resources/test_resource_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,4 @@ def get_item(item_id: str) -> str: # pragma: no cover
257257

258258
# Verify the resource works correctly
259259
content = await resource.read()
260-
assert content == "Item 123"
260+
assert content == "Item 123"

tests/server/fastmcp/resources/test_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@ def test_audience_validation(self):
200200

201201
# Invalid roles should raise validation error
202202
with pytest.raises(Exception): # Pydantic validation error
203-
Annotations(audience=["invalid_role"]) # type: ignore
203+
Annotations(audience=["invalid_role"]) # type: ignore

0 commit comments

Comments
 (0)