Skip to content

sentry

Query Sentry issues, events, releases, alerts, and monitors.

The sentry command provides both direct resource operations and natural-language incident triage through clanker sentry ask.

Usage

bash
clanker sentry [command]

Alias: sn

Authentication

yaml
sentry:
  auth_token: ""
  org_slug: ""
  default_project: ""
  host: "sentry.io"

Environment variables:

VariableDescription
SENTRY_AUTH_TOKENSentry User Auth Token
SENTRY_ORGSentry organization slug
SENTRY_PROJECTDefault project slug
SENTRY_HOSTSentry host; defaults to sentry.io

Recommended token scopes depend on the operation. Read-only triage needs org/project/event read scopes. Mutating commands such as resolve, ignore, assign, monitor mute, and alert deletion need the corresponding write/admin scopes.

Commands

CommandDescription
askAsk natural-language questions about your Sentry organization
listList resources such as issues, projects, teams, releases, monitors, or alerts
getGet a single Sentry resource
resolveMark one or more issues as resolved
ignoreMark one or more issues as ignored
assignAssign an issue to a user
monitorManage Sentry Crons monitors
alertManage Sentry alert rules

Examples

bash
clanker sentry list issues --unresolved --period 24h --project api
clanker sentry get issue PROJECT-123
clanker sentry resolve PROJECT-123 PROJECT-456
clanker sentry monitor checkins nightly-job

Natural-language triage:

bash
clanker sentry ask "what is the worst error today?"
clanker sentry ask "any new errors since the last release?" --project api
clanker sentry ask "are any monitors failing?"
clanker sentry ask "show unresolved issues in prod" --environment prod

ask gathers relevant Sentry data concurrently and keeps per-org conversation history for follow-up questions.

MCP

The MCP server exposes Sentry tools including:

  • clanker_sentry_ask
  • clanker_sentry_list_issues
  • clanker_sentry_get_issue
  • clanker_sentry_resolve_issues
  • clanker_sentry_list_releases

See mcp for transport setup.