Skip to content

feat: support snapshot resource ids - #986

Merged
cameroncooke merged 1 commit into
mainfrom
snapshot-resource-type
May 27, 2026
Merged

cameroncooke merged 1 commit into
mainfrom
snapshot-resource-type

Conversation

@cameroncooke

@cameroncooke cameroncooke commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Allow get_sentry_resource to fetch preprod snapshots through explicit resource IDs as well as URLs. This gives agents a canonical resource-type path for snapshot summaries and selected snapshot images without adding another MCP tool.

Resource IDs

  • resourceType='snapshot' uses resourceId='<snapshotId>'
  • resourceType='snapshotImage' uses resourceId='<snapshotId>:<image_file_name>'

The snapshot image form preserves the full image file name after the first colon, so slash-containing image identifiers continue to work.

Generic Resource Tool Contract

This intentionally does not add snapshot-specific input fields to get_sentry_resource. The explicit snapshotImage resource form returns the default preview behavior. Full-resolution image reads remain available through URL mode by appending &imageResolution=full to a selected-image snapshot URL.

Generated Metadata

Regenerates MCP tool and skill definitions so the new snapshot and snapshotImage resource types are visible to MCP clients and agent routing metadata.

Coverage

Adds tests for explicit snapshot summary lookup and explicit snapshot image lookup, including slash-containing image identifiers.

Co-Authored-By: Codex CLI [email protected]

@cameroncooke

Copy link
Copy Markdown
Contributor Author

@dcramer I'm doing some work on improving MCP support for snapshots, @NicoHinderling recommended I check with you regarding this one, he feels this might be a bit heavy handed. My angle was we were inconsistent not supporting resources by resource type/id. Be interested to get you view, either way I'm not that bothered, just would be good to get your thoughts on whether you think this is worth it.

@cameroncooke
cameroncooke force-pushed the snapshot-mcp-image-resolution branch from 2d54c77 to 1b1bf96 Compare May 21, 2026 11:12
@cameroncooke
cameroncooke force-pushed the snapshot-resource-type branch from a831f14 to 18284d5 Compare May 21, 2026 11:12
@dcramer

dcramer commented May 21, 2026

Copy link
Copy Markdown
Member

I’m in favor - until we can safely expose hundreds of tools without losing all steering well to continue to be clever

@cameroncooke
cameroncooke force-pushed the snapshot-resource-type branch from 18284d5 to b42f876 Compare May 26, 2026 09:00
@cameroncooke
cameroncooke force-pushed the snapshot-mcp-image-resolution branch from 1b1bf96 to 6e4b175 Compare May 26, 2026 09:00
@cameroncooke
cameroncooke changed the base branch from snapshot-mcp-image-resolution to graphite-base/986 May 26, 2026 10:08
@cameroncooke
cameroncooke force-pushed the snapshot-resource-type branch from b42f876 to 8f82d04 Compare May 26, 2026 10:37
@cameroncooke
cameroncooke changed the base branch from graphite-base/986 to snapshot-mcp-image-resolution May 26, 2026 10:37
@cameroncooke
cameroncooke force-pushed the snapshot-mcp-image-resolution branch from 99d219e to 663840f Compare May 27, 2026 11:18
@cameroncooke
cameroncooke force-pushed the snapshot-resource-type branch from 8f82d04 to 7a50a46 Compare May 27, 2026 11:18
@cameroncooke
cameroncooke changed the base branch from snapshot-mcp-image-resolution to graphite-base/986 May 27, 2026 13:03
@cameroncooke
cameroncooke force-pushed the snapshot-resource-type branch from 7a50a46 to b6611e1 Compare May 27, 2026 13:04
@cameroncooke
cameroncooke changed the base branch from graphite-base/986 to snapshot-mcp-image-resolution May 27, 2026 13:04
@cameroncooke
cameroncooke force-pushed the snapshot-resource-type branch from b6611e1 to 85db962 Compare May 27, 2026 13:12
@cameroncooke
cameroncooke force-pushed the snapshot-mcp-image-resolution branch from 6a2eed9 to 7678454 Compare May 27, 2026 13:12

cameroncooke commented May 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

  • May 27, 2:09 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 27, 2:17 PM UTC: Graphite rebased this pull request as part of a merge.
  • May 27, 2:17 PM UTC: @cameroncooke merged this pull request with Graphite.

@cameroncooke
cameroncooke changed the base branch from snapshot-mcp-image-resolution to graphite-base/986 May 27, 2026 14:14
@cameroncooke
cameroncooke changed the base branch from graphite-base/986 to main May 27, 2026 14:15
Allow get_sentry_resource to fetch preprod snapshots by resourceType='snapshot' and snapshot images by resourceType='snapshotImage' with resourceId '<snapshotId>:<image_file_name>'. Regenerate MCP definitions and cover explicit snapshot resource lookup paths.

Co-Authored-By: Codex CLI <[email protected]>
@cameroncooke
cameroncooke force-pushed the snapshot-resource-type branch from 85db962 to a7f1d05 Compare May 27, 2026 14:16
@cameroncooke
cameroncooke merged commit 32166d7 into main May 27, 2026
17 checks passed
@cameroncooke
cameroncooke deleted the snapshot-resource-type branch May 27, 2026 14:17
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.

3 participants