naftiko: 1.0.0-alpha2 info: label: WunderGraph Cosmo Platform API — Subgraphs description: 'WunderGraph Cosmo Platform API — Subgraphs. 9 operations. Lead operation: WunderGraph List subgraphs. Self-contained Naftiko capability covering one Wundergraph business surface.' tags: - Wundergraph - Subgraphs 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-subgraphs baseUri: https://cosmo-cp.wundergraph.com description: WunderGraph Cosmo Platform API — Subgraphs business capability. Self-contained, no shared references. resources: - name: v1-subgraphs path: /v1/subgraphs operations: - name: listsubgraphs method: GET description: WunderGraph List subgraphs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: namespace in: query type: string description: Filter by namespace name. - name: limit in: query type: integer description: Maximum number of results to return. - name: offset in: query type: integer description: Number of results to skip. - name: createsubgraph method: POST description: WunderGraph Create a subgraph outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-subgraphs-name path: /v1/subgraphs/{name} operations: - name: getsubgraph method: GET description: WunderGraph Get a subgraph outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the subgraph. required: true - name: namespace in: query type: string description: The namespace of the subgraph. - name: updatesubgraph method: PUT description: WunderGraph Update a subgraph outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the subgraph to update. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletesubgraph method: DELETE description: WunderGraph Delete a subgraph outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the subgraph to delete. required: true - name: namespace in: query type: string description: The namespace of the subgraph. - name: v1-subgraphs-name-check path: /v1/subgraphs/{name}/check operations: - name: checksubgraph method: POST description: WunderGraph Check a subgraph schema outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the subgraph to check. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: v1-subgraphs-name-fetch path: /v1/subgraphs/{name}/fetch operations: - name: fetchsubgraphsdl method: GET description: WunderGraph Fetch subgraph SDL outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the subgraph. required: true - name: namespace in: query type: string description: The namespace of the subgraph. - name: v1-subgraphs-name-move path: /v1/subgraphs/{name}/move operations: - name: movesubgraph method: POST description: WunderGraph Move a subgraph to another namespace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the subgraph to move. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: v1-subgraphs-name-publish path: /v1/subgraphs/{name}/publish operations: - name: publishsubgraph method: POST description: WunderGraph Publish a subgraph schema outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string description: The name of the subgraph to publish. 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-subgraphs-rest port: 8080 description: REST adapter for WunderGraph Cosmo Platform API — Subgraphs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/subgraphs name: v1-subgraphs description: REST surface for v1-subgraphs. operations: - method: GET name: listsubgraphs description: WunderGraph List subgraphs call: cosmo-platform-subgraphs.listsubgraphs with: namespace: rest.namespace limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: createsubgraph description: WunderGraph Create a subgraph call: cosmo-platform-subgraphs.createsubgraph with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/subgraphs/{name} name: v1-subgraphs-name description: REST surface for v1-subgraphs-name. operations: - method: GET name: getsubgraph description: WunderGraph Get a subgraph call: cosmo-platform-subgraphs.getsubgraph with: name: rest.name namespace: rest.namespace outputParameters: - type: object mapping: $. - method: PUT name: updatesubgraph description: WunderGraph Update a subgraph call: cosmo-platform-subgraphs.updatesubgraph with: name: rest.name body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletesubgraph description: WunderGraph Delete a subgraph call: cosmo-platform-subgraphs.deletesubgraph with: name: rest.name namespace: rest.namespace outputParameters: - type: object mapping: $. - path: /v1/v1/subgraphs/{name}/check name: v1-subgraphs-name-check description: REST surface for v1-subgraphs-name-check. operations: - method: POST name: checksubgraph description: WunderGraph Check a subgraph schema call: cosmo-platform-subgraphs.checksubgraph with: name: rest.name body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/subgraphs/{name}/fetch name: v1-subgraphs-name-fetch description: REST surface for v1-subgraphs-name-fetch. operations: - method: GET name: fetchsubgraphsdl description: WunderGraph Fetch subgraph SDL call: cosmo-platform-subgraphs.fetchsubgraphsdl with: name: rest.name namespace: rest.namespace outputParameters: - type: object mapping: $. - path: /v1/v1/subgraphs/{name}/move name: v1-subgraphs-name-move description: REST surface for v1-subgraphs-name-move. operations: - method: POST name: movesubgraph description: WunderGraph Move a subgraph to another namespace call: cosmo-platform-subgraphs.movesubgraph with: name: rest.name body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/subgraphs/{name}/publish name: v1-subgraphs-name-publish description: REST surface for v1-subgraphs-name-publish. operations: - method: POST name: publishsubgraph description: WunderGraph Publish a subgraph schema call: cosmo-platform-subgraphs.publishsubgraph with: name: rest.name body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cosmo-platform-subgraphs-mcp port: 9090 transport: http description: MCP adapter for WunderGraph Cosmo Platform API — Subgraphs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: wundergraph-list-subgraphs description: WunderGraph List subgraphs hints: readOnly: true destructive: false idempotent: true call: cosmo-platform-subgraphs.listsubgraphs with: namespace: tools.namespace limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: wundergraph-create-subgraph description: WunderGraph Create a subgraph hints: readOnly: false destructive: false idempotent: false call: cosmo-platform-subgraphs.createsubgraph with: body: tools.body outputParameters: - type: object mapping: $. - name: wundergraph-get-subgraph description: WunderGraph Get a subgraph hints: readOnly: true destructive: false idempotent: true call: cosmo-platform-subgraphs.getsubgraph with: name: tools.name namespace: tools.namespace outputParameters: - type: object mapping: $. - name: wundergraph-update-subgraph description: WunderGraph Update a subgraph hints: readOnly: false destructive: false idempotent: true call: cosmo-platform-subgraphs.updatesubgraph with: name: tools.name body: tools.body outputParameters: - type: object mapping: $. - name: wundergraph-delete-subgraph description: WunderGraph Delete a subgraph hints: readOnly: false destructive: true idempotent: true call: cosmo-platform-subgraphs.deletesubgraph with: name: tools.name namespace: tools.namespace outputParameters: - type: object mapping: $. - name: wundergraph-check-subgraph-schema description: WunderGraph Check a subgraph schema hints: readOnly: true destructive: false idempotent: false call: cosmo-platform-subgraphs.checksubgraph with: name: tools.name body: tools.body outputParameters: - type: object mapping: $. - name: wundergraph-fetch-subgraph-sdl description: WunderGraph Fetch subgraph SDL hints: readOnly: true destructive: false idempotent: true call: cosmo-platform-subgraphs.fetchsubgraphsdl with: name: tools.name namespace: tools.namespace outputParameters: - type: object mapping: $. - name: wundergraph-move-subgraph-another-namespace description: WunderGraph Move a subgraph to another namespace hints: readOnly: false destructive: false idempotent: false call: cosmo-platform-subgraphs.movesubgraph with: name: tools.name body: tools.body outputParameters: - type: object mapping: $. - name: wundergraph-publish-subgraph-schema description: WunderGraph Publish a subgraph schema hints: readOnly: false destructive: false idempotent: false call: cosmo-platform-subgraphs.publishsubgraph with: name: tools.name body: tools.body outputParameters: - type: object mapping: $.