Urgent.News

the world's headlines, one feed

More in Tech

My MCP Tool Fetches Before It Writes and Logs Every Change. It Never Checked Whether There Was Anything to Change.

Two fixes ago, update_article — one of the tools in this repo's MCP server — got hardened twice. The first time, because it took a bare integer article_id , PUT whatever fields you gave it straight to…

  • MCP tool fetched empty data to DEV.to API with bare integers
  • Hardcoded diff logged even when no changes made
  • Function lacked check for any changes before updating