MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / test_git_mcp_tool_availability

Function test_git_mcp_tool_availability

tests/test_mcp.py:422–444  ·  view source on GitHub ↗

Test Git MCP tool availability.

()

Source from the content-addressed store, hash-verified

420
421@pytest.mark.asyncio
422async def test_git_mcp_tool_availability():
423 """Test Git MCP tool availability."""
424 print("\n=== Testing Git MCP Tool Availability ===")
425
426 try:
427 tools = await load_mcp_tools_async("mini_agent/config/mcp.json")
428
429 if not tools:
430 pytest.skip("No MCP tools loaded")
431 return
432
433 # Find search tool
434 search_tool = None
435 for tool in tools:
436 if "search" in tool.name.lower():
437 search_tool = tool
438 break
439
440 assert search_tool is not None, "Should contain search-related tools"
441 print(f"✅ Found search tool: {search_tool.name}")
442
443 finally:
444 await cleanup_mcp_connections()
445
446
447@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

load_mcp_tools_asyncFunction · 0.90
cleanup_mcp_connectionsFunction · 0.90

Tested by

no test coverage detected