naftiko: 1.0.0-alpha2 info: label: Storyblok Management API — Components description: 'Storyblok Management API — Components. 5 operations. Lead operation: List components in a space. Self-contained Naftiko capability covering one Storyblok business surface.' tags: - Storyblok - Components created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STORYBLOK_API_KEY: STORYBLOK_API_KEY capability: consumes: - type: http namespace: management-components baseUri: https://mapi.storyblok.com/v1 description: Storyblok Management API — Components business capability. Self-contained, no shared references. resources: - name: spaces-space_id-components path: /spaces/{space_id}/components operations: - name: listcomponents method: GET description: List components in a space outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: search in: query type: string description: Filter components by name using a partial text match. - name: in_groups in: query type: string description: Comma-separated list of component group UUIDs to filter components by their assigned group. - name: createcomponent method: POST description: Create a component 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-components-component_id path: /spaces/{space_id}/components/{component_id} operations: - name: getcomponent method: GET description: Retrieve a single component outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecomponent method: PUT description: Update a component outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecomponent method: DELETE description: Delete a component outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.STORYBLOK_API_KEY}}' exposes: - type: rest namespace: management-components-rest port: 8080 description: REST adapter for Storyblok Management API — Components. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/spaces/{space-id}/components name: spaces-space-id-components description: REST surface for spaces-space_id-components. operations: - method: GET name: listcomponents description: List components in a space call: management-components.listcomponents with: search: rest.search in_groups: rest.in_groups outputParameters: - type: object mapping: $. - method: POST name: createcomponent description: Create a component call: management-components.createcomponent with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/spaces/{space-id}/components/{component-id} name: spaces-space-id-components-component-id description: REST surface for spaces-space_id-components-component_id. operations: - method: GET name: getcomponent description: Retrieve a single component call: management-components.getcomponent outputParameters: - type: object mapping: $. - method: PUT name: updatecomponent description: Update a component call: management-components.updatecomponent with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecomponent description: Delete a component call: management-components.deletecomponent outputParameters: - type: object mapping: $. - type: mcp namespace: management-components-mcp port: 9090 transport: http description: MCP adapter for Storyblok Management API — Components. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-components-space description: List components in a space hints: readOnly: true destructive: false idempotent: true call: management-components.listcomponents with: search: tools.search in_groups: tools.in_groups outputParameters: - type: object mapping: $. - name: create-component description: Create a component hints: readOnly: false destructive: false idempotent: false call: management-components.createcomponent with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-single-component description: Retrieve a single component hints: readOnly: true destructive: false idempotent: true call: management-components.getcomponent outputParameters: - type: object mapping: $. - name: update-component description: Update a component hints: readOnly: false destructive: false idempotent: true call: management-components.updatecomponent with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-component description: Delete a component hints: readOnly: false destructive: true idempotent: true call: management-components.deletecomponent outputParameters: - type: object mapping: $.