Files
pad/internal/mcp
xarmian 7962fabaeb feat(onboard): make natural language the canonical onboard trigger (TASK-1849) (#741)
* feat(onboard): make natural language the canonical onboard trigger (TASK-1849)

The onboard procedure already single-sourced to the seeded playbook body —
both SKILL.md and the MCP pad_onboard prompt deferred to it rather than
restating it. But two gaps remained:

- Both hardcoded `/pad onboard`, a Claude-Code-ism. SKILL.md installs into
  Codex (`$pad`) and others too, so the nudge/routing copy was wrong off
  Claude Code. Reframe NL ("set up my workspace") as the canonical trigger;
  `/pad onboard` · `$pad onboard` · the `pad_onboard` MCP prompt are now
  per-surface shortcuts into the same playbook.
- The MCP prompt resolved the playbook via CLI commands (`pad playbook
  list`/`show`) that a shell-less MCP client can't run. Rewrite it to use
  the `pad_playbook` tool (action:list / action:get ref:onboard); CLI form
  kept as a secondary note. This closes the real single-source gap.

Agent-instruction surfaces only (SKILL.md + MCP prompt text); no CLI/MCP
catalog changes (CONVE-1741).

Parent: PLAN-1847. Absorbs cancelled TASK-1848.

Claude-Session: https://claude.ai/code/session_01KmxkPxLksjf1pmrZDpsnTJ

* fix(onboard): use pad_library activate for shell-less onboard recovery per Codex review (round 1)

Round-1 review flagged that the MCP prompt's missing-playbook fallback sent
agents to the web UI even though pad_library action=activate is callable from
a shell-less MCP client. Activate "Onboard a workspace" via the tool, then
re-list, before deferring to the user.

Claude-Session: https://claude.ai/code/session_01KmxkPxLksjf1pmrZDpsnTJ
2026-06-21 10:37:14 -04:00
..