# CityVistion MCP (CityEngine / CGA.js / NL2CGA)

> NL→CGA rules, CGA→3D(GLB) compile & official-engine parse for CityEngine/CGA.js/NL2CGA. 11 tools.

- name: com.cgajs/cityvistion-mcp
- version: 0.1.2
- connection class: R1 (autonomous)
- trust: 100/100
- quality: 86/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/com.cgajs%2Fcityvistion-mcp
- tools: https://api.protogrid.dev/v1/servers/com.cgajs%2Fcityvistion-mcp/tools

**An agent can connect on its own if it already holds `CITYVISTION_MCP_TOKEN`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "cityvistion-mcp": {
      "type": "http",
      "url": "https://mcp.cgajs.com/mcp",
      "headers": {
        "Authorization": "Bearer ${CITYVISTION_MCP_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${CITYVISTION_MCP_TOKEN}`.

## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 100
- drivers: +repository +namespace-matches-repo +dns-namespace +website +reachable +uptime-100% +updated-10d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 86/100 (good)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list declares ttlMs 0, so clients re-fetch it on every use

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 78 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: cgajs_compile_cga (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); cityengine_parse_cga (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); cityengine_generate_cga (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 1,035 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: deps.dev does not know cityvistion-mcp@0.1.2

- tools: 11, about 1,035 tokens to load them all
- tool set hash: 928a46b652f6748ceadd7db3ce974ceb
- badge: [![protogrid quality](https://protogrid.dev/badge/com.cgajs/cityvistion-mcp.svg)](https://protogrid.dev/servers/com.cgajs/cityvistion-mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Dependencies

- pypi cityvistion-mcp@0.1.2: unknown

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0.

## Remotes

- https://mcp.cgajs.com/mcp (streamable-http, auth api_key ${CITYVISTION_MCP_TOKEN}, reachable true, uptime30d 1)

## Packages

- pypi cityvistion-mcp@0.1.2 secrets: CITYVISTION_API_KEY

## Tools (11)

- `cgajs_compile_cga`: 把 CGA 规则源码编译为三维模型（GLB），经 CGA.js 云端引擎。
- `cgajs_get_quota`: 查询 CGA.js 当前 API key 的套餐档位与本月额度用量。
- `cityengine_generate_cga`: 自然语言 → CGA 规则源码（CityEngine 网关 NL2CGA 通道，不渲染）。

两种模式二选一：
  1. text：自然语言描述，如「三层小楼，坡屋顶，底层商铺」。
  2. base_cga + instruction：在既有 CGA 上按指令修改。
- `cityengine_generate_model`: 自然语言一句话 → 直接生成三维模型（NL2CGA + CityEngine 引擎一键串联）。

两种模式二选一：
  1. text：自然语言描述，如「生成一栋 12 层现代玻璃幕墙办公楼」。
  2. base_cga + instruction：回传既有 CGA + 修改指令，二次生成再出模型。
- `cityengine_get_demo`: 查看官方案例的参数规格（属性 schema/规模/引擎指标），免 API key。
- `cityengine_get_quota`: 查询 CityEngine 当前 API key 的套餐、额度用量（generate/NL2CGA）与限流参数。
- `cityengine_inspect_cga`: 解析 CGA 源码的可调属性（名称/类型/默认值/取值范围/枚举），免 API key。

与 cityengine.cn 网页端 /api/v1/cv/inspect 同一接口，适合在渲染前自检参数面板。
- `cityengine_list_demos`: 列出 CityEngine 官方案例库（id、名称、引擎、参数个数、缩略图），免 API key。
- `cityengine_parse_cga`: 用 CityEngine 官方引擎解析 CGA 规则源码，生成三维模型（GLB）。
- `nl2cga_generate_cga`: 用一句自然语言生成 CGA 规则源码（NL2CGA，同步等待直到完成，不渲染模型）。
- `nl2cga_get_job`: 查询 NL2CGA 生成任务状态（queued/running/succeeded/failed）与结果。
