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.
⌘↵ runs the editor.read, then continue.
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.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.