# Lucca — Pipedream Connect

> 12 HR and administrative software programs

- API slug: `lucca` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Human Resources
- Website: https://www.lucca-software.com/
- This page (HTML): https://pipedream.com/apps/lucca
- Tools: 7 actions · 3 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: lucca`

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

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

const { tools } = await mcp.listTools()

// e.g. run Approve Or Deny Leave Request:
const result = await mcp.callTool({
  name: "lucca-approve-leave-request",
  arguments: {
    leaveRequestId: "Leave Request ID",
    approved: true,
  },
})
```

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: "lucca-approve-leave-request",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    lucca: { authProvisionId: "apn_xxxxxxx" },
    leaveRequestId: "Leave Request ID",
    approved: true,
  },
})
```

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

## Actions (7)

### `lucca-approve-leave-request` — Approve Or Deny Leave Request (Write)

Approve or Deny a pending leave request. See the documentation

Full schema: https://pipedream.com/apps/lucca/actions/approve-leave-request.md

### `lucca-list-department-id-options` — List Department ID Options (Read-only)

Retrieves available options for the Department ID field.

Full schema: https://pipedream.com/apps/lucca/actions/list-department-id-options.md

### `lucca-list-leave-request-id-options` — List Leave Request ID Options (Read-only)

Retrieves available options for the Leave Request ID field.

Full schema: https://pipedream.com/apps/lucca/actions/list-leave-request-id-options.md

### `lucca-list-legal-entity-id-options` — List Legal Entity ID Options (Read-only)

Retrieves available options for the Legal Entity ID field.

Full schema: https://pipedream.com/apps/lucca/actions/list-legal-entity-id-options.md

### `lucca-list-nationality-id-options` — List Nationality Options (Read-only)

Retrieves available options for the Nationality field.

Full schema: https://pipedream.com/apps/lucca/actions/list-nationality-id-options.md

### `lucca-list-user-id-options` — List User ID Options (Read-only)

Retrieves available options for the User ID field.

Full schema: https://pipedream.com/apps/lucca/actions/list-user-id-options.md

### `lucca-update-user-info` — Update User Info (Write)

Update profile or HR information for an existing user. See the documentation

Full schema: https://pipedream.com/apps/lucca/actions/update-user-info.md

## Triggers (3)

### `lucca-new-expense-report` — New Expense Report Created (Polling)

Emit new event when a new expense report is created by an employee. Useful for automating approval or finance workflows. See the documentation

Full schema: https://pipedream.com/apps/lucca/triggers/new-expense-report.md

### `lucca-new-leave-request` — New Leave Request (Polling)

Emit new event when a new leave request is submitted by an employee. See the documentation

Full schema: https://pipedream.com/apps/lucca/triggers/new-leave-request.md

### `lucca-new-user` — New User Created (Polling)

Emit new event when a new user (employee) is created in Lucca. See the documentation

Full schema: https://pipedream.com/apps/lucca/triggers/new-user.md

---

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