MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test

Function test

diagnostics/trace_timeout_flow.py:48–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47
48async def test():
49 print("=" * 80)
50 print("TIMEOUT FLOW TRACER")
51 print("=" * 80)
52 print()
53
54 tm = ToolManager(
55 config_file="server_config.json",
56 servers=["monday"],
57 )
58
59 await tm.initialize()
60 print(f"\n✓ Initialized with effective_timeout: {tm._effective_timeout}s\n")
61
62 print("Executing list_users_and_teams...")
63 start = time.time()
64
65 result = await tm.execute_tool("list_users_and_teams", {"getMe": True})
66
67 elapsed = time.time() - start
68 print(f"\n✓ Completed in {elapsed:.2f}s")
69 print(f"Success: {result.success}")
70 if not result.success:
71 print(f"Error: {result.error}")
72
73 await tm.close()
74
75
76if __name__ == "__main__":

Callers 1

Calls 4

initializeMethod · 0.95
execute_toolMethod · 0.95
closeMethod · 0.95
ToolManagerClass · 0.90

Tested by

no test coverage detected