naftiko: 1.0.0-alpha2 info: label: Hacker News API — Users description: 'Hacker News API — Users. 1 operations. Lead operation: Get user profile. Self-contained Naftiko capability covering one Hacker News business surface.' tags: - Hacker News - Users 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-users baseUri: https://hacker-news.firebaseio.com/v0 description: Hacker News API — Users business capability. Self-contained, no shared references. resources: - name: user-username}.json path: /user/{username}.json operations: - name: getuser method: GET description: Get user profile outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: username in: path type: string description: Case-sensitive HN username. required: true exposes: - type: rest namespace: hacker-news-users-rest port: 8080 description: REST adapter for Hacker News API — Users. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/user/username-json name: user-username-json description: REST surface for user-username}.json. operations: - method: GET name: getuser description: Get user profile call: hacker-news-users.getuser with: username: rest.username outputParameters: - type: object mapping: $. - type: mcp namespace: hacker-news-users-mcp port: 9090 transport: http description: MCP adapter for Hacker News API — Users. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-user-profile description: Get user profile hints: readOnly: true destructive: false idempotent: true call: hacker-news-users.getuser with: username: tools.username outputParameters: - type: object mapping: $.