IBM Code Engine MCP Server

v1.4.2
io.github.markusvankempen/code-engine-mcp-server Checked 12 hours ago Published 5 months ago

Deploy to IBM Code Engine from Cursor, Copilot, Claude & Cline.

Values you need

VariableWhat it is
IBMCLOUD_API_KEYrequired secret IBM Cloud API key used to authenticate and call Code Engine APIs
IBMCLOUD_REGIONoptional Default IBM Cloud region (for example: us-south)
CONTAINER_RUNTIMEoptional Optional container runtime override: docker or podman

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add code-engine-mcp-server -e 'IBMCLOUD_API_KEY=<IBMCLOUD_API_KEY>' -- npx -y code-engine-mcp-server@1.4.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "code-engine-mcp-server": {
      "args": [
        "-y",
        "code-engine-mcp-server@1.4.2"
      ],
      "command": "npx",
      "env": {
        "IBMCLOUD_API_KEY": "<IBMCLOUD_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "code-engine-mcp-server": {
      "args": [
        "-y",
        "code-engine-mcp-server@1.4.2"
      ],
      "command": "npx",
      "env": {
        "IBMCLOUD_API_KEY": "<IBMCLOUD_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "IBMCLOUD_API_KEY",
      "id": "ibmcloud-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "code-engine-mcp-server": {
      "args": [
        "-y",
        "code-engine-mcp-server@1.4.2"
      ],
      "command": "npx",
      "env": {
        "IBMCLOUD_API_KEY": "${input:ibmcloud-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.code-engine-mcp-server]
command = "npx"
args = ["-y", "code-engine-mcp-server@1.4.2"]
env = { "IBMCLOUD_API_KEY" = "<IBMCLOUD_API_KEY>" }

For AI agents

  1. Ask the user for: IBMCLOUD_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: detect_container_runtime, build_container_image, push_container_image, list_local_images, test_container_locally, icr_list_namespaces, icr_list_images, icr_delete_image, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json