naftiko: 1.0.0-alpha2 info: label: GitBook API — Custom Hostnames description: 'GitBook API — Custom Hostnames. 3 operations. Lead operation: GitBook Get custom hostname. Self-contained Naftiko capability covering one Gitbook business surface.' tags: - Gitbook - Custom Hostnames created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITBOOK_API_KEY: GITBOOK_API_KEY capability: consumes: - type: http namespace: gitbook-custom-hostnames baseUri: https://api.gitbook.com/v1 description: GitBook API — Custom Hostnames business capability. Self-contained, no shared references. resources: - name: orgs-organizationId-sites-siteId-custom-hostname path: /orgs/{organizationId}/sites/{siteId}/custom-hostname operations: - name: getcustomhostname method: GET description: GitBook Get custom hostname outputRawFormat: json outputParameters: - name: result type: object value: $. - name: setcustomhostname method: PUT description: GitBook Set custom hostname outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: removecustomhostname method: DELETE description: GitBook Remove custom hostname outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITBOOK_API_KEY}}' exposes: - type: rest namespace: gitbook-custom-hostnames-rest port: 8080 description: REST adapter for GitBook API — Custom Hostnames. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{organizationid}/sites/{siteid}/custom-hostname name: orgs-organizationid-sites-siteid-custom-hostname description: REST surface for orgs-organizationId-sites-siteId-custom-hostname. operations: - method: GET name: getcustomhostname description: GitBook Get custom hostname call: gitbook-custom-hostnames.getcustomhostname outputParameters: - type: object mapping: $. - method: PUT name: setcustomhostname description: GitBook Set custom hostname call: gitbook-custom-hostnames.setcustomhostname with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removecustomhostname description: GitBook Remove custom hostname call: gitbook-custom-hostnames.removecustomhostname outputParameters: - type: object mapping: $. - type: mcp namespace: gitbook-custom-hostnames-mcp port: 9090 transport: http description: MCP adapter for GitBook API — Custom Hostnames. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: gitbook-get-custom-hostname description: GitBook Get custom hostname hints: readOnly: true destructive: false idempotent: true call: gitbook-custom-hostnames.getcustomhostname outputParameters: - type: object mapping: $. - name: gitbook-set-custom-hostname description: GitBook Set custom hostname hints: readOnly: false destructive: false idempotent: true call: gitbook-custom-hostnames.setcustomhostname with: body: tools.body outputParameters: - type: object mapping: $. - name: gitbook-remove-custom-hostname description: GitBook Remove custom hostname hints: readOnly: false destructive: true idempotent: true call: gitbook-custom-hostnames.removecustomhostname outputParameters: - type: object mapping: $.