naftiko: 1.0.0-alpha2 info: label: GitBook API — OpenAPI Specs description: 'GitBook API — OpenAPI Specs. 3 operations. Lead operation: GitBook List OpenAPI specifications. Self-contained Naftiko capability covering one Gitbook business surface.' tags: - Gitbook - OpenAPI Specs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITBOOK_API_KEY: GITBOOK_API_KEY capability: consumes: - type: http namespace: gitbook-openapi-specs baseUri: https://api.gitbook.com/v1 description: GitBook API — OpenAPI Specs business capability. Self-contained, no shared references. resources: - name: orgs-organizationId-openapi path: /orgs/{organizationId}/openapi operations: - name: listopenapispecs method: GET description: GitBook List OpenAPI specifications outputRawFormat: json outputParameters: - name: result type: object value: $. - name: uploadopenapispec method: POST description: GitBook Upload an OpenAPI specification outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-organizationId-openapi-specSlug path: /orgs/{organizationId}/openapi/{specSlug} operations: - name: getopenapispec method: GET description: GitBook Get an OpenAPI specification outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: specSlug in: path type: string description: The slug of the OpenAPI specification. required: true authentication: type: bearer token: '{{env.GITBOOK_API_KEY}}' exposes: - type: rest namespace: gitbook-openapi-specs-rest port: 8080 description: REST adapter for GitBook API — OpenAPI Specs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{organizationid}/openapi name: orgs-organizationid-openapi description: REST surface for orgs-organizationId-openapi. operations: - method: GET name: listopenapispecs description: GitBook List OpenAPI specifications call: gitbook-openapi-specs.listopenapispecs outputParameters: - type: object mapping: $. - method: POST name: uploadopenapispec description: GitBook Upload an OpenAPI specification call: gitbook-openapi-specs.uploadopenapispec with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{organizationid}/openapi/{specslug} name: orgs-organizationid-openapi-specslug description: REST surface for orgs-organizationId-openapi-specSlug. operations: - method: GET name: getopenapispec description: GitBook Get an OpenAPI specification call: gitbook-openapi-specs.getopenapispec with: specSlug: rest.specSlug outputParameters: - type: object mapping: $. - type: mcp namespace: gitbook-openapi-specs-mcp port: 9090 transport: http description: MCP adapter for GitBook API — OpenAPI Specs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: gitbook-list-openapi-specifications description: GitBook List OpenAPI specifications hints: readOnly: true destructive: false idempotent: true call: gitbook-openapi-specs.listopenapispecs outputParameters: - type: object mapping: $. - name: gitbook-upload-openapi-specification description: GitBook Upload an OpenAPI specification hints: readOnly: false destructive: false idempotent: false call: gitbook-openapi-specs.uploadopenapispec with: body: tools.body outputParameters: - type: object mapping: $. - name: gitbook-get-openapi-specification description: GitBook Get an OpenAPI specification hints: readOnly: true destructive: false idempotent: true call: gitbook-openapi-specs.getopenapispec with: specSlug: tools.specSlug outputParameters: - type: object mapping: $.