naftiko: 1.0.0-alpha2 info: label: Modern Treasury — LedgerAccountStatement description: 'Modern Treasury — LedgerAccountStatement. 2 operations. Lead operation: create ledger_account_statement. Self-contained Naftiko capability covering one Modern Treasury business surface.' tags: - Modern Treasury - LedgerAccountStatement created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MODERN_TREASURY_API_KEY: MODERN_TREASURY_API_KEY capability: consumes: - type: http namespace: modern-treasury-ledgeraccountstatement baseUri: http://localhost:3000 description: Modern Treasury — LedgerAccountStatement business capability. Self-contained, no shared references. resources: - name: api-ledger_account_statements path: /api/ledger_account_statements operations: - name: createledgeraccountstatement method: POST description: create ledger_account_statement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Idempotency-Key in: header type: string description: This key should be something unique, preferably something like an UUID. - name: body in: body type: object description: Request body (JSON). required: false - name: api-ledger_account_statements-id path: /api/ledger_account_statements/{id} operations: - name: getledgeraccountstatement method: GET description: get ledger_account_statement outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.MODERN_TREASURY_USER}}' password: '{{env.MODERN_TREASURY_PASS}}' exposes: - type: rest namespace: modern-treasury-ledgeraccountstatement-rest port: 8080 description: REST adapter for Modern Treasury — LedgerAccountStatement. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/ledger-account-statements name: api-ledger-account-statements description: REST surface for api-ledger_account_statements. operations: - method: POST name: createledgeraccountstatement description: create ledger_account_statement call: modern-treasury-ledgeraccountstatement.createledgeraccountstatement with: Idempotency-Key: rest.Idempotency-Key body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/ledger-account-statements/{id} name: api-ledger-account-statements-id description: REST surface for api-ledger_account_statements-id. operations: - method: GET name: getledgeraccountstatement description: get ledger_account_statement call: modern-treasury-ledgeraccountstatement.getledgeraccountstatement outputParameters: - type: object mapping: $. - type: mcp namespace: modern-treasury-ledgeraccountstatement-mcp port: 9090 transport: http description: MCP adapter for Modern Treasury — LedgerAccountStatement. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-ledger-account-statement description: create ledger_account_statement hints: readOnly: false destructive: false idempotent: false call: modern-treasury-ledgeraccountstatement.createledgeraccountstatement with: Idempotency-Key: tools.Idempotency-Key body: tools.body outputParameters: - type: object mapping: $. - name: get-ledger-account-statement description: get ledger_account_statement hints: readOnly: true destructive: false idempotent: true call: modern-treasury-ledgeraccountstatement.getledgeraccountstatement outputParameters: - type: object mapping: $.