# Azure DevOps (Microsoft Entra ID OAuth) — Pipedream Connect

> Plan smarter, collaborate better, and ship faster with a set of modern dev services

- API slug: `azure_devops_microsoft_entra_id_oauth` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Infrastructure & Cloud
- Website: https://azure.microsoft.com/en-us/products/devops/
- Managed OAuth scopes: `https://app.vssps.visualstudio.com/.default` · `offline_access`
- This page (HTML): https://pipedream.com/apps/azure-devops-microsoft-entra-id-oauth
- Tools: 2 actions · 1 trigger

## 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: azure_devops_microsoft_entra_id_oauth`

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

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

const { tools } = await mcp.listTools()

// e.g. run List Event Type Options:
const result = await mcp.callTool({
  name: "azure_devops_microsoft_entra_id_oauth-list-event-type-options",
  arguments: {},
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.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: "azure_devops_microsoft_entra_id_oauth-list-event-type-options",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    azure_devops_microsoft_entra_id_oauth: { authProvisionId: "apn_xxxxxxx" },
  },
})
```

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

## Actions (2)

### `azure_devops_microsoft_entra_id_oauth-list-event-type-options` — List Event Type Options (Read-only)

Retrieves available options for the Event Type field.

Full schema: https://pipedream.com/apps/azure-devops-microsoft-entra-id-oauth/actions/list-event-type-options.md

### `azure_devops_microsoft_entra_id_oauth-list-project-id-options` — List Project ID Options (Read-only)

Retrieves available options for the Project ID field.

Full schema: https://pipedream.com/apps/azure-devops-microsoft-entra-id-oauth/actions/list-project-id-options.md

## Triggers (1)

### `azure_devops_microsoft_entra_id_oauth-new-event` — New Event (Instant) (Instant)

Emit new event for the specified event type.

Full schema: https://pipedream.com/apps/azure-devops-microsoft-entra-id-oauth/triggers/new-event.md

---

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