# Peerdom — Pipedream Connect

> Organizational Change Made Easy.

- API slug: `peerdom` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Business Management
- Website: https://peerdom.org/
- This page (HTML): https://pipedream.com/apps/peerdom
- Tools: 7 actions · 2 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: peerdom`

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

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

const { tools } = await mcp.listTools()

// e.g. run Assign Member to Role:
const result = await mcp.callTool({
  name: "peerdom-assign-member-to-role",
  arguments: {
    roleId: "Role ID",
    memberId: "Member ID",
  },
})
```

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: "peerdom-assign-member-to-role",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    peerdom: { authProvisionId: "apn_xxxxxxx" },
    roleId: "Role ID",
    memberId: "Member ID",
  },
})
```

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

## Actions (7)

### `peerdom-assign-member-to-role` — Assign Member to Role (Write)

Assigns a member to a role within a circle using the Peerdom API. See the documentation

Full schema: https://pipedream.com/apps/peerdom/actions/assign-member-to-role.md

### `peerdom-create-role` — Create Role (Write)

Create a new role within a specified circle. See the documentation

Full schema: https://pipedream.com/apps/peerdom/actions/create-role.md

### `peerdom-list-group-id-options` — List Group ID Options (Read-only)

Retrieves available options for the Group ID field.

Full schema: https://pipedream.com/apps/peerdom/actions/list-group-id-options.md

### `peerdom-list-map-id-options` — List Map ID Options (Read-only)

Retrieves available options for the Map ID field.

Full schema: https://pipedream.com/apps/peerdom/actions/list-map-id-options.md

### `peerdom-list-member-id-options` — List Member ID Options (Read-only)

Retrieves available options for the Member ID field.

Full schema: https://pipedream.com/apps/peerdom/actions/list-member-id-options.md

### `peerdom-list-role-id-options` — List Role ID Options (Read-only)

Retrieves available options for the Role ID field.

Full schema: https://pipedream.com/apps/peerdom/actions/list-role-id-options.md

### `peerdom-update-role` — Update Role (Write)

Update an existing role's attributes such as name, description, or linked domains. See the documentation

Full schema: https://pipedream.com/apps/peerdom/actions/update-role.md

## Triggers (2)

### `peerdom-new-member` — New Member Added (Polling)

Emit new event when a new member is added to a group. See the documentation

Full schema: https://pipedream.com/apps/peerdom/triggers/new-member.md

### `peerdom-new-role` — New Role Created (Polling)

Emit new event when a new role is created in a circle. See the documentation

Full schema: https://pipedream.com/apps/peerdom/triggers/new-role.md

---

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