naftiko: 1.0.0-alpha2 info: label: Argo CD API — Clusters description: 'Argo CD API — Clusters. 2 operations. Lead operation: Argo CD Argo List Clusters. Self-contained Naftiko capability covering one Argo business surface.' tags: - Argo - Clusters created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ARGO_API_KEY: ARGO_API_KEY capability: consumes: - type: http namespace: cd-clusters baseUri: https://localhost/api/v1 description: Argo CD API — Clusters business capability. Self-contained, no shared references. resources: - name: clusters path: /clusters operations: - name: listclusters method: GET description: Argo CD Argo List Clusters outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcluster method: POST description: Argo CD Argo Register a Cluster outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.ARGO_API_KEY}}' exposes: - type: rest namespace: cd-clusters-rest port: 8080 description: REST adapter for Argo CD API — Clusters. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/clusters name: clusters description: REST surface for clusters. operations: - method: GET name: listclusters description: Argo CD Argo List Clusters call: cd-clusters.listclusters outputParameters: - type: object mapping: $. - method: POST name: createcluster description: Argo CD Argo Register a Cluster call: cd-clusters.createcluster with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cd-clusters-mcp port: 9090 transport: http description: MCP adapter for Argo CD API — Clusters. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: argo-cd-argo-list-clusters description: Argo CD Argo List Clusters hints: readOnly: true destructive: false idempotent: true call: cd-clusters.listclusters outputParameters: - type: object mapping: $. - name: argo-cd-argo-register-cluster description: Argo CD Argo Register a Cluster hints: readOnly: false destructive: false idempotent: false call: cd-clusters.createcluster with: body: tools.body outputParameters: - type: object mapping: $.