MCPcopy Create free account
hub / github.com/modelscope/ms-agent / main

Method main

tests/tools/test_tool_plugin.py:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 def test_tool_plugin(self):
17
18 async def main():
19 config = Config.from_task('ms-agent/simple_tool_plugin')
20 tool_manager = ToolManager(config, trust_remote_code=True)
21 self.assertTrue(len(tool_manager.extra_tools) == 1)
22 await tool_manager.connect()
23 await tool_manager.cleanup()
24
25 asyncio.run(main())
26

Callers 1

Calls 4

connectMethod · 0.95
cleanupMethod · 0.95
ToolManagerClass · 0.90
from_taskMethod · 0.45

Tested by

no test coverage detected