# Bugsnag — Pipedream Connect

> Error Monitoring & App Stability Management

- API slug: `bugsnag` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Help Desk & Support
- Website: https://www.bugsnag.com/
- This page (HTML): https://pipedream.com/apps/bugsnag
- Tools: 3 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: bugsnag`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "bugsnag",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Project:
const result = await mcp.callTool({
  name: "bugsnag-create-project",
  arguments: {
    organizationId: "Organization ID",
    name: "Project Name",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Bugsnag endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.bugsnag.com/user

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuYnVnc25hZy5jb20vdXNlcg?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "bugsnag-create-project",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    bugsnag: { authProvisionId: "apn_xxxxxxx" },
    organizationId: "Organization ID",
    name: "Project Name",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (3)

### `bugsnag-create-project` — Create Project (Write)

Create a new project for a specific organization in Bugsnag. See the documentation

Full schema: https://pipedream.com/apps/bugsnag/actions/create-project.md

### `bugsnag-list-organization-id-options` — List Organization ID Options (Read-only)

Retrieves available options for the Organization ID field.

Full schema: https://pipedream.com/apps/bugsnag/actions/list-organization-id-options.md

### `bugsnag-update-error-severity` — Update Error Severity (Write)

Update an the severity status of an error in Bugsnag. See the documentation

Full schema: https://pipedream.com/apps/bugsnag/actions/update-error-severity.md

## Triggers (3)

### `bugsnag-new-error-created` — New Error Created (Polling)

Emit new event when a new error occurs in a selected project.

Full schema: https://pipedream.com/apps/bugsnag/triggers/new-error-created.md

### `bugsnag-new-error-occurrence` — New Error Occurrence (Polling)

Emit new event when an existing error receives a new occurrence.

Full schema: https://pipedream.com/apps/bugsnag/triggers/new-error-occurrence.md

### `bugsnag-new-release-created` — New Release Created (Polling)

Emit new event when a new release version is deployed to a selected project.

Full schema: https://pipedream.com/apps/bugsnag/triggers/new-release-created.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
