naftiko: 1.0.0-alpha2 info: label: GitBook API — Search description: 'GitBook API — Search. 2 operations. Lead operation: GitBook Search content in an organization. Self-contained Naftiko capability covering one Gitbook business surface.' tags: - Gitbook - Search created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITBOOK_API_KEY: GITBOOK_API_KEY capability: consumes: - type: http namespace: gitbook-search baseUri: https://api.gitbook.com/v1 description: GitBook API — Search business capability. Self-contained, no shared references. resources: - name: orgs-organizationId-search path: /orgs/{organizationId}/search operations: - name: searchorganizationcontent method: GET description: GitBook Search content in an organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string description: The search query. required: true - name: orgs-organizationId-sites-siteId-ask path: /orgs/{organizationId}/sites/{siteId}/ask operations: - name: asksiteai method: POST description: GitBook Ask a question to a site outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.GITBOOK_API_KEY}}' exposes: - type: rest namespace: gitbook-search-rest port: 8080 description: REST adapter for GitBook API — Search. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{organizationid}/search name: orgs-organizationid-search description: REST surface for orgs-organizationId-search. operations: - method: GET name: searchorganizationcontent description: GitBook Search content in an organization call: gitbook-search.searchorganizationcontent with: query: rest.query outputParameters: - type: object mapping: $. - path: /v1/orgs/{organizationid}/sites/{siteid}/ask name: orgs-organizationid-sites-siteid-ask description: REST surface for orgs-organizationId-sites-siteId-ask. operations: - method: POST name: asksiteai description: GitBook Ask a question to a site call: gitbook-search.asksiteai with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: gitbook-search-mcp port: 9090 transport: http description: MCP adapter for GitBook API — Search. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: gitbook-search-content-organization description: GitBook Search content in an organization hints: readOnly: true destructive: false idempotent: true call: gitbook-search.searchorganizationcontent with: query: tools.query outputParameters: - type: object mapping: $. - name: gitbook-ask-question-site description: GitBook Ask a question to a site hints: readOnly: false destructive: false idempotent: false call: gitbook-search.asksiteai with: body: tools.body outputParameters: - type: object mapping: $.