MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / _init_tools

Method _init_tools

src/codegraphcontext/server.py:184–193  ·  view source on GitHub ↗

Defines the complete tool manifest for the LLM.

(self)

Source from the content-addressed store, hash-verified

182 self._init_tools()
183
184 def _init_tools(self):
185 """
186 Defines the complete tool manifest for the LLM.
187 """
188 self.disabled_tools = self._load_disabled_tools()
189 self.tools = {
190 name: definition
191 for name, definition in TOOLS.items()
192 if name not in self.disabled_tools
193 }
194
195 def _normalize_tool_name(self, name: Any) -> Optional[str]:
196 """Normalize tool names from mcp.json to internal tool identifiers."""

Callers 1

__init__Method · 0.95

Calls 2

_load_disabled_toolsMethod · 0.95
itemsMethod · 0.80

Tested by

no test coverage detected