diff --git a/content/blog/mcp-server-ai-assistants/index.md b/content/blog/mcp-server-ai-assistants/index.md index 1f4d8ca90535..0b0814a6aa66 100644 --- a/content/blog/mcp-server-ai-assistants/index.md +++ b/content/blog/mcp-server-ai-assistants/index.md @@ -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 diff --git a/content/docs/iac/using-pulumi/mcp-server.md b/content/docs/iac/using-pulumi/mcp-server.md index a0d90b5e3651..a4b59314f049 100644 --- a/content/docs/iac/using-pulumi/mcp-server.md +++ b/content/docs/iac/using-pulumi/mcp-server.md @@ -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 { @@ -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`: @@ -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: @@ -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: @@ -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: