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

Method enable_tool

src/mcp_cli/tools/manager.py:1066–1069  ·  view source on GitHub ↗

Enable a previously disabled tool.

(self, tool_name: str)

Source from the content-addressed store, hash-verified

1064 self._invalidate_caches()
1065
1066 def enable_tool(self, tool_name: str) -> None:
1067 """Enable a previously disabled tool."""
1068 self.tool_filter.enable_tool(tool_name)
1069 self._invalidate_caches()
1070
1071 def is_tool_enabled(self, tool_name: str) -> bool:
1072 """Check if a tool is enabled."""

Callers 1

test_enable_toolMethod · 0.95

Calls 1

_invalidate_cachesMethod · 0.95

Tested by 1

test_enable_toolMethod · 0.76