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