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

Method get_server_for_tool

src/mcp_cli/chat/testing.py:117–119  ·  view source on GitHub ↗

Get server for tool from stream_manager.

(self, tool_name: str)

Source from the content-addressed store, hash-verified

115 raise ValueError("Stream manager doesn't support tool execution")
116
117 async def get_server_for_tool(self, tool_name: str) -> str:
118 """Get server for tool from stream_manager."""
119 return self.stream_manager.get_server_for_tool(tool_name) or "Unknown"
120
121 def add_context_notice(self, notice: str) -> None:
122 """Queue a context management notice for the next API call."""

Callers 3

_initialize_toolsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected