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

Method get_server_for_tool

tests/chat/test_chat_context.py:87–92  ·  view source on GitHub ↗
(self, tool_name: str)

Source from the content-addressed store, hash-verified

85 return self._openai_tools
86
87 async def get_server_for_tool(self, tool_name: str):
88 if "." in tool_name:
89 return tool_name.split(".", 1)[0]
90 if "_" in tool_name:
91 return tool_name.split("_", 1)[0]
92 return "Unknown"
93
94 # ----- execution stubs -------------------------------------------
95 async def execute_tool(self, tool_name: str, arguments: Dict[str, Any]):

Callers 2

test_get_server_for_toolFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected