Repository navigation
docs(pi): clarify fixed shared MCP config location - #125
Merged
Merged
Conversation
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #123
Verified the installed
pi-mcp-adapter2.32.1 at/home/dev/.pi/agent/npm/node_modules/pi-mcp-adapter. Its exact shared-global lookup isjoin(homedir(), ".config", "mcp", "mcp.json")inconfig.ts:13. Normal discovery adds that path asshared-globalatconfig.ts:438-449, andloadMcpConfigreads and merges the discovered sources atconfig.ts:318-331. There is noXDG_CONFIG_HOMElookup. The installed CLI independently uses the same fixed path incli.js:42. Source paths above are relative to the installed package directory.PI_MCP_CONFIG_MODE=exclusivebypasses shared discovery (config.ts:426-435); it does not redirect the shared-global path to XDG.Both writers therefore keep
$HOME/.config/mcp/mcp.json, even whenXDG_CONFIG_HOMEis set. README and INSTALL now explain why. The Rust init plan warning names the fixed location and ignored variable; its regression test checks both the warning and planned target. Doctor and dry-run target resolution remain unchanged. No TypeScript installer or browser-entry logic changed.All requested validation passed:
bun install --frozen-lockfile,bun run typecheck,bun run lint,bun run test,bun run build,cargo fmt --check,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked, andcomplexity-gate check --changed. Vitest: 114 files passed, 1,473 tests passed, four skipped. Rust includes all 34 init tests passing. Explicit complexity checks of both touched Rust files checked 86 functions with no violations or unverified files. Live Android and opt-in live Flutter were not exercised.Independent final review found no blocking issues. Rebased on
origin/mainbefore opening. No unresolved implementation issues; no path change is needed for this adapter version.