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

Function test_get_server_for_tool

tests/chat/test_chat_context.py:159–164  ·  view source on GitHub ↗
(chat_context)

Source from the content-addressed store, hash-verified

157
158@pytest.mark.asyncio
159async def test_get_server_for_tool(chat_context):
160 await chat_context.initialize()
161
162 assert await chat_context.get_server_for_tool("srv1.tool1") == "srv1"
163 assert await chat_context.get_server_for_tool("srv2_tool2") == "srv2"
164 assert await chat_context.get_server_for_tool("unknown") == "Unknown"
165
166
167@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

initializeMethod · 0.45
get_server_for_toolMethod · 0.45

Tested by

no test coverage detected