mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 22:14:18 +02:00
Update resource manager
This commit is contained in:
parent
6b1ba049c7
commit
35e13ef9bf
10 changed files with 353 additions and 218 deletions
|
|
@ -19,7 +19,7 @@ async def test_tool_exclude_args_in_tool_manager():
|
|||
pass
|
||||
return message
|
||||
|
||||
tools = mcp._tool_manager.list_tools()
|
||||
tools = mcp._tool_manager._list_tools()
|
||||
assert len(tools) == 1
|
||||
assert "state" not in echo.parameters["properties"]
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ async def test_add_tool_method_exclude_args():
|
|||
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 "state" not in tools[0].parameters["properties"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue