Skip to content

feat(replay): Add session replay commands to CLI #481

@sentry-junior

Description

@sentry-junior

Summary

The CLI currently has no support for session replays. There is value in a dedicated CLI approach for replays — particularly for agent/automation use cases where you can pull down large sets of replays and run bash pipelines over them — that the MCP server does not yet support well.

Current Behavior

Session replay data is only accessible via the Sentry web UI or through the MCP server. There is no way to list, download, or inspect replays programmatically from the CLI.

Gap

  • MCP is limited in bulk/batch replay workflows; a CLI approach enables scripting and piping (e.g., download lots of replays, run bash commands over them)
  • No prior art in getsentry/cli for replay commands

Options

  1. CLI-native replay commands — Add sentry replay list and sentry replay view commands backed by the Sentry Replays API, following the existing patterns for sentry span, sentry trace, etc.
  2. MCP only — Extend the MCP server instead; but bulk operations and bash pipelines are harder to express there
  3. Both in parallel — CLI for automation/scripting, MCP for interactive agent flows

Recommendation

Build CLI-native replay commands in parallel with any MCP experimentation. The CLI unlocks bulk pull-down and composable scripting that MCP cannot easily provide today.

Action taken on behalf of Miguel Betegón.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions