Description
The context_index tool fails with a TypeError because the parameter name doesn't match the ContextEngineClient.index() method.
Location
context_engine/tools/context_index.py line 17
Root Cause
- The tool passes
path=path to client.index()
- But
ContextEngineClient.index() method expects subdir parameter, not path
Code Comparison
context_index.py:
result = await client.index(path=path) # WRONG
client.py (line 184):
async def index(self, subdir: str = "", collection: str | None = None, recreate: bool = False) -> dict[str, Any]:
"""Trigger indexing of the workspace or a subdirectory.
Args:
subdir: Relative path under /work to index ("" for full workspace).
...
"""
Fix
result = await client.index(subdir=path)
Impact
- Users cannot index project directories using
context_index tool
- Error:
TypeError: ContextEngineClient.index() got an unexpected keyword argument 'path'
Also, the config.html does not show any "Project Folder Path" field, only "Service Status" section
Description
The
context_indextool fails with aTypeErrorbecause the parameter name doesn't match theContextEngineClient.index()method.Location
context_engine/tools/context_index.pyline 17Root Cause
path=pathtoclient.index()ContextEngineClient.index()method expectssubdirparameter, notpathCode Comparison
context_index.py:client.py(line 184):Fix
Impact
context_indextoolTypeError: ContextEngineClient.index() got an unexpected keyword argument 'path'Also, the config.html does not show any "Project Folder Path" field, only "Service Status" section