• AUDIT
  • GROUP
  • COST
  • REVIEW

How to organize stacks with tags with your AI

Connect Pulumi to your AI client once. From there, you can audit existing metadata or apply new tags to keep your environments grouped by team or cost center.

Ask AI about this page

Short answer

How can I use AI to tag my Pulumi stacks?

Your AI client uses Pulumi tools to check current stack metadata and write new tags directly to your environments. This lets you group stacks by team or cost center without running CLI commands. You'll see the specific outcomes below.

Organized environments.

Where metadata lands.

The AI handles the tag management so you can focus on your infrastructure.

AUDIT

Current tag status

The AI pulls your existing stack metadata. You'll see exactly which stacks are already tagged and which ones are missing info.

GROUP

Team-based organization

Apply specific tags to stacks to group them by department. This keeps your environment list clean and searchable.

COST

Cost center tracking

Tag stacks with cost center identifiers. This makes it easy to track resource spending across different business units.

REVIEW

Human oversight

The AI proposes the tag changes. You stay in control and decide which metadata gets applied to your live stacks.

The workflow

What your AI does when the request arrives.

The AI acts as a bridge between your chat interface and the Pulumi API.

  1. Scan existing tags

    The AI looks at your current Pulumi stacks to see what metadata is already in place.

    list_stack_tags
  2. Identify gaps

    It compares your current tags against your desired organization structure to find missing information.

    list_stack_tags
  3. Apply new metadata

    The AI writes the specific tags you requested to the target Pulumi stacks.

    set_stack_tag
  4. Verify updates

    The AI checks the stack again to confirm the new tags are active and reports the status to you.

    list_stack_tags

Try it

Copy these to start.

Use these prompts to kick off the process with your agent.

Starting points

Swap out the stack names and tag values for your own specific environment details.

Pulumi Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_v2N5nlYKKcBMg7t6tvswP5zOuY1KsfB14QgLHciO/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Pulumi capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "pulumi-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_v2N5nlYKKcBMg7t6tvswP5zOuY1KsfB14QgLHciO/mcp"
    }
  }
}
Copy into chat04
  • List all the tags currently on the 'prod-web-server' stack.

  • Add a tag to the 'staging-db' stack where 'team' is 'platform'.

  • Find all stacks that are missing a 'cost-center' tag.

  • Update the 'dev-cluster' stack to include a tag for 'owner' set to 'data-eng'.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Pulumi once, then ask.

Link your Pulumi account to Vinkius. Your credentials stay encrypted on our side, and you can immediately start managing tags through your favorite AI client.

Connect Pulumi to your AI

FAQ

How this task behaves.

  • 01

    Can the AI delete my Pulumi stacks?

    No. This MCP only has tools to list and set tags. It cannot delete stacks or any other infrastructure resources.

  • 02

    Will the AI change my infrastructure code?

    No. The AI only interacts with the stack metadata via the API. It does not touch your local files or your source code.

  • 03

    Can I use this to manage multiple stacks at once?

    Yes. You can ask the AI to apply tags to a specific stack or identify patterns across several stacks.

  • 04

    Does the AI need my Pulumi access token?

    Vinkius manages the connection securely. You provide the credentials to Vinkius, and your AI client uses them through the MCP.

  • 05

    Can the AI remove an existing tag?

    No. The available tools only allow for listing and setting tags. It cannot perform a delete operation on a specific tag.

  • More questions about Pulumi? The Connector page answers them. See everything the Pulumi Connector can do

Connect Pulumi to Claude, Cursor, ChatGPT & more