{"version":"2.1.333","anchor":"repl-guards-mcp-parsed-lists-and-refuses-modhook-written-sc","canonical_anchor":"repl-guards-mcp-parsed-lists-and-refuses-modhook-written-sc","heading":"REPL now guards lists read from MCP tools and refuses scripts changed by mods or hooks","tier":"notice","area":"REPL","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/repl-guards-mcp-parsed-lists-and-refuses-modhook-written-sc","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### REPL now guards lists read from MCP tools and refuses scripts changed by mods or hooks\n\nThe REPL now blocks treating MCP-parsed lists as text and refuses to run scripts that a mod or hook wrote or changed\n\n**Unclear.** What exactly makes Claude Code treat a Code-tab script as written or changed by a mod or hook is not stated.\n\n**What**\n\nTwo new protections in the REPL (the place where Claude runs short scripts and sees their results):\n\n- Lists read from an MCP tool's text output (MCP is a way to plug outside tools into Claude) now refuse being turned into text, joined together, or searched for punctuation. The error begins \"REPL: this value is a list, parsed from an MCP tool's text\", and a related message says \"A tool returned a list where text was expected\".\n\n- Scripts in the Code tab that a mod or a hook (a user-defined script that runs automatically at set points) wrote or changed are refused, with the message \"Nothing ran: Claude Desktop doesn't run scripts that a mod or a hook wrote or changed.\"\n\n**Why**\n\nThis changes which scripts run and how MCP output behaves in the REPL. A script that relied on treating an MCP list as plain text will now stop with an error, and a script edited by a mod or hook will not run.\n\n- Area: REPL\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}