MetorialDocs

Set up Pulumi in Metorial for Claude, ChatGPT and Cursor

Share Pulumi with your team in Claude, ChatGPT and Cursor through Metorial: access token sign-in, 20 tools (11 read-only).

To give your team Pulumi in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Pulumi integration in a Metorial portal, and each person connects with an access token. Agents can manage Pulumi Cloud stacks, deployment operations, ESC environments, personal access tokens and webhooks. The integration has 20 tools, 11 read-only, 2 write and 7 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Pulumi in a portal and how each person connects
  • What Pulumi asks for when you connect, and where to find it
  • How to keep the 11 read-only tools and reject the other 9

Before you start

Sign-in method

MethodTypeWhat a person provides
Access TokenAPI tokentoken

Access Token

To connect, a person enters:

  • token: Pulumi access token (Personal, Organization, or Team access token). Create one at https://app.pulumi.com/account/tokens

Setup settings

Setup also asks for:

  • baseUrl (optional): Pulumi Cloud API base URL. Use default for managed service, or specify custom URL for self-hosted instances.
  • organization (optional): Default Pulumi organization name. If set, used as default for all operations.

Admin: share Pulumi in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Pulumi. For how members connect, choose Each person connects so everyone enters their own access token, or Shared connection to enter one access token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Pulumi.

Choose who gets it

Add the access groups that should see Pulumi. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Pulumi integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search pulumi

Employee: connect Pulumi

In the portal

Open Pulumi in the catalog

Sign in to your portal and open Pulumi. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your access token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search pulumi
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Pulumi connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list pulumi
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 11 read-only tools, such as get_stack and list_stacks, and lose the 2 write tools, such as create_stack or open_environment, and the 7 destructive tools, such as delete_stack or manage_webhooks.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list pulumi
metorial tools <integration-id>
metorial call <integration-id> list_stacks -d '{}'

metorial tools lists the 20 tools, minus any you rejected. list_stacks takes no input. It lists all Pulumi stacks accessible to the authenticated user.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (11)

  • list_environments: List all Pulumi ESC environments in an organization.
  • get_stack: Retrieve a Pulumi stack's tags, current operation and version, with optional recorded outputs. Needs projectName and stackName.
  • list_audit_logs: Retrieve audit log events for a Pulumi organization. Needs startTime.
  • list_deployments: List deployments for a specific stack or across an entire organization.
  • list_stacks: List all Pulumi stacks accessible to the authenticated user.
  • list_policy_packs: List all policy packs in a Pulumi organization.
  • get_deployment: Retrieve details and optionally logs for a specific deployment. Needs projectName, stackName and deploymentId.
  • search_resources: Search across all cloud resources managed by Pulumi in your organization using Pulumi query syntax. Needs query.
  • list_stack_updates: List the update history for a Pulumi stack. Needs projectName and stackName.
  • list_org_members: List all members of a Pulumi organization with their roles and profile information.
  • get_current_user: Identify the authenticated Pulumi user or machine-token principal and discover authorized organization logins for other tools.

Write tools (2)

  • open_environment: Open a Pulumi ESC environment to resolve and retrieve its computed values and secrets. Needs projectName and environmentName.
  • create_stack: Create a new Pulumi stack within a project. Needs projectName and stackName.

Destructive tools (7)

  • manage_webhooks: List, create, or delete webhooks in Pulumi Cloud. Needs action.
  • delete_stack: Delete a Pulumi stack. Needs projectName and stackName.
  • cancel_deployment: Cancel an in-progress deployment on a stack. Needs projectName, stackName and deploymentId.
  • manage_access_tokens: List access-token metadata for the authenticated user, create a personal access token, or revoke a token by ID. Needs action.
  • manage_stack_tags: Set or delete tags on a Pulumi stack. Needs projectName, stackName, action and tagName.
  • trigger_deployment: Trigger a Pulumi deployment operation on a stack. Needs projectName, stackName and operation.
  • manage_environment: Create, read, update, or delete a Pulumi ESC (Environments, Secrets, and Configuration) environment. Needs projectName, environmentName and action.

Triggers

Pulumi has 4 triggers, which fire on events in Pulumi:

  • policy_violation_events: Triggered when policy violations occur during stack updates, including both mandatory and advisory violations.
  • deployment_events: Triggered when Pulumi Deployment lifecycle events occur, including queued, started, succeeded, and failed states.
  • drift_events: Triggered when drift detection or remediation events occur, including drift detected, detection succeeded/failed, and remediation succeeded/failed.
  • stack_events: Triggered when stack lifecycle events occur, including updates, previews, destroys, refreshes, and stack creation/deletion.

Next steps