naftiko: 1.0.0-alpha2 info: label: Storyblok Management API — Collaborators description: 'Storyblok Management API — Collaborators. 3 operations. Lead operation: List collaborators in a space. Self-contained Naftiko capability covering one Storyblok business surface.' tags: - Storyblok - Collaborators created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STORYBLOK_API_KEY: STORYBLOK_API_KEY capability: consumes: - type: http namespace: management-collaborators baseUri: https://mapi.storyblok.com/v1 description: Storyblok Management API — Collaborators business capability. Self-contained, no shared references. resources: - name: spaces-space_id-collaborators path: /spaces/{space_id}/collaborators operations: - name: listcollaborators method: GET description: List collaborators in a space outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addcollaborator method: POST description: Add a collaborator outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: spaces-space_id-collaborators-collaborator_id path: /spaces/{space_id}/collaborators/{collaborator_id} operations: - name: deletecollaborator method: DELETE description: Remove a collaborator outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: collaborator_id in: path type: integer description: Numeric ID of the collaborator to remove. required: true authentication: type: bearer token: '{{env.STORYBLOK_API_KEY}}' exposes: - type: rest namespace: management-collaborators-rest port: 8080 description: REST adapter for Storyblok Management API — Collaborators. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/spaces/{space-id}/collaborators name: spaces-space-id-collaborators description: REST surface for spaces-space_id-collaborators. operations: - method: GET name: listcollaborators description: List collaborators in a space call: management-collaborators.listcollaborators outputParameters: - type: object mapping: $. - method: POST name: addcollaborator description: Add a collaborator call: management-collaborators.addcollaborator with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/spaces/{space-id}/collaborators/{collaborator-id} name: spaces-space-id-collaborators-collaborator-id description: REST surface for spaces-space_id-collaborators-collaborator_id. operations: - method: DELETE name: deletecollaborator description: Remove a collaborator call: management-collaborators.deletecollaborator with: collaborator_id: rest.collaborator_id outputParameters: - type: object mapping: $. - type: mcp namespace: management-collaborators-mcp port: 9090 transport: http description: MCP adapter for Storyblok Management API — Collaborators. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-collaborators-space description: List collaborators in a space hints: readOnly: true destructive: false idempotent: true call: management-collaborators.listcollaborators outputParameters: - type: object mapping: $. - name: add-collaborator description: Add a collaborator hints: readOnly: false destructive: false idempotent: false call: management-collaborators.addcollaborator with: body: tools.body outputParameters: - type: object mapping: $. - name: remove-collaborator description: Remove a collaborator hints: readOnly: false destructive: true idempotent: true call: management-collaborators.deletecollaborator with: collaborator_id: tools.collaborator_id outputParameters: - type: object mapping: $.