# Create Integration — Rockset

> Create a new integration with Rockset. Learn more at https://docs.rockset.com/rest/#createintegration

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

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | Yes | Descriptive label for the integration. |
| `description` | `string` | No | Description for the integration. |
| `s3` | `object` | No | Amazon S3 details, must have one of aws_access_key or aws_role. E.g., { "aws_role": { "aws_role_arn": "arn:aws:iam::2378964092:role/rockset-role" }, "aws_access_key": { "aws_access_key_id": "AKIAIOSFODNN7EXAMPLE", "aws_secret_access_key": "wJal...." } } |
| `kinesis` | `object` | No | Amazon Kinesis details, must have one of aws_access_key or aws_role. E.g., { "aws_role": { "aws_role_arn": "arn:aws:iam::2378964092:role/rockset-role" }, "aws_access_key": { "aws_access_key_id": "AKIAIOSFODNN7EXAMPLE", "aws_secret_access_key": "wJal...." } } |
| `dynamodb` | `object` | No | Amazon DynamoDB details, must have one of aws_access_key or aws_role. E.g., { "aws_access_key": { "aws_access_key_id": "AKIAIOSFODNN7EXAMPLE", "aws_secret_access_key": "wJal...." }, "aws_role": { "aws_role_arn": "arn:aws:iam::2378964092:role/rockset-role" } } |
| `redshift` | `object` | No | Amazon Redshift details. E.g., { "aws_access_key": { "aws_access_key_id": "AKIAIOSFODNN7EXAMPLE", "aws_secret_access_key": "wJal...." }, "username": "awsuser", "password": "pswd....", "host": "test.yuyugt.us-west-2.redshift.amazonaws.com", "port": 5439, "s3_bucket_path": "s3://redshift-unload" } |
| `gcs` | `object` | No | GCS details. E.g., { "gcp_service_account": {} } |
| `segment` | `object` | No | Segment |
| `kafka` | `object` | No | E.g., { "kafka_topic_names": [ null ], "kafka_data_format": "json", "source_status_by_topic": "topic-a:DORMANT" } |

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

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: "rockset-create-integration",
  arguments: {
    name: "Name",
    description: "Description",
  },
})
```

**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: "rockset-create-integration",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    rockset: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    description: "Description",
  },
})

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": "rockset-create-integration",
    "configured_props": {
      "rockset": { "authProvisionId": "apn_xxxxxxx" },
      "name": "Name",
      "description": "Description"
    }
  }'
```

---

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