naftiko: 1.0.0-alpha2 info: label: SimpleLegal API — Cost Codes description: 'SimpleLegal API — Cost Codes. 1 operations. Lead operation: List Cost Codes. Self-contained Naftiko capability covering one Simplelegal business surface.' tags: - Simplelegal - Cost Codes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SIMPLELEGAL_API_KEY: SIMPLELEGAL_API_KEY capability: consumes: - type: http namespace: simplelegal-cost-codes baseUri: https://app.simplelegal.com/api/v1 description: SimpleLegal API — Cost Codes business capability. Self-contained, no shared references. resources: - name: cost-codes path: /cost-codes operations: - name: listcostcodes method: GET description: List Cost Codes outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: type in: query type: string description: Filter by cost code type. - name: active in: query type: boolean description: Filter by active status. authentication: type: basic username: '{{env.SIMPLELEGAL_USER}}' password: '{{env.SIMPLELEGAL_PASS}}' exposes: - type: rest namespace: simplelegal-cost-codes-rest port: 8080 description: REST adapter for SimpleLegal API — Cost Codes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/cost-codes name: cost-codes description: REST surface for cost-codes. operations: - method: GET name: listcostcodes description: List Cost Codes call: simplelegal-cost-codes.listcostcodes with: type: rest.type active: rest.active outputParameters: - type: object mapping: $. - type: mcp namespace: simplelegal-cost-codes-mcp port: 9090 transport: http description: MCP adapter for SimpleLegal API — Cost Codes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-cost-codes description: List Cost Codes hints: readOnly: true destructive: false idempotent: true call: simplelegal-cost-codes.listcostcodes with: type: tools.type active: tools.active outputParameters: - type: object mapping: $.