Repository navigation
CLI parity for MCP chart descriptions, counter labels, widget edits and dashboard images - #75
Merged
Merged
Conversation
…ts and dashboard images core#8196 added these to the Dune MCP server (live in node-1.0.1008). The CLI now matches them: - viz create --chart-type/--config now takes --description and sends it to generateVisualization (it was rejected before). - viz update gains --counter-label, and --description now works with --chart-type/--config or on its own, through updateVisualization. An empty value removes the label or description, as in the MCP. - dashboard update-widget moves or resizes one widget, or edits a text widget's markdown, through updateDashboardWidget, keeping every other widget as it is. - dashboard image saves a JPEG of the whole dashboard through getDashboardImage. It fails and lists the visualizations when Dune withholds the image for licensed datasets. It never prints the image URL, which carries a private dashboard's share key; when the image is too large to return inline it downloads it from that URL. dunemcp.Caller gains CallWithImages so commands can read image blocks. The chart config help no longer says Dune does not check column names: the MCP now rejects unknown columns when the query has results. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a2147b-3c2e-76b3-aeaf-0aafbe53d879
rahuldotiyer
requested review from
ivpusic and
norbertdurcansk
and removed request for
norbertdurcansk
November 25, 2026 21:18
norbertdurcansk
approved these changes
Nov 26, 2026
norbertdurcansk
left a comment
Contributor
There was a problem hiding this comment.
Approved, with suggestions. No blockers. The main open item is the question on the too-large download path, which only ran against httptest.
…ors keep the share key out (#78) Review follow-ups on #75: a 200 that is not an image now fails instead of being saved as the JPEG; a test covers download failures (connection refused, HTML page, 403) and asserts the share key never reaches the error; CallTool now wraps CallToolWithImages. Amp-Thread-ID: https://ampcode.com/threads/T-01a2147b-3c2e-76b3-aeaf-0aafbe53d879 Co-authored-by: Amp <amp@ampcode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the CLI up to the Dune MCP features from duneanalytics/core#8196 (live in node-1.0.1008).
viz create --chart-type/--configtakes--description;viz updategains--counter-label, and--descriptionworks with or without a chart config.dashboard update-widget: move or resize one widget, or edit a text widget, keeping the rest.dashboard image: save a JPEG of the whole dashboard to check its layout.Impact map
viz create(chart config path)--descriptionno longer rejected with--config; sent asdescriptiongenerateVisualizationviz update--counter-label(new),--descriptionrouted through the MCP; empty string removesupdateVisualizationdashboard update-widgetupdateDashboardWidgetdashboard image--filedefaults todashboard-<id>.jpggetDashboardImagedunemcp.CallerCallWithImages(image content blocks)Review notes
update-widgeton someone else's dashboard returns the MCP's "not authorized" error.withheldVisualizationIdsis non-empty,dashboard imagefails and lists those IDs, and writes no file. Checked live on prod dashboards.dashboardImageUrlcarries a private dashboard's share key, so it is left out of text and JSON output, and stripped from download errors. It is only used to download the image when the MCP leaves it out as too large to inline (>4 MB).viz update --descriptionwithout--chart-typenow goes throughupdateVisualizationinstead of the REST GET+PUT only when combined with--counter-label; on its own it still uses REST, unchanged.Testing
go test ./...andgo vet ./...pass. New tests cover widget arg shaping (numeric vs UUID IDs,sizeX/sizeY), input rejection before any call, inline image save, the too-large download path, withheld images, the share key never reaching output, and description/counter-label args, including the empty-string removal.dashboard image 481saved a valid 2388×2210 JPEG; dashboards with licensed or never-run charts returned the withheld error.No visual surface: CLI only.