# Create Project — Bugsnag

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

- Key: `bugsnag-create-project`
- Type: Action (Write)
- Version: 0.0.2
- App: Bugsnag (`bugsnag`) — https://pipedream.com/apps/bugsnag.md
- This page (HTML): https://pipedream.com/apps/bugsnag/actions/create-project
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/bugsnag/actions/create-project/create-project.mjs

## Description

Create a new project for a specific organization in Bugsnag. [See the documentation](https://bugsnagapiv2.docs.apiary.io/#reference/projects/projects/create-a-project-in-an-organization)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `organizationId` | `string` | Yes | The ID of an organization Options are loaded from the connected account. |
| `name` | `string` | Yes | The name of the project |
| `type` | `string` | Yes | The new project's framework type |
| `ignoreOldBrowsers` | `boolean` | No | For javascript projects this will filter errors from older browsers |

## Run it

**MCP**

```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()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "bugsnag-create-project",
  arguments: {
    organizationId: "Organization ID",
    name: "Project Name",
  },
})
```

**TypeScript**

```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",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "bugsnag-create-project",
    "configured_props": {
      "bugsnag": { "authProvisionId": "apn_xxxxxxx" },
      "organizationId": "Organization ID",
      "name": "Project Name"
    }
  }'
```

---

- App: https://pipedream.com/apps/bugsnag.md · All apps: https://pipedream.com/apps
