Pi

Pi has no documented MCP server support, so there’s nothing to wire a config into. KYA still gates it, through kya wrap, which evaluates a command before it runs and records the decision in the record (trail).

Setup

Nothing to install beyond the KYA CLI itself:

npm i -g @shield-agent/kya

Then put wrap in front of however you invoke Pi: an API script, a shell alias, a cron job:

kya wrap --tool-id pi.chat.send -- python scripts/ask_pi.py "Summarize this diff"

Wrap exits 0 on Allow, 4 on Hold (a person must approve), 1 on Deny, so kya wrap … && ./next-step.sh can’t skip the gate.

What KYA reports

Every wrapped invocation leaves a record row: tool id, decision, timestamp, duration. kya receipt --open shows them; --offline rows stay local.

Files written

None. Wrap writes record rows under .kya/ in the project where you run it; Pi’s own config is untouched.

Verify

kya wrap --offline --tool-id Write --irreversible --args '{"path":"x.ts","content":"hi"}'

Expect a REQUIRE_APPROVE row. An irreversible write with no policy never auto-allows. Then wrap a trivial Allow-path call and see both rows on the receipt.

Uninstall

Nothing was wired. Delete the wrap from your scripts/aliases and remove .kya/ if you don’t want the local record.

Troubleshooting

Honesty note

Wrap gates the commands you route through it. Pi calls made any other way (a browser tab, an unwrapped script, a mobile app) never touch KYA. Coverage is exactly the set of invocations you wrap, no more.

If Pi ships MCP support

This page gets promoted to a kya connect recipe when a verified MCP config path exists. The bar for promotion is the checklist in docs/host-recipe.md.