promptdojo_

Servers, tools, and the protocol — how AI agents plug into your stack — step 7 of 9

Cursor assumed the MCP response had a top-level text field, but MCP responses (like Claude responses) put text inside content[0]. The script crashes with a KeyError. Fix line 8 so the script prints the result text.

Expected output:

3 open tasks
The break is on line 8 — but read the whole snippet first.

full-screen editor opens — close anytime to keep reading.