naftiko: 1.0.0-alpha2 info: label: NuGet Package Content API — Package Content description: 'NuGet Package Content API — Package Content. 3 operations. Lead operation: Enumerate package versions. Self-contained Naftiko capability covering one Nuget business surface.' tags: - Nuget - Package Content created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NUGET_API_KEY: NUGET_API_KEY capability: consumes: - type: http namespace: package-content-package-content baseUri: https://api.nuget.org/v3-flatcontainer description: NuGet Package Content API — Package Content business capability. Self-contained, no shared references. resources: - name: lowerId-index.json path: /{lowerId}/index.json operations: - name: listpackageversions method: GET description: Enumerate package versions outputRawFormat: json outputParameters: - name: result type: object value: $. - name: lowerId-lowerVersion-lowerId}.nuspec path: /{lowerId}/{lowerVersion}/{lowerId}.nuspec operations: - name: downloadpackagemanifest method: GET description: Download package manifest (.nuspec) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: lowerId-lowerVersion-lowerId}.{lowerVersion}.nupkg path: /{lowerId}/{lowerVersion}/{lowerId}.{lowerVersion}.nupkg operations: - name: downloadpackage method: GET description: Download package content (.nupkg) outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: package-content-package-content-rest port: 8080 description: REST adapter for NuGet Package Content API — Package Content. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{lowerid}/index-json name: lowerid-index-json description: REST surface for lowerId-index.json. operations: - method: GET name: listpackageversions description: Enumerate package versions call: package-content-package-content.listpackageversions outputParameters: - type: object mapping: $. - path: /v1/{lowerid}/{lowerversion}/lowerid-nuspec name: lowerid-lowerversion-lowerid-nuspec description: REST surface for lowerId-lowerVersion-lowerId}.nuspec. operations: - method: GET name: downloadpackagemanifest description: Download package manifest (.nuspec) call: package-content-package-content.downloadpackagemanifest outputParameters: - type: object mapping: $. - path: /v1/{lowerid}/{lowerversion}/lowerid-lowerversion-nupkg name: lowerid-lowerversion-lowerid-lowerversion-nupkg description: REST surface for lowerId-lowerVersion-lowerId}.{lowerVersion}.nupkg. operations: - method: GET name: downloadpackage description: Download package content (.nupkg) call: package-content-package-content.downloadpackage outputParameters: - type: object mapping: $. - type: mcp namespace: package-content-package-content-mcp port: 9090 transport: http description: MCP adapter for NuGet Package Content API — Package Content. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: enumerate-package-versions description: Enumerate package versions hints: readOnly: true destructive: false idempotent: true call: package-content-package-content.listpackageversions outputParameters: - type: object mapping: $. - name: download-package-manifest-nuspec description: Download package manifest (.nuspec) hints: readOnly: true destructive: false idempotent: true call: package-content-package-content.downloadpackagemanifest outputParameters: - type: object mapping: $. - name: download-package-content-nupkg description: Download package content (.nupkg) hints: readOnly: true destructive: false idempotent: true call: package-content-package-content.downloadpackage outputParameters: - type: object mapping: $.