Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions content/blog/mcp-server-ai-assistants/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,17 @@ Several AI coding assistants like GitHub Copilot, Anthropic's Claude Code, Winds

## Setting up the Pulumi MCP Integration in Cursor

Before diving in, you typically need to configure your AI assistant to communicate with the Pulumi MCP server. In Cursor, you create a configuration file named `mcp.json` within the `.cursor` directory in your project's root.

```json
{
"mcpServers": {
"pulumi": {
"type": "stdio",
"command": "npx",
"args": ["@pulumi/mcp-server"]
}
}
}
```

Validate the connection within the assistant's settings (e.g., Cursor has a dedicated section to check the MCP connection status).
Before diving in, you typically need to configure your AI assistant to communicate with the Pulumi MCP server. For Cursor, you can do so by visiting the following link:

[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=pulumi&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoibnB4IEBwdWx1bWkvbWNwLXNlcnZlciJ9)

Once set up, validate the connection within the assistant's settings to ensure that the server is properly working. Cursor has a dedicated section to check the MCP connection status:

![Cursor MCP Settings](cursor-mcp-settings.png)

Once configured, the AI assistant can leverage Pulumi tools seamlessly. These tools are specific actions enabled by the MCP server—like searching the Pulumi Registry or running a `pulumi` command—allowing the assistant to gather information or interact with your Pulumi project.
The assistant can now leverage Pulumi tools seamlessly. These tools are specific actions enabled by the MCP server—like searching the Pulumi Registry or running a `pulumi` command—allowing the assistant to gather information or interact with your Pulumi project.

For help on setting up the MCP server with other IDEs such as Claude Code and Windsurf, see the [Pulumi MCP](https://www.pulumi.com/docs/iac/using-pulumi/mcp-server/) docs.

## The Goal: Provisioning an AKS Cluster

Expand Down
28 changes: 20 additions & 8 deletions content/docs/iac/using-pulumi/mcp-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This enables a more intuitive, conversational approach to infrastructure develop
The Pulumi MCP server works with various AI-powered development tools:

- **[Cursor](https://cursor.sh/)** - AI-first code editor
- **[Anthropic's Claude Code](https://claude.ai/code)** - AI assistant for coding
- **[Anthropic's Claude](https://claude.ai/code)** - AI assistant for coding
- **[GitHub Copilot](https://github.com/features/copilot)** - AI pair programmer
- **[Windsurf](https://codeium.com/windsurf)** - AI development environment
- **[Devin](https://app.devin.ai/)** - The AI
Expand All @@ -54,9 +54,13 @@ npx @pulumi/mcp-server

## Configuration

### Cursor setup
### Cursor

To configure the Pulumi MCP server with Cursor, create a `mcp.json` file in the `.cursor` directory at your project root:
Add the Pulumi MCP server to Cursor by clicking the following button:

[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=pulumi&config=eyJjb21tYW5kIjoibnB4IEBwdWx1bWkvbWNwLXNlcnZlckBsYXRlc3Qgc3RkaW8ifQ%3D%3D)

Alternatively, create a `mcp.json` file in the `.cursor` directory at your project root:

```json
{
Expand All @@ -77,9 +81,17 @@ After creating the configuration file:
3. Navigate to the MCP section to verify the connection status
4. The Pulumi MCP server should appear as connected

### Claude Code setup
### Claude Code

Add the Pulumi MCP server to Claude Code by running the following command:

```bash
$ claude mcp add -s user pulumi -- npx @pulumi/mcp-server@latest stdio
```

### Claude Desktop

For Claude Code, add the MCP server configuration to your Claude configuration file:
For Claude Desktop, add the MCP server to your Claude configuration file:

**On macOS/Linux:**
Add to `~/.config/claude/mcp_servers.json`:
Expand Down Expand Up @@ -113,7 +125,7 @@ After adding the configuration:
2. Verify the connection in the MCP section of Claude's settings
3. The Pulumi MCP server should appear as an available tool

### GitHub Copilot setup
### GitHub Copilot

GitHub Copilot's MCP support is available through compatible editors. Configure in your editor's MCP settings:

Expand All @@ -135,7 +147,7 @@ Add to your VS Code settings.json:
**Other editors:**
Refer to your editor's specific MCP integration documentation for configuration details.

### Windsurf setup
### Windsurf

In Windsurf, configure the MCP server through the IDE settings:

Expand All @@ -154,7 +166,7 @@ In Windsurf, configure the MCP server through the IDE settings:
}
```

### Devin setup
### Devin

To configure the Pulumi MCP server for Devin:

Expand Down
Loading