naftiko: 1.0.0-alpha2 info: label: WunderGraph Cosmo Platform API — Namespaces description: 'WunderGraph Cosmo Platform API — Namespaces. 4 operations. Lead operation: WunderGraph List namespaces. Self-contained Naftiko capability covering one Wundergraph business surface.' tags: - Wundergraph - Namespaces created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WUNDERGRAPH_API_KEY: WUNDERGRAPH_API_KEY capability: consumes: - type: http namespace: cosmo-platform-namespaces baseUri: https://cosmo-cp.wundergraph.com description: WunderGraph Cosmo Platform API — Namespaces business capability. Self-contained, no shared references. resources: - name: v1-namespaces path: /v1/namespaces operations: - name: listnamespaces method: GET description: WunderGraph List namespaces outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createnamespace method: POST description: WunderGraph Create a namespace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-namespaces-name path: /v1/namespaces/{name} operations: - name: deletenamespace method: DELETE description: WunderGraph Delete a namespace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the namespace to delete. required: true - name: v1-namespaces-name-rename path: /v1/namespaces/{name}/rename operations: - name: renamenamespace method: POST description: WunderGraph Rename a namespace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The current name of the namespace. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.WUNDERGRAPH_API_KEY}}' placement: header exposes: - type: rest namespace: cosmo-platform-namespaces-rest port: 8080 description: REST adapter for WunderGraph Cosmo Platform API — Namespaces. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/namespaces name: v1-namespaces description: REST surface for v1-namespaces. operations: - method: GET name: listnamespaces description: WunderGraph List namespaces call: cosmo-platform-namespaces.listnamespaces outputParameters: - type: object mapping: $. - method: POST name: createnamespace description: WunderGraph Create a namespace call: cosmo-platform-namespaces.createnamespace with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/namespaces/{name} name: v1-namespaces-name description: REST surface for v1-namespaces-name. operations: - method: DELETE name: deletenamespace description: WunderGraph Delete a namespace call: cosmo-platform-namespaces.deletenamespace with: name: rest.name outputParameters: - type: object mapping: $. - path: /v1/v1/namespaces/{name}/rename name: v1-namespaces-name-rename description: REST surface for v1-namespaces-name-rename. operations: - method: POST name: renamenamespace description: WunderGraph Rename a namespace call: cosmo-platform-namespaces.renamenamespace with: name: rest.name body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cosmo-platform-namespaces-mcp port: 9090 transport: http description: MCP adapter for WunderGraph Cosmo Platform API — Namespaces. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: wundergraph-list-namespaces description: WunderGraph List namespaces hints: readOnly: true destructive: false idempotent: true call: cosmo-platform-namespaces.listnamespaces outputParameters: - type: object mapping: $. - name: wundergraph-create-namespace description: WunderGraph Create a namespace hints: readOnly: false destructive: false idempotent: false call: cosmo-platform-namespaces.createnamespace with: body: tools.body outputParameters: - type: object mapping: $. - name: wundergraph-delete-namespace description: WunderGraph Delete a namespace hints: readOnly: false destructive: true idempotent: true call: cosmo-platform-namespaces.deletenamespace with: name: tools.name outputParameters: - type: object mapping: $. - name: wundergraph-rename-namespace description: WunderGraph Rename a namespace hints: readOnly: false destructive: false idempotent: false call: cosmo-platform-namespaces.renamenamespace with: name: tools.name body: tools.body outputParameters: - type: object mapping: $.