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

Method is_tool_enabled

src/mcp_cli/tools/manager.py:1071–1073  ·  view source on GitHub ↗

Check if a tool is enabled.

(self, tool_name: str)

Source from the content-addressed store, hash-verified

1069 self._invalidate_caches()
1070
1071 def is_tool_enabled(self, tool_name: str) -> bool:
1072 """Check if a tool is enabled."""
1073 return self.tool_filter.is_tool_enabled(tool_name)
1074
1075 def get_disabled_tools(self) -> dict[str, str]:
1076 """Get all disabled tools with their reasons."""

Callers 3

test_disable_toolMethod · 0.95
test_enable_toolMethod · 0.95

Calls

no outgoing calls

Tested by 3

test_disable_toolMethod · 0.76
test_enable_toolMethod · 0.76