Repository navigation
feat(mcp): issue short-lived HTTP GET URLs for rendered timeline PNGs - #1198
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
October 29, 2026 08:51
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces an in-memory RenderedTimelineStore with TTL support to serve rendered timeline PNG images over HTTP GET and HEAD endpoints. It integrates this store into the MCP server initialization and updates the render_timelines tool to return a short-lived image URL and expiration metadata in its Markdown summary. All associated tests, templates, and handlers have been updated to support this new functionality. No review comments were provided, so there is no additional feedback to address.
Merged
via the queue into
GoogleCloudPlatform:main
with commit Oct 30, 2026
95b6498
17 checks passed
3 of 6 tasks
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.
Part of #1193
Summary
The
render_timelinesMCP tool previously returned rendered timeline screenshots solely as inlineimage/pngtool content. While MCP clients display inline images in the model's context window, they do not expose the binary payload to an agent's shell or file tools, preventing agents from embedding rendered timelines in Markdown reports (), saving PNG files alongside writeups, or uploading screenshots to external documents.This change introduces an in-memory TTL store for MCP-generated assets (
mcp.AssetStore, 30-minute TTL, analogous torequest_file_upload) and exposes a short-lived HTTP GET/HEAD endpoint at/api/v1/mcp-assets/:fileName. Everyrender_timelinesresponse now issues animage/pngasset URL (/api/v1/mcp-assets/<token>.png) and includes the URL, its expiration timestamp, and ready-to-use Markdown embed andcurldownload snippets alongside the inlineImageContent.UI / Output Changes
Sample
render_timelinesMarkdown text output