KosmoKrator

monitoring

Sentry CLI for Headless Automation

Use the Sentry CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write API token auth

Sentry CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The Sentry CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Sentry CLI for Headless Automation
kosmokrator integrations:configure sentry --set auth_token="$SENTRY_AUTH_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call sentry.sentry_list_projects '{"query":"example_query"}' --json

Discovery Before Execution

Agents and scripts can inspect Sentry docs and schemas before choosing a function.

kosmo integrations:docs sentry --json
kosmo integrations:docs sentry.sentry_list_projects --json
kosmo integrations:schema sentry.sentry_list_projects --json
kosmo integrations:search "Sentry" --json
kosmo integrations:list --json

Useful Sentry CLI Functions

FunctionTypeParametersDescription
sentry.sentry_list_projects Read query List all Sentry projects accessible to the authenticated user. Returns project slugs, organization slugs, and platforms for use in other Sentry tools.
sentry.sentry_get_project Read org_slug, project_slug Get detailed information about a specific Sentry project, including its slug, platform, team assignments, and error statistics.
sentry.sentry_list_issues Read org_slug, project_slug, query, sort, limit List issues (errors) for a specific Sentry project. Supports filtering by status, query, sorting, and time range. Returns issue IDs, titles, counts, and severity.
sentry.sentry_get_issue Read issue_id Get detailed information about a specific Sentry issue, including the error message, stacktrace, tags, event count, and affected users.
sentry.sentry_list_releases Read org_slug, project_slug, limit List releases for a specific Sentry project. Returns version strings, deployment dates, authors, and commit information.
sentry.sentry_create_issue Write org_slug, project_slug, title, message, level, tags, extra Create a new issue (user report or crash report) in a Sentry project. Requires the error message and optional metadata like stacktrace, tags, and user context.
sentry.sentry_get_current_user Read none Get the currently authenticated Sentry user. Returns user name, email, and organization memberships. Useful for verifying the connection and identifying which Sentry account is being used.

Automation Notes

Related Sentry CLI Pages