Files
skillshare/tests
Willie 83ac85bae4 feat(mcp): default new Pi servers to the built-in MCP
`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.
2026-09-30 15:09:19 +08:00
..