mcp — the model context protocol7 / 9
servers, tools, and the protocol — how ai agents plug into your stack
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.
Booting Python…
Output
[promptdojo:~]$ _