Skip to content

## codio: three bugs in `codio_rag_sync` + unclear MCP docs Discovered while se

codio: three bugs in codio_rag_sync + unclear MCP docs

Discovered while setting up labbox (a MATLAB toolbox) for indexio + chatbot.

Bug 1 — wrong indexio config path

sync_codio_rag_sources defaults config_path to project_root / "infra" / "indexio" / "config.yaml", but projio projects store the indexio config at the path declared in .projio/config.yml under indexio.config (e.g. .projio/indexio/config.yaml). The MCP tool codio_rag_sync does not pass config_path, so it always writes to the wrong file. The MCP tool should read indexio.config from the projio project config and pass it as config_path.

Bug 2 — hardcoded **/*.py glob for source trees

owned_codio_sources in codio/rag.py always generates glob: +Labbox/**/*.py regardless of the library's language field. For MATLAB libraries (language: matlab) the glob should be **/*.m. The glob should be derived from the language field in the catalog entry (with a sensible per-language mapping, fallback to **/*).

Bug 3 — Registry missing public .catalog property (already patched)

codio_rag_sync MCP tool accesses registry.catalog but Registry only had _catalog (private). This caused AttributeError: 'Registry' object has no attribute 'catalog'. A catalog property was already added to registry.py as a hotfix — please verify and add a test.

Improvement — unclear MCP tool docs for non-Python projects

The codio_rag_sync tool description and agent instructions give no indication that: - Source tree globs are language-dependent (currently only Python works) - The target indexio config path must match indexio.config in .projio/config.yml - Non-Python libraries need a language-appropriate glob

Please add notes to the codio_rag_sync tool description and/or the agent instructions clarifying these constraints and the expected behavior for multi-language codio registries.


Source context: labbox

Labbox (labbox): sirotalab MATLAB toolbox

Recent commits:

0a23f59 docs: theme primary deep orange / accent orange (MATLAB palette)
92447b1 docs: fix broken links in log/index.md (strict mode CI fix)
14ad143 gitignore: untrack and ignore docs/build/ (stale Sphinx output, breaks CI)