build_deep_index
Build a complete symbol index for code projects to enable code search and analysis. This tool performs full re-indexing and loads it into memory.
Instructions
Build the deep index (full symbol extraction) for the current project.
This performs a complete re-index and loads it into memory.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/code_index_mcp/server.py:272-280 (registration)Registration of the 'build_deep_index' MCP tool via @mcp.tool() decorator, with the handler function that delegates to the service.@mcp.tool() @handle_mcp_tool_errors(return_type='str') def build_deep_index(ctx: Context) -> str: """ Build the deep index (full symbol extraction) for the current project. This performs a complete re-index and loads it into memory. """ return IndexManagementService(ctx).rebuild_deep_index()
- src/code_index_mcp/server.py:272-280 (handler)Handler function that executes the tool logic by calling IndexManagementService.rebuild_deep_index()@mcp.tool() @handle_mcp_tool_errors(return_type='str') def build_deep_index(ctx: Context) -> str: """ Build the deep index (full symbol extraction) for the current project. This performs a complete re-index and loads it into memory. """ return IndexManagementService(ctx).rebuild_deep_index()
- Supporting method in IndexManagementService that performs the actual deep index rebuild workflow.def rebuild_deep_index(self) -> str: """Rebuild the deep index using the original workflow.""" # Business validation self._validate_rebuild_request() # Deep rebuild via existing workflow result = self._execute_rebuild_workflow() return self._format_rebuild_result(result)