KosmoKrator

productivity

Bugsnag CLI for AI Agents

Use the Bugsnag CLI from KosmoKrator to call Bugsnag tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 7 read 0 write API token auth

Bugsnag CLI Setup

Bugsnag can be configured headlessly with `kosmokrator integrations:configure bugsnag`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure bugsnag --set api_token="$BUGSNAG_API_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor bugsnag --json
kosmokrator integrations:status --json

Credentials

Authentication type: API token api_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_token BUGSNAG_API_TOKEN Secret secret yes API Token

Call Bugsnag Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call bugsnag.bugsnag_list_projects '{
  "limit": 1,
  "offset": 1,
  "q": "example_q"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:bugsnag bugsnag_list_projects '{
  "limit": 1,
  "offset": 1,
  "q": "example_q"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs bugsnag --json
kosmo integrations:docs bugsnag.bugsnag_list_projects --json
kosmo integrations:schema bugsnag.bugsnag_list_projects --json
kosmo integrations:search "Bugsnag" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Bugsnag.

bugsnag.bugsnag_list_projects

Read read

List Bugsnag projects visible to the authenticated user. Returns project names and IDs that can be used with other tools.

Parameters
limit, offset, q

Generic CLI call

kosmo integrations:call bugsnag.bugsnag_list_projects '{"limit":1,"offset":1,"q":"example_q"}' --json

Provider shortcut

kosmo integrations:bugsnag bugsnag_list_projects '{"limit":1,"offset":1,"q":"example_q"}' --json

bugsnag.bugsnag_get_project

Read read

Get details for a single Bugsnag project, including its name, API key, type, and error counts.

Parameters
id

Generic CLI call

kosmo integrations:call bugsnag.bugsnag_get_project '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:bugsnag bugsnag_get_project '{"id":"example_id"}' --json

bugsnag.bugsnag_list_errors

Read read

List errors for a Bugsnag project. Supports filtering by severity and status, and sorting by various fields.

Parameters
project_id, limit, offset, severity, status, sort

Generic CLI call

kosmo integrations:call bugsnag.bugsnag_list_errors '{"project_id":"example_project_id","limit":1,"offset":1,"severity":"example_severity","status":"example_status","sort":"example_sort"}' --json

Provider shortcut

kosmo integrations:bugsnag bugsnag_list_errors '{"project_id":"example_project_id","limit":1,"offset":1,"severity":"example_severity","status":"example_status","sort":"example_sort"}' --json

bugsnag.bugsnag_get_error

Read read

Get details for a specific Bugsnag error, including its message, severity, context, and stack trace.

Parameters
id

Generic CLI call

kosmo integrations:call bugsnag.bugsnag_get_error '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:bugsnag bugsnag_get_error '{"id":"example_id"}' --json

bugsnag.bugsnag_list_events

Read read

List events (individual error occurrences) for a Bugsnag project. Optionally filter by a specific error.

Parameters
project_id, limit, offset, error_id

Generic CLI call

kosmo integrations:call bugsnag.bugsnag_list_events '{"project_id":"example_project_id","limit":1,"offset":1,"error_id":"example_error_id"}' --json

Provider shortcut

kosmo integrations:bugsnag bugsnag_list_events '{"project_id":"example_project_id","limit":1,"offset":1,"error_id":"example_error_id"}' --json

bugsnag.bugsnag_list_collaborators

Read read

List collaborators (team members) for a Bugsnag organization.

Parameters
org_id, limit, offset

Generic CLI call

kosmo integrations:call bugsnag.bugsnag_list_collaborators '{"org_id":"example_org_id","limit":1,"offset":1}' --json

Provider shortcut

kosmo integrations:bugsnag bugsnag_list_collaborators '{"org_id":"example_org_id","limit":1,"offset":1}' --json

bugsnag.bugsnag_get_current_user

Read read

Get the currently authenticated Bugsnag user, including name, email, and associated organizations.

Parameters
none

Generic CLI call

kosmo integrations:call bugsnag.bugsnag_get_current_user '{}' --json

Provider shortcut

kosmo integrations:bugsnag bugsnag_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

bugsnag.bugsnag_list_projects

List Bugsnag projects visible to the authenticated user. Returns project names and IDs that can be used with other tools.

Operation
Read read
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_projects --json
ParameterTypeRequiredDescription
limit integer no Maximum number of projects to return (default: 30).
offset integer no Number of projects to skip for pagination (default: 0).
q string no Search query to filter projects by name.

bugsnag.bugsnag_get_project

Get details for a single Bugsnag project, including its name, API key, type, and error counts.

Operation
Read read
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_project --json
ParameterTypeRequiredDescription
id string yes The project ID.

bugsnag.bugsnag_list_errors

List errors for a Bugsnag project. Supports filtering by severity and status, and sorting by various fields.

Operation
Read read
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_errors --json
ParameterTypeRequiredDescription
project_id string yes The project ID to list errors for.
limit integer no Maximum number of errors to return (default: 30).
offset integer no Number of errors to skip for pagination (default: 0).
severity string no Filter by severity: "error", "warning", or "info".
status string no Filter by status: "open", "fixed", or "snoozed".
sort string no Sort order: "created_at", "updated_at", or "unhandled_occurrence_count".

bugsnag.bugsnag_get_error

Get details for a specific Bugsnag error, including its message, severity, context, and stack trace.

Operation
Read read
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_error --json
ParameterTypeRequiredDescription
id string yes The error ID.

bugsnag.bugsnag_list_events

List events (individual error occurrences) for a Bugsnag project. Optionally filter by a specific error.

Operation
Read read
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_events --json
ParameterTypeRequiredDescription
project_id string yes The project ID to list events for.
limit integer no Maximum number of events to return (default: 30).
offset integer no Number of events to skip for pagination (default: 0).
error_id string no Filter events to a specific error by its ID.

bugsnag.bugsnag_list_collaborators

List collaborators (team members) for a Bugsnag organization.

Operation
Read read
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_collaborators --json
ParameterTypeRequiredDescription
org_id string yes The organization ID.
limit integer no Maximum number of collaborators to return (default: 30).
offset integer no Number of collaborators to skip for pagination (default: 0).

bugsnag.bugsnag_get_current_user

Get the currently authenticated Bugsnag user, including name, email, and associated organizations.

Operation
Read read
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.