naftiko: 1.0.0-alpha2 info: label: Hacker News API — Live description: 'Hacker News API — Live. 2 operations. Lead operation: Get max item ID. Self-contained Naftiko capability covering one Hacker News business surface.' tags: - Hacker News - Live created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HACKER_NEWS_API_KEY: HACKER_NEWS_API_KEY capability: consumes: - type: http namespace: hacker-news-live baseUri: https://hacker-news.firebaseio.com/v0 description: Hacker News API — Live business capability. Self-contained, no shared references. resources: - name: maxitem.json path: /maxitem.json operations: - name: getmaxitem method: GET description: Get max item ID outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updates.json path: /updates.json operations: - name: getupdates method: GET description: Get changed items and profiles outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: hacker-news-live-rest port: 8080 description: REST adapter for Hacker News API — Live. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/maxitem-json name: maxitem-json description: REST surface for maxitem.json. operations: - method: GET name: getmaxitem description: Get max item ID call: hacker-news-live.getmaxitem outputParameters: - type: object mapping: $. - path: /v1/updates-json name: updates-json description: REST surface for updates.json. operations: - method: GET name: getupdates description: Get changed items and profiles call: hacker-news-live.getupdates outputParameters: - type: object mapping: $. - type: mcp namespace: hacker-news-live-mcp port: 9090 transport: http description: MCP adapter for Hacker News API — Live. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-max-item-id description: Get max item ID hints: readOnly: true destructive: false idempotent: true call: hacker-news-live.getmaxitem outputParameters: - type: object mapping: $. - name: get-changed-items-and-profiles description: Get changed items and profiles hints: readOnly: true destructive: false idempotent: true call: hacker-news-live.getupdates outputParameters: - type: object mapping: $.