# List Project Issues. — Sentry

> Return a list of issues bound to a project. See the docs here

- Key: `sentry-list-project-issues`
- Type: Action (Read-only)
- Version: 0.1.3
- App: Sentry (`sentry`) — https://pipedream.com/apps/sentry.md
- This page (HTML): https://pipedream.com/apps/sentry/actions/list-project-issues
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/sentry/actions/list-project-issues/list-project-issues.mjs

## Description

Return a list of issues bound to a project. [See the docs here](https://docs.sentry.io/api/issues/list-a-projects-issues/)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `organizationSlug` | `string` | Yes | The organization for which to consider issues events Options are loaded from the connected account. |
| `projectId` | `string` | Yes | The project to perform your action Options are loaded from the connected account. |
| `statsPeriod` | `string` | No | An optional stat period (e.g. "24h", "14d"). |
| `shortIdLookup` | `boolean` | No | If this is set to true then short IDs are looked up by this function as well. This can cause the return value of the function to return an event issue of a different project which is why this is an opt-in. |
| `query` | `string` | No | An optional Sentry structured search query. If not provided an implied is:unresolved is assumed. |
| `maxResults` | `integer` | No | The maximum number of registers to return. Defaults to 1000. |

## 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": "sentry",
      },
    },
  },
)

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: "sentry-list-project-issues",
  arguments: {
    organizationSlug: "Organization",
    projectId: "Project",
  },
})
```

**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: "sentry-list-project-issues",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    sentry: { authProvisionId: "apn_xxxxxxx" },
    organizationSlug: "Organization",
    projectId: "Project",
  },
})

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": "sentry-list-project-issues",
    "configured_props": {
      "sentry": { "authProvisionId": "apn_xxxxxxx" },
      "organizationSlug": "Organization",
      "projectId": "Project"
    }
  }'
```

---

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