CityEngine Cloud

v0.1.0
io.github.cgajs/cityengine-mcp Checked 4 days ago Published 23 days ago

Text-to-3D city buildings: natural language to CGA rules to rendered glTF models.

Values you need

VariableWhat it is
CITYENGINE_API_KEYrequired secret API key for CityEngine Cloud (get one at https://www.cityengine.cn/plugins.html)
CITYENGINE_GATEWAY_BASEoptional Override gateway base URL (default https://api.cityengine.cn)

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add cityengine-mcp -e 'CITYENGINE_API_KEY=<CITYENGINE_API_KEY>' -- docker run -i --rm -e CITYENGINE_API_KEY ghcr.io/cgajs/cityengine-mcp:0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "cityengine-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CITYENGINE_API_KEY",
        "ghcr.io/cgajs/cityengine-mcp:0.1.0"
      ],
      "command": "docker",
      "env": {
        "CITYENGINE_API_KEY": "<CITYENGINE_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "cityengine-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CITYENGINE_API_KEY",
        "ghcr.io/cgajs/cityengine-mcp:0.1.0"
      ],
      "command": "docker",
      "env": {
        "CITYENGINE_API_KEY": "<CITYENGINE_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CITYENGINE_API_KEY",
      "id": "cityengine-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "cityengine-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CITYENGINE_API_KEY",
        "ghcr.io/cgajs/cityengine-mcp:0.1.0"
      ],
      "command": "docker",
      "env": {
        "CITYENGINE_API_KEY": "${input:cityengine-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.cityengine-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "CITYENGINE_API_KEY", "ghcr.io/cgajs/cityengine-mcp:0.1.0"]
env = { "CITYENGINE_API_KEY" = "<CITYENGINE_API_KEY>" }

For AI agents

  1. Ask the user for: CITYENGINE_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: parse_cga, generate_cga, generate_model, list_demos, get_demo, get_quota.
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json