mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 21:44:18 +02:00
Update resource manager
This commit is contained in:
parent
6b1ba049c7
commit
35e13ef9bf
10 changed files with 353 additions and 218 deletions
|
|
@ -22,7 +22,7 @@ async def test_tool_annotations_in_tool_manager():
|
|||
return message
|
||||
|
||||
# Check internal tool objects directly
|
||||
tools = mcp._tool_manager.list_tools()
|
||||
tools = mcp._tool_manager._list_tools()
|
||||
assert len(tools) == 1
|
||||
assert tools[0].annotations is not None
|
||||
assert tools[0].annotations.title == "Echo Tool"
|
||||
|
|
@ -124,7 +124,7 @@ async def test_direct_tool_annotations_in_tool_manager():
|
|||
return {"modified": True, **data}
|
||||
|
||||
# Check internal tool objects directly
|
||||
tools = mcp._tool_manager.list_tools()
|
||||
tools = mcp._tool_manager._list_tools()
|
||||
assert len(tools) == 1
|
||||
assert tools[0].annotations is not None
|
||||
assert tools[0].annotations.title == "Direct Tool"
|
||||
|
|
@ -183,7 +183,7 @@ async def test_add_tool_method_annotations():
|
|||
mcp.add_tool(tool)
|
||||
|
||||
# Check internal tool objects directly
|
||||
tools = mcp._tool_manager.list_tools()
|
||||
tools = mcp._tool_manager._list_tools()
|
||||
assert len(tools) == 1
|
||||
assert tools[0].annotations is not None
|
||||
assert tools[0].annotations.title == "Create Item"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue