get_environment_status
Retrieve the full project environment status in one call, covering dependencies, build system, compile database, index, and LLM backend. Read-only aggregation reduces session-start round-trips.
Instructions
Return the complete project environment status in one call.
Read-only. Aggregates five domains into a single call so the LLM can see everything at session start without extra round-trips:
deps— dependency audit (run_full_check), each entry with an optionalaction(message+ shellcommand).status="skipped"means a prerequisite is missing (e.g.libclang-soskipped becauselibclang-pythonis absent) — not a failure.build_system— detected build system,Nonewhen unknown.compile_db— whether compile_commands.json exists and its entry count. Reported as{"exists": false, ...}before init (no config to resolve the path from, and loading one would create empty config files).index— the FULLget_active_build()result, unchanged (its action lives inindex_message).llm— LLM backend status with an optionalaction.
When the project is not initialized (index.status == "not_initialized"),
only the config-independent dependency subset runs (checks that do not need
a project config) — Ollama/model/db/build checks are skipped.
Args: project_root: Project root directory. Auto-detected from CWD if omitted.
Returns: dict: {init_status, deps, build_system, compile_db, index, llm}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_root | No | Project root. Auto-detected if omitted. Pass explicitly when the project is not the server cwd. |