Repository navigation
fix(mcp): stop pointing users at removed gaia mcp add after init - #1377
Conversation
`gaia init --profile mcp` and `gaia mcp list` both printed `gaia mcp add ...` as the way to register a server, but that command was removed in #977 — copy-pasting it errors out. Point users at the path that actually works today: edit ~/.gaia/mcp_servers.json directly (with a correct mcpServers example) and run `gaia mcp list` to verify. Runtime counterpart to the docs-only fixes in #1298.
Code ReviewApprove. Tight, correct, well-scoped fix: both runtime messages that pointed users at the removed Summary
Issues🟢 Same dead reference still lives in the Settings UI ( 🟢 Empty-state branch is untested ( Strengths
VerdictApprove — ready to merge. The two 🟢 notes are optional follow-ups, not blockers. |
Restore the amd-gaia.ai/docs/ prefix on the two MCP guidance links — issue #1058's invariant (tests/unit/test_amd_gaia_urls.py) requires it for URLs in src/. Also strip newlines before substring-checking the init guidance, since rich wraps the long config path across lines on CI's 80-col terminal.
Records the rule that broke this PR's first CI run: amd-gaia.ai URLs in src/gaia/ must keep the /docs/ prefix (enforced by tests/unit/test_amd_gaia_urls.py, issue #1058).
…p 429 flakes (amd#1379) The Linux "Full Integration" CI job has been flaking on every release/PR — including the v0.20.0 release PR (amd#1334) and amd#1377. Root cause: it pulls `Qwen3-0.6B-GGUF` from HuggingFace **unauthenticated**, so shared GitHub runners hit `429 Too Many Requests`, Lemonade fails to start, and the whole job (summarizer/RAG/lemonade-client integration) fails. The Windows CLI, SD, and Agent SDK jobs already pass `HF_TOKEN` and never flake — this just brings the Linux job to parity. After this, the Linux integration job authenticates its model pulls and stops 429-flaking. ## Test plan - [ ] CI on this PR: **GAIA CLI Tests (Linux) → Test GAIA CLI on Linux (Full Integration)** reaches the model pull without a `429` and passes - [ ] Confirm no secret leakage in logs (GitHub masks `secrets.*` automatically) Co-authored-by: Ovtcharov <[email protected]>
gaia init --profile mcpfinishes by telling the user to rungaia mcp add time "uvx mcp-server-time", andgaia mcp list(empty state) says the same. That command was removed in #977 — anyone who follows the on-screen guidance hits an "invalid choice" error on their very first step. This swaps both messages for the path that works today: edit~/.gaia/mcp_servers.jsondirectly (shown with a correctmcpServersexample) and verify withgaia mcp list. The stale/docs/doc link is corrected to the livehttps://amd-gaia.ai/guides/mcp/clienttoo.Split out of #1298, which purged these same dead
gaia mcp add/removereferences from the docs but deliberately scoped itself todocs/— this fixes the matching runtime CLI output that #1298 left untouched. Related to #1075 (init profiles need attention) but distinct from it: #1075 tracks model-download profiles collapsing to Gemma-4-E4B, whereas themcpprofile downloads no model at all and was failing purely on its post-setup guidance.Test plan
pytest tests/unit/installer/test_mcp_init.py— new regression test asserts the guidance contains nogaia mcp addand does point at editingmcp_servers.jsongaia init --profile mcp --yes— "Next steps" shows the config-file edit +gaia mcp list, no dead commandgaia mcp list(no servers configured) — empty-state guidance shows the config example, no dead commandpython util/lint.py --black --isortpasses