naftiko: 1.0.0-alpha2 info: label: OpenSearch Security Plugin REST API — Account description: 'OpenSearch Security Plugin REST API — Account. 2 operations. Lead operation: Get current user account. Self-contained Naftiko capability covering one Opensearch business surface.' tags: - Opensearch - Account created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPENSEARCH_API_KEY: OPENSEARCH_API_KEY capability: consumes: - type: http namespace: security-account baseUri: https://{cluster-host}:9200 description: OpenSearch Security Plugin REST API — Account business capability. Self-contained, no shared references. resources: - name: _plugins-_security-api-account path: /_plugins/_security/api/account operations: - name: getaccount method: GET description: Get current user account outputRawFormat: json outputParameters: - name: result type: object value: $. - name: changepassword method: PUT description: Change current user password outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.OPENSEARCH_USER}}' password: '{{env.OPENSEARCH_PASS}}' exposes: - type: rest namespace: security-account-rest port: 8080 description: REST adapter for OpenSearch Security Plugin REST API — Account. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/plugins/security/api/account name: plugins-security-api-account description: REST surface for _plugins-_security-api-account. operations: - method: GET name: getaccount description: Get current user account call: security-account.getaccount outputParameters: - type: object mapping: $. - method: PUT name: changepassword description: Change current user password call: security-account.changepassword with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: security-account-mcp port: 9090 transport: http description: MCP adapter for OpenSearch Security Plugin REST API — Account. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-current-user-account description: Get current user account hints: readOnly: true destructive: false idempotent: true call: security-account.getaccount outputParameters: - type: object mapping: $. - name: change-current-user-password description: Change current user password hints: readOnly: false destructive: false idempotent: true call: security-account.changepassword with: body: tools.body outputParameters: - type: object mapping: $.