naftiko: 1.0.0-alpha2 info: label: Dapr Distributed Lock API — DistributedLock description: 'Dapr Distributed Lock API — DistributedLock. 2 operations. Lead operation: Dapr Try Lock. Self-contained Naftiko capability covering one Dapr business surface.' tags: - Dapr - DistributedLock created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DAPR_API_KEY: DAPR_API_KEY capability: consumes: - type: http namespace: distributed-lock-distributedlock baseUri: http://localhost:3500 description: Dapr Distributed Lock API — DistributedLock business capability. Self-contained, no shared references. resources: - name: v1.0-alpha1-lock-storename path: /v1.0-alpha1/lock/{storename} operations: - name: trylock method: POST description: Dapr Try Lock outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: storename in: path type: string description: The name of the lock store component. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: v1.0-alpha1-unlock-storename path: /v1.0-alpha1/unlock/{storename} operations: - name: unlock method: POST description: Dapr Unlock outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: storename in: path type: string description: The name of the lock store component. required: true - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: distributed-lock-distributedlock-rest port: 8080 description: REST adapter for Dapr Distributed Lock API — DistributedLock. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1-0-alpha1/lock/{storename} name: v1-0-alpha1-lock-storename description: REST surface for v1.0-alpha1-lock-storename. operations: - method: POST name: trylock description: Dapr Try Lock call: distributed-lock-distributedlock.trylock with: storename: rest.storename body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1-0-alpha1/unlock/{storename} name: v1-0-alpha1-unlock-storename description: REST surface for v1.0-alpha1-unlock-storename. operations: - method: POST name: unlock description: Dapr Unlock call: distributed-lock-distributedlock.unlock with: storename: rest.storename body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: distributed-lock-distributedlock-mcp port: 9090 transport: http description: MCP adapter for Dapr Distributed Lock API — DistributedLock. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: dapr-try-lock description: Dapr Try Lock hints: readOnly: false destructive: false idempotent: false call: distributed-lock-distributedlock.trylock with: storename: tools.storename body: tools.body outputParameters: - type: object mapping: $. - name: dapr-unlock description: Dapr Unlock hints: readOnly: false destructive: false idempotent: false call: distributed-lock-distributedlock.unlock with: storename: tools.storename body: tools.body outputParameters: - type: object mapping: $.