Step-by-step answer
Stretch 60 min7 stepsTurn the tool into an MCP server
The same parser behind a thin MCP layer. A Zod input schema makes a wrong section impossible to send, the handler rejects title numbers that aren't in the pack, and a small script compares the MCP run with the CLI run from the same Claude Code traces.
Back to the exercise