Bugsnag Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Bugsnag MCP or direct API to monitor errors, triage incidents, update bug statuses, and automate notifications through natural language.
Bugsnag Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Bulk Update ErrorsTool to bulk update multiple errors in a project.
Configure IntegrationTool to configure a new integration for a bugsnag project.
Invite CollaboratorTool to invite a collaborator to an organization.
Create Custom Event FieldTool to create a custom event field for a project.
Create Saved SearchTool to create a new saved search for a project.
Delete All Errors in a ProjectTool to delete all errors in a project.
Delete CollaboratorTool to remove a collaborator from an organization.
Delete a configured integrationTool to delete a configured integration.
Delete Event FieldTool to delete a custom event field.
Delete ProjectTool to delete a project.
Delete Saved SearchTool to delete a saved search.
Get Saved SearchTool to retrieve a saved search by id.
Get Saved Search Usage SummaryTool to get usage summary for a saved search.
List Collaborator Access Details for ProjectsTool to list summary details of the projects a collaborator has access to.
List CollaboratorsTool to list collaborators in an organization.
List Collaborators on ProjectTool to list collaborators on a project.
List Configured Integrations for ProjectTool to list configured integrations for a project.
List Errors on ProjectTool to list all errors in a project.
List Event Fields for ProjectTool to list event fields for a project.
List Events on ProjectTool to list events for a project.
List OrganizationsTool to list organizations for the authenticated user.
List Pivots for ProjectTool to list pivots for a project.
List ProjectsTool to list projects in an organization.
List Release GroupsTool to list release groups for a project.
List ReleasesTool to list releases for a project.
List Saved Searches on ProjectTool to list saved searches for a project.
List Supported IntegrationsTool to list all supported integrations.
List Trends for Project BucketsTool to list trend buckets for a project.
Regenerate Project API KeyTool to regenerate a project's api key.
Show Collaborator Access Details for ProjectTool to show a collaborator's access details for a project.
Show Collaborator on OrganizationTool to show a collaborator in an organization.
Show Collaborator on ProjectTool to show a collaborator in a project.
Update Collaborator PermissionsTool to update a collaborator's project access permissions.

Why Use Composio?

AI Native Bugsnag Integration

  • Supports both Bugsnag MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Bugsnag data

Managed Auth

  • Built-in API key handling with secure credential storage
  • Central place to manage, scope, and revoke Bugsnag access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Bugsnag
  • Scoped, least privilege access to Bugsnag resources
  • Full audit trail of agent actions to support review and compliance

Connect Bugsnag MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Bugsnag tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Bulk update errors in project 12345 to set status as resolved')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Bugsnag API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Bugsnag Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Bulk update status for all unresolved errors in project Alpha'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Bugsnag actions with your Agent

Use Bugsnag with any AI Agent Framework

Choose a Framework you want to connect Bugsnag with

OpenAI Agents SDK

OpenAI Agents SDK

Use Bugsnag MCP with OpenAI Agents SDK

Claude Agents SDK

Claude Agents SDK

Use Bugsnag MCP with Claude Agents SDK

Google ADK

Google ADK

Use Bugsnag MCP with Google ADK

Langchain

Langchain

Use Bugsnag MCP with Langchain

AI SDK

AI SDK

Use Bugsnag MCP with AI SDK

Mastra AI

Mastra AI

Use Bugsnag MCP with Mastra AI

LlamaIndex

LlamaIndex

Use Bugsnag MCP with LlamaIndex

CrewAI

CrewAI

Use Bugsnag MCP with CrewAI

Pydantic AI

Pydantic AI

Use Bugsnag MCP with Pydantic AI

Autogen

Autogen

Use Bugsnag MCP with Autogen

Frequently Asked Questions

Do I need my own developer credentials to use Bugsnag with Composio?

Yes, Bugsnag requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.