Skip to content

Datawrapper MCP V2 2.7.0

Choose a tag to compare

@JohnnyTheTank JohnnyTheTank released this 01 Dec 14:52
· 42 commits to main since this release

Tooltip variables follow Datawrapper's rule

  • Tooltip templates and computed-column formulas address columns by variables. The server described them as "lower-cased, non-alphanumerics → '_'", but Datawrapper removes those characters instead: "Einwohner je km²" is einwohner_je_km, not einwohner_je_km_. The rule is now the one in Datawrapper's chart code, including _1 suffixes for columns whose variables collide.
  • create_chart and update_chart rewrite variables that clearly mean one column before upload (old _ rule, upper case, umlauts) and say so under Notes. A quoted column name where a value goes ({{ "Einwohner je km²" }}, FORMAT("Einwohner je km²", "0.0")) becomes the variable. Other unknown names are warnings with a suggestion. Before, a wrong variable went unnoticed: tooltips are not part of the PNG preview.
  • create_chart, update_chart and analyze_data return the variable of every column (column_variables, columns[].variable).

One chart viewer per "show me a chart"

  • get_chart no longer opens the chart viewer; it is the text view of a chart (details, metadata, data, embed codes). Asked to show a chart, agents called get_chart and preview_chart together, and MCP Apps clients opened two viewers: one with the preview and one with only "Press Refresh". The viewer that loaded last made the other inert, which could be the one with the image.
  • The server instructions name preview_chart as the tool to show a chart. New eval task show-chart: before the change no run of Haiku or Sonnet (with and without tool search, 12 runs) showed the chart with preview_chart alone. After it, every run starts with preview_chart. The get_chart calls that remain come after the preview and only because the eval's fake API answers with a 1×1 PNG.

Security

Patches from a Claude Security scan of 2.6.0, each checked by a second reviewer. None is known to have been used.

  • Linear time for untrusted input: footnote and Markdown checks, tooltip placeholders, text cleanup, Google Sheets links, custom topologies, map.patterns, visualize keys, find_basemap query expansion and "did you mean" suggestions no longer slow down quadratically on long crafted input.
  • HTTP server: /mcp reads request bodies up to 4 MiB (before 12 MB) and parses them once. Larger inline data goes through external_url, data.google_sheet or the local server. The basemap value cache holds at most 32 MiB.
  • Client metadata documents: their hosts are resolved by a separate resolver with one short try, so slow nameservers cannot hold up the server's other DNS lookups; private DNS answers no longer appear on the consent error page.
  • Token refresh from claude.ai: when the rate-limit bucket shared by Anthropic's egress addresses is empty, a code or refresh token this server issued is counted per Datawrapper user, so sign-in and refresh keep working.
  • Delete dialog: delete_chart names the action, chart id and consequence first and then the chart title on one line, cleaned of control and bidi characters and cut to 80 characters. A chart title can no longer make the dialog read like a different request.

Usage statistics

  • collect-stats prune --before YYYY-MM-DD deletes earlier days from the collected file; later collections skip them. The dashboard filters by a date range.
  • The dashboard shows error text as text and links only absolute run URLs.