KosmoKrator

productivity

Bugsnag MCP Integration for LangChain

Connect Bugsnag to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write API token auth

Connect Bugsnag to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Bugsnag MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-bugsnag": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=bugsnag",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=bugsnag --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Bugsnag instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Bugsnag Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Bugsnag integration catalog.

MCP toolSource functionTypeDescription
integration__bugsnag__bugsnag_list_projects bugsnag.bugsnag_list_projects Read List Bugsnag projects visible to the authenticated user. Returns project names and IDs that can be used with other tools.
integration__bugsnag__bugsnag_get_project bugsnag.bugsnag_get_project Read Get details for a single Bugsnag project, including its name, API key, type, and error counts.
integration__bugsnag__bugsnag_list_errors bugsnag.bugsnag_list_errors Read List errors for a Bugsnag project. Supports filtering by severity and status, and sorting by various fields.
integration__bugsnag__bugsnag_get_error bugsnag.bugsnag_get_error Read Get details for a specific Bugsnag error, including its message, severity, context, and stack trace.
integration__bugsnag__bugsnag_list_events bugsnag.bugsnag_list_events Read List events (individual error occurrences) for a Bugsnag project. Optionally filter by a specific error.
integration__bugsnag__bugsnag_list_collaborators bugsnag.bugsnag_list_collaborators Read List collaborators (team members) for a Bugsnag organization.
integration__bugsnag__bugsnag_get_current_user bugsnag.bugsnag_get_current_user Read Get the currently authenticated Bugsnag user, including name, email, and associated organizations.

Related Bugsnag Pages