naftiko: 1.0.0-alpha2 info: label: Heroku Platform API — Domains description: 'Heroku Platform API — Domains. 4 operations. Lead operation: List domains. Self-contained Naftiko capability covering one Heroku business surface.' tags: - Heroku - Domains created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HEROKU_API_KEY: HEROKU_API_KEY capability: consumes: - type: http namespace: platform-domains baseUri: https://api.heroku.com description: Heroku Platform API — Domains business capability. Self-contained, no shared references. resources: - name: apps-app_id_or_name-domains path: /apps/{app_id_or_name}/domains operations: - name: listdomains method: GET description: List domains outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdomain method: POST description: Create a domain outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: apps-app_id_or_name-domains-domain_id_or_hostname path: /apps/{app_id_or_name}/domains/{domain_id_or_hostname} operations: - name: getdomain method: GET description: Get domain info outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: domain_id_or_hostname in: path type: string required: true - name: deletedomain method: DELETE description: Delete a domain outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: domain_id_or_hostname in: path type: string required: true authentication: type: bearer token: '{{env.HEROKU_API_KEY}}' exposes: - type: rest namespace: platform-domains-rest port: 8080 description: REST adapter for Heroku Platform API — Domains. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/apps/{app-id-or-name}/domains name: apps-app-id-or-name-domains description: REST surface for apps-app_id_or_name-domains. operations: - method: GET name: listdomains description: List domains call: platform-domains.listdomains outputParameters: - type: object mapping: $. - method: POST name: createdomain description: Create a domain call: platform-domains.createdomain with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/apps/{app-id-or-name}/domains/{domain-id-or-hostname} name: apps-app-id-or-name-domains-domain-id-or-hostname description: REST surface for apps-app_id_or_name-domains-domain_id_or_hostname. operations: - method: GET name: getdomain description: Get domain info call: platform-domains.getdomain with: domain_id_or_hostname: rest.domain_id_or_hostname outputParameters: - type: object mapping: $. - method: DELETE name: deletedomain description: Delete a domain call: platform-domains.deletedomain with: domain_id_or_hostname: rest.domain_id_or_hostname outputParameters: - type: object mapping: $. - type: mcp namespace: platform-domains-mcp port: 9090 transport: http description: MCP adapter for Heroku Platform API — Domains. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-domains description: List domains hints: readOnly: true destructive: false idempotent: true call: platform-domains.listdomains outputParameters: - type: object mapping: $. - name: create-domain description: Create a domain hints: readOnly: false destructive: false idempotent: false call: platform-domains.createdomain with: body: tools.body outputParameters: - type: object mapping: $. - name: get-domain-info description: Get domain info hints: readOnly: true destructive: false idempotent: true call: platform-domains.getdomain with: domain_id_or_hostname: tools.domain_id_or_hostname outputParameters: - type: object mapping: $. - name: delete-domain description: Delete a domain hints: readOnly: false destructive: true idempotent: true call: platform-domains.deletedomain with: domain_id_or_hostname: tools.domain_id_or_hostname outputParameters: - type: object mapping: $.