()
| 30 | def test_outside_init(self): |
| 31 | |
| 32 | async def main(): |
| 33 | async with MCPClient(self.mcp_config) as mcp_client: |
| 34 | mcps = await mcp_client.get_tools() |
| 35 | assert ('fetch' in mcps) |
| 36 | |
| 37 | res = await mcp_client.call_tool( |
| 38 | server_name='fetch', |
| 39 | tool_name='fetch', |
| 40 | tool_args={'url': 'http://www.baidu.com'}) |
| 41 | assert ('baidu' in res) |
| 42 | |
| 43 | asyncio.run(main()) |
| 44 |
no test coverage detected