naftiko: 1.0.0-alpha2 info: label: Debian Sources API — Copyright description: 'Debian Sources API — Copyright. 2 operations. Lead operation: Get copyright for a file path. Self-contained Naftiko capability covering one Debian business surface.' tags: - Debian - Copyright created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DEBIAN_API_KEY: DEBIAN_API_KEY capability: consumes: - type: http namespace: sources-copyright baseUri: https://sources.debian.org/api description: Debian Sources API — Copyright business capability. Self-contained, no shared references. resources: - name: copyright-api-file-package-version-path path: /copyright/api/file/{package}/{version}/{path} operations: - name: copyrightbyfile method: GET description: Get copyright for a file path outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: package in: path type: string required: true - name: version in: path type: string required: true - name: path in: path type: string required: true - name: copyright-api-sha256 path: /copyright/api/sha256/ operations: - name: copyrightbysha256 method: GET description: Look up copyright for a file checksum outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: sources-copyright-rest port: 8080 description: REST adapter for Debian Sources API — Copyright. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/copyright/api/file/{package}/{version}/{path} name: copyright-api-file-package-version-path description: REST surface for copyright-api-file-package-version-path. operations: - method: GET name: copyrightbyfile description: Get copyright for a file path call: sources-copyright.copyrightbyfile with: package: rest.package version: rest.version path: rest.path outputParameters: - type: object mapping: $. - path: /v1/copyright/api/sha256 name: copyright-api-sha256 description: REST surface for copyright-api-sha256. operations: - method: GET name: copyrightbysha256 description: Look up copyright for a file checksum call: sources-copyright.copyrightbysha256 outputParameters: - type: object mapping: $. - type: mcp namespace: sources-copyright-mcp port: 9090 transport: http description: MCP adapter for Debian Sources API — Copyright. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-copyright-file-path description: Get copyright for a file path hints: readOnly: true destructive: false idempotent: true call: sources-copyright.copyrightbyfile with: package: tools.package version: tools.version path: tools.path outputParameters: - type: object mapping: $. - name: look-up-copyright-file-checksum description: Look up copyright for a file checksum hints: readOnly: true destructive: false idempotent: true call: sources-copyright.copyrightbysha256 outputParameters: - type: object mapping: $.