# Serenity* AI Hub — Pipedream Connect

> Generative AI solutions for your enterprise.

- API slug: `serenity_ai_hub` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://serenitystar.ai
- This page (HTML): https://pipedream.com/apps/serenity-ai-hub
- Tools: 4 actions · 0 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: serenity_ai_hub`

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

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

const { tools } = await mcp.listTools()

// e.g. run Execute Agent:
const result = await mcp.callTool({
  name: "serenity_ai_hub-execute-agent",
  arguments: {
    agentCode: "Agent Code",
    message: "Message",
  },
})
```

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: "serenity_ai_hub-execute-agent",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    serenity_ai_hub: { authProvisionId: "apn_xxxxxxx" },
    agentCode: "Agent Code",
    message: "Message",
  },
})
```

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

## Actions (4)

### `serenity_ai_hub-execute-agent` — Execute Agent (Write)

Executes an agent by its code with the provided parameters. See the documentation

Full schema: https://pipedream.com/apps/serenity-ai-hub/actions/execute-agent.md

### `serenity_ai_hub-get-all-agents` — Get All Agents (Read-only)

Gets a list containing all agents. See the documentation

Full schema: https://pipedream.com/apps/serenity-ai-hub/actions/get-all-agents.md

### `serenity_ai_hub-get-initial-conversation-info` — Get Initial Conversation Info (Read-only)

Gets initial conversation information. See the documentation

Full schema: https://pipedream.com/apps/serenity-ai-hub/actions/get-initial-conversation-info.md

### `serenity_ai_hub-list-agent-code-options` — List Agent Code Options (Read-only)

Retrieves available options for the Agent Code field.

Full schema: https://pipedream.com/apps/serenity-ai-hub/actions/list-agent-code-options.md

---

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