feat: MCP get_pass_chart — agents get a rendered sky chart back - #16
Merged
Conversation
Was 'over Observer' for raw lat/lon; now shows the coords in the chart title and summary.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
coffee-converter
added a commit
that referenced
this pull request
Jul 3, 2026
* docs: spec for MCP get_pass_chart (rendered sky chart tool)
* docs: implementation plan for MCP get_pass_chart
* refactor(og): rasterizeSvg(svg, {width}); rasterizeCard delegates
* feat(mcp): nextPassWindow — expose the next pass's raw window
* feat(og): renderPassChartSVG accepts satName for the chart title
* feat(mcp): pass-chart orchestrator — next pass -> PNG + summary
* feat(mcp): get_pass_chart tool returns an image + text content block
* docs(mcp): list get_pass_chart on llms.txt / mcp page / SKILL.md
* fix(mcp): label the chart by coordinates when no place name is given
Was 'over Observer' for raw lat/lon; now shows the coords in the chart
title and summary.
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.
Summary
Adds an MCP tool,
get_pass_chart, that returns a rendered polar sky chart (PNG) of a satellite's next pass over a location — the same annotated chart the web app shows (horizon circle, the pass arc, and the moon/planets/stars in their real positions), handed back to an AI agent as an image. Almost no MCP servers return rendered visuals; an agent that answers "when can I see the ISS from Tokyo?" with an actual picture of where to look is a real standout.Reuses the existing OG-image render pipeline — no new rendering.
renderPassChartSVG+@resvg/resvg-wasmalready produce the chart server-side for share-link images; the MCP'smakeEcefSampleris a drop-in for the OGissEcefAt.get_pass_chart(satellite, lat/lon or location, mode?)→ finds the next pass of that mode (72h scan), renders it, returns an image + text content block (text-only when there's no upcoming pass, so it degrades gracefully on text-only clients).nextPassWindowexposes the next pass's raw window (factored out ofsummarizePassvia a sharedpeakOf);rasterizeSvg(svg, {width})generalizesrasterizeCard;renderPassChartSVGnow takes asatNamefor the chart title./llms.txt, the/mcppage, andSKILL.md.Test plan
npm test— 381/381 pass, incl. anode:testintegration test that runs the real DOM + resvg-wasm render (returns a non-empty PNG for a pass; text-only for none).npm run typecheck && npm run build— clean; the{type:'image'}content block typechecks against the MCP SDK schema natively.tools/call get_pass_chart {satellite:"ISS", location:"Tokyo", mode:"radio"}→ animagecontent block (multi-KB base64 PNG) + a text summary.Spec/plan:
docs/superpowers/{specs,plans}/2026-06-15-mcp-pass-chart*.