Skip to content

feat: get_pass_chart returns the full chart layout (title, legend, meta) - #17

Merged
coffee-converter merged 1 commit into
mainfrom
seeksat-mcp-chart-full-layout
Jun 15, 2026
Merged

feat: get_pass_chart returns the full chart layout (title, legend, meta)#17
coffee-converter merged 1 commit into
mainfrom
seeksat-mcp-chart-full-layout

Conversation

@coffee-converter

Copy link
Copy Markdown
Owner

The get_pass_chart MCP tool was reusing the OG social-card render, which is cropped to the bare circle (no title, legend, or date). For an agent receiving a standalone image, the full modal layout is more useful and matches what the website serves.

  • renderPassChartSVG gains a full option: paints the legend and keeps the title/meta header, sky background, and watermark (default stays cropped, so the OG card path is unchanged).
  • get_pass_chart requests full: true and rasterizes at 800px.
  • Fixes a browser-global leak: paintPolarModalLegend read location.search (a ?demoLegend debug toggle) unconditionally, which threw during server-side render — now guarded with typeof location !== 'undefined'.

381/381 tests, typecheck + build clean. Verified by rendering a chart locally (title + Start/Peak/End times + legend + watermark all present).

The tool was reusing the OG social-card crop (bare circle). Add a
option to renderPassChartSVG that paints the legend and keeps the title/
meta header, sky background, and watermark — a self-contained chart for
agents, matching the on-screen modal. Also guard paintPolarModalLegend's
browser-only `location.search` read so it renders server-side.
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
seeksat Ready Ready Preview, Comment Jun 15, 2026 4:13pm

Request Review

@coffee-converter
coffee-converter merged commit 013d181 into main Jun 15, 2026
1 of 3 checks passed
@coffee-converter
coffee-converter deleted the seeksat-mcp-chart-full-layout branch June 15, 2026 16:13
coffee-converter added a commit that referenced this pull request Jul 3, 2026
The tool was reusing the OG social-card crop (bare circle). Add a
option to renderPassChartSVG that paints the legend and keeps the title/
meta header, sky background, and watermark — a self-contained chart for
agents, matching the on-screen modal. Also guard paintPolarModalLegend's
browser-only `location.search` read so it renders server-side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant