naftiko: 1.0.0-alpha2 info: label: ReadMe API — Custom Pages description: 'ReadMe API — Custom Pages. 5 operations. Lead operation: List custom pages. Self-contained Naftiko capability covering one Readme business surface.' tags: - Readme - Custom Pages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: README_API_KEY: README_API_KEY capability: consumes: - type: http namespace: readme-custom-pages baseUri: https://api.readme.com/v2 description: ReadMe API — Custom Pages business capability. Self-contained, no shared references. resources: - name: custompages path: /custompages operations: - name: get method: GET description: List custom pages outputRawFormat: json outputParameters: - name: result type: object value: $. - name: post method: POST description: Create a custom page outputRawFormat: json outputParameters: - name: result type: object value: $. - name: custompages-slug path: /custompages/{slug} operations: - name: get method: GET description: Get a custom page outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: slug in: path type: string required: true - name: put method: PUT description: Update a custom page outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: slug in: path type: string required: true - name: delete method: DELETE description: Delete a custom page outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: slug in: path type: string required: true authentication: type: bearer token: '{{env.README_API_KEY}}' exposes: - type: rest namespace: readme-custom-pages-rest port: 8080 description: REST adapter for ReadMe API — Custom Pages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/custompages name: custompages description: REST surface for custompages. operations: - method: GET name: get description: List custom pages call: readme-custom-pages.get outputParameters: - type: object mapping: $. - method: POST name: post description: Create a custom page call: readme-custom-pages.post outputParameters: - type: object mapping: $. - path: /v1/custompages/{slug} name: custompages-slug description: REST surface for custompages-slug. operations: - method: GET name: get description: Get a custom page call: readme-custom-pages.get with: slug: rest.slug outputParameters: - type: object mapping: $. - method: PUT name: put description: Update a custom page call: readme-custom-pages.put with: slug: rest.slug outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete a custom page call: readme-custom-pages.delete with: slug: rest.slug outputParameters: - type: object mapping: $. - type: mcp namespace: readme-custom-pages-mcp port: 9090 transport: http description: MCP adapter for ReadMe API — Custom Pages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-custom-pages description: List custom pages hints: readOnly: true destructive: false idempotent: true call: readme-custom-pages.get outputParameters: - type: object mapping: $. - name: create-custom-page description: Create a custom page hints: readOnly: false destructive: false idempotent: false call: readme-custom-pages.post outputParameters: - type: object mapping: $. - name: get-custom-page description: Get a custom page hints: readOnly: true destructive: false idempotent: true call: readme-custom-pages.get with: slug: tools.slug outputParameters: - type: object mapping: $. - name: update-custom-page description: Update a custom page hints: readOnly: false destructive: false idempotent: true call: readme-custom-pages.put with: slug: tools.slug outputParameters: - type: object mapping: $. - name: delete-custom-page description: Delete a custom page hints: readOnly: false destructive: true idempotent: true call: readme-custom-pages.delete with: slug: tools.slug outputParameters: - type: object mapping: $.