mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
`mcp add --target pi` without `--pi-extension` failed at render time with "Pi requires piExtension", so scripts had to know about Pi's modes before they could add anything. The maintainer decided new servers that reach Pi should use Pi's built-in MCP (Pi >= 0.99.0) when no mode was chosen. `mcp add` and `mcp import` now store `piExtension: builtin` at creation time when the server's own or inherited targets include Pi or a Pi account. The mode of other servers is not consulted, stored values are never rewritten, and switch-only entries keep inheriting the global server's mode. renderPi still refuses an entry without a mode, so a hand-written config stays explicit. Integration tests prove the built-in file follows the scope: ~/.pi/agent/mcp.json globally, <root>/.pi/mcp.json in project mode and for a server under mcp.projects.