### Installing Project Dependencies (Shell) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This command uses the project's Makefile to ensure all necessary dependencies are installed. It's a prerequisite step before building or testing the application. ```Shell make ensure ``` -------------------------------- ### Configuring Pulumi MCP Server with npx (stdio) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This JSON configuration snippet shows how to integrate the Pulumi MCP Server into an MCP client, such as Claude desktop, using `npx`. It specifies `npx` as the command to run the `@pulumi/mcp-server` package, configured to communicate via standard I/O (stdio). This setup allows the client to interact with Pulumi operations programmatically. ```json { "mcpServers": { "pulumi": { "command": "npx", "args": ["@pulumi/mcp-server@latest","stdio"] } } } ``` -------------------------------- ### Building the Pulumi MCP Server Project (Shell) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This command triggers the build process for the Pulumi MCP Server, compiling the source code into executable artifacts. It's typically run after dependencies are installed. ```Shell make build ``` -------------------------------- ### Configuring Pulumi MCP Server with Docker (Volume Mount) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This JSON configuration illustrates how to run the Pulumi MCP Server in a Docker container with a volume mount, essential for Pulumi operations requiring access to local project files. The `-v` flag mounts the host's `~/projects/my-pulumi-app` directory to `/app/project` inside the container, making the Pulumi project accessible to the server. This allows the server to perform operations like `preview` or `up` on the specified project. ```json { "mcpServers": { "pulumi": { "command": "docker", "args": ["run", "-i", "--rm", "-v", "~/projects/my-pulumi-app:/app/project", "pulumi/mcp-server:latest"] } } } ``` -------------------------------- ### Configuring Pulumi MCP Server with Docker (stdio) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This JSON configuration shows how to run the Pulumi MCP Server as a Docker container, configured for standard I/O (stdio) communication with an MCP client. The `docker run` command executes the `pulumi/mcp-server:latest` image, with `-i` for interactive mode and `--rm` to remove the container upon exit, providing a clean, ephemeral environment. ```json { "mcpServers": { "pulumi": { "command": "docker", "args": ["run", "-i", "--rm", "pulumi/mcp-server:latest", "stdio"] } } } ``` -------------------------------- ### Building Pulumi MCP Server Docker Image Source: https://github.com/pulumi/mcp-server/blob/main/README.md This Bash command builds a Docker image for the Pulumi MCP Server. The `-t` flag tags the image as `pulumi/mcp-server:latest`, making it easily identifiable and runnable. This allows users to run the server in a containerized environment, abstracting away Node.js and package dependencies from the host machine. ```bash docker build -t pulumi/mcp-server:latest . ``` -------------------------------- ### Running Project Tests (Shell) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This command executes the test suite defined within the project's Makefile. It's used to verify the correctness and functionality of the Pulumi MCP Server codebase. ```Shell make test ``` -------------------------------- ### Configuring Pulumi MCP Server with npx (SSE) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This JSON configuration snippet demonstrates how to set up the Pulumi MCP Server for communication over HTTP using Server-Sent Events (SSE) via `npx`. Similar to the stdio configuration, it uses `npx` to execute the `@pulumi/mcp-server` package, but with the `sse` argument to enable HTTP-based communication, suitable for web-based or distributed MCP clients. ```json { "mcpServers": { "pulumi": { "command": "npx", "args": ["@pulumi/mcp-server@latest","sse"] } } } ``` -------------------------------- ### Configuring Pulumi MCP Server with Docker (SSE and Port Mapping) Source: https://github.com/pulumi/mcp-server/blob/main/README.md This JSON configuration demonstrates running the Pulumi MCP Server in a Docker container, enabling Server-Sent Events (SSE) communication and mapping port 3000 from the container to the host. The `-p 3000:3000` flag exposes the server's HTTP endpoint, allowing external clients to connect and interact with the server over the network. ```json { "mcpServers": { "pulumi": { "command": "docker", "args": ["run", "-i", "--rm", "-p", "3000:3000", "pulumi/mcp-server:latest", "sse"] } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.