Skip to content

Datawrapper MCP V2 2.6.0

Choose a tag to compare

@JohnnyTheTank JohnnyTheTank released this 30 Nov 20:17
· 60 commits to main since this release

Unknown fields are reported

  • create_chart and update_chart reject fields they do not know, at any depth, before anything is sent to Datawrapper: style: {sortt: true} now answers style: unknown field "sortt" … Did you mean "sort" or "sort_by"?. Before, such a field was dropped without a word and the chart missed what was asked for. Free-form parts (series names in series_colors, visualize, metadata, data rows) accept any key as before.
  • describe_chart_type lists the style fields a chart type supports, with their values. The list is derived from what the server does with each field for that type; the type references of the building-charts skill carry it too.

Output schemas

  • 16 tools declare what they return in structuredContent (outputSchema): the chart tools (create_chart, update_chart, get_chart, preview_chart, copy_chart, search_charts, publish_chart, get_embed_code), folders, comments, analyze_data, find_basemap and match_regions. Clients that process results in code know the fields.
  • A result always fits its schema: a success without structured content carries its text as message, and content that does not fit is sent in that form and logged (field names only) instead of failing a call that already changed the chart.

Smaller tool list

  • update_chart names the fields of style (with their values), map and annotations and points to create_chart instead of repeating their schemas; markers keeps its schema. The tool list shrinks from about 167,000 to 133,000 characters, which every client without deferred tool loading sends with each conversation. Arguments are validated against the full schemas as before; the same call gives the same result and the same Datawrapper requests. DW_TOOL_SCHEMA=full brings the long form back.
  • Agent evals back the change (Haiku and Sonnet, three runs per task). With tool search, the six tasks that change an existing chart passed as often as with the long form (Sonnet 17 of 18 runs, Haiku 14 of 18, in both forms), with the same number of tool calls and 36–40 % fewer input tokens. An earlier, shorter form that also left markers and the style values out passed with all schemas in context but needed extra calls for map and marker changes under tool search; that is why those two stayed in.
  • describe_chart_type lists the fields inside object-valued style fields with their values (color_scale.mode: "continuous" | "steps"). With the field names alone, agents guessed values.
  • Agent evals: npx tsx scripts/eval/run.ts lets claude -p solve the tasks in evals/ against a fake Datawrapper API and scores the charts by machine (see docs/development.md).
  • npx tsx scripts/tool-budget.ts prints the size of every tool definition; a test keeps the list below a ceiling.

Chart viewer (MCP App)

  • Larger preview: inline, the image uses the space header, toolbar and warnings leave of the 500 px card instead of a fixed 260 px; in fullscreen it fills the stage width, keeps its aspect ratio and stays within the host's container height.
  • Sharper preview: preview_chart takes an optional zoom (1–2, default 1). The viewer asks for zoom 2 on Refresh, the width/theme/chart-only toggles and when it switches to fullscreen, and falls back to 1x if a 2x image exceeds the size limit. create_chart and update_chart keep returning 1x images, so the model's context does not grow.

Security

Findings of a security audit of 2.5.3. None is known to have been used.

  • One-time sign-in links need confirmation: open_in_editor returns the plain editor URL unless the user confirmed the link (client dialog or user_confirmed: true). While an issued link works, every tool refuses input that contains it, so text planted in a chart or comment cannot make the assistant write it into a chart, a comment or a URL.
  • Basemap caches are per user: on a shared server the basemap list and region values one token fetched were served to every user for a day. Private basemaps of a workspace stay with the accounts that can read them; users with the same list still share one copy.
  • Moves and copies into another team ask first: move_charts, copy_chart, update_folder and copy_folder need confirmation when charts or folders enter a team or workspace they are not in (its members can then see and edit them). Moves inside a team, into a folder or to the personal charts are unchanged.
  • No redirect for unknown clients before the user acted: /authorize answers a request it cannot accept (wrong response_type, missing PKCE, wrong resource) with an error page unless the client is a built-in known one. Before, a self-registered client could turn a link to the server into a redirect to its own address.
  • The redirect that carries the authorization code sends Cache-Control: no-store and Referrer-Policy: no-referrer.
  • A failed client-metadata fetch shows a fixed text; the network error (address, port) goes to the log.
  • /mcp runs without a checked bearer only in the local MCP_AUTH=none mode (no behaviour change; guards against a later routing mistake).