Kibana · Capability

Kibana APIs

Kibana APIs. 5 operations. Lead operation: Get space settings. Self-contained Naftiko capability covering one Kibana business surface.

Run with Naftiko Kibana

What You Can Do

GET
Getactionsconnectoroauthcallbackscript — **Spaces method and path for this operation:**
/v1/api/actions/connector/oauth-callback-script
GET
Getfleetspacesettings — Get space settings
/v1/api/fleet/space-settings
PUT
Putfleetspacesettings — Create space settings
/v1/api/fleet/space-settings
POST
Postsecurityrolequery — Query roles
/v1/api/security/role/query
POST
Postspacesresolvecopysavedobjectserrors — Resolve conflicts copying saved objects
/v1/api/spaces/resolve-copy-saved-objects-errors

MCP Tools

spaces-method-and-path-this

**Spaces method and path for this operation:**

read-only idempotent
get-space-settings

Get space settings

read-only idempotent
create-space-settings

Create space settings

idempotent
query-roles

Query roles

read-only
resolve-conflicts-copying-saved-objects

Resolve conflicts copying saved objects

Capability Spec

kibana-general.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kibana APIs
  description: 'Kibana APIs. 5 operations. Lead operation: Get space settings. Self-contained Naftiko capability covering
    one Kibana business surface.'
  tags:
  - Kibana
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KIBANA_API_KEY: KIBANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: kibana-general
    baseUri: https://{kibana_url}
    description: Kibana APIs business capability. Self-contained, no shared references.
    resources:
    - name: api-actions-connector-_oauth_callback_script
      path: /api/actions/connector/_oauth_callback_script
      operations:
      - name: getactionsconnectoroauthcallbackscript
        method: GET
        description: '**Spaces method and path for this operation:**'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-fleet-space_settings
      path: /api/fleet/space_settings
      operations:
      - name: getfleetspacesettings
        method: GET
        description: Get space settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: putfleetspacesettings
        method: PUT
        description: Create space settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-security-role-_query
      path: /api/security/role/_query
      operations:
      - name: postsecurityrolequery
        method: POST
        description: Query roles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-spaces-_resolve_copy_saved_objects_errors
      path: /api/spaces/_resolve_copy_saved_objects_errors
      operations:
      - name: postspacesresolvecopysavedobjectserrors
        method: POST
        description: Resolve conflicts copying saved objects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.KIBANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: kibana-general-rest
    port: 8080
    description: REST adapter for Kibana APIs. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/actions/connector/oauth-callback-script
      name: api-actions-connector-oauth-callback-script
      description: REST surface for api-actions-connector-_oauth_callback_script.
      operations:
      - method: GET
        name: getactionsconnectoroauthcallbackscript
        description: '**Spaces method and path for this operation:**'
        call: kibana-general.getactionsconnectoroauthcallbackscript
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/fleet/space-settings
      name: api-fleet-space-settings
      description: REST surface for api-fleet-space_settings.
      operations:
      - method: GET
        name: getfleetspacesettings
        description: Get space settings
        call: kibana-general.getfleetspacesettings
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putfleetspacesettings
        description: Create space settings
        call: kibana-general.putfleetspacesettings
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/security/role/query
      name: api-security-role-query
      description: REST surface for api-security-role-_query.
      operations:
      - method: POST
        name: postsecurityrolequery
        description: Query roles
        call: kibana-general.postsecurityrolequery
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/spaces/resolve-copy-saved-objects-errors
      name: api-spaces-resolve-copy-saved-objects-errors
      description: REST surface for api-spaces-_resolve_copy_saved_objects_errors.
      operations:
      - method: POST
        name: postspacesresolvecopysavedobjectserrors
        description: Resolve conflicts copying saved objects
        call: kibana-general.postspacesresolvecopysavedobjectserrors
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kibana-general-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kibana APIs. One tool per consumed operation, routed inline through this capability's consumes
      block.
    tools:
    - name: spaces-method-and-path-this
      description: '**Spaces method and path for this operation:**'
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kibana-general.getactionsconnectoroauthcallbackscript
      outputParameters:
      - type: object
        mapping: $.
    - name: get-space-settings
      description: Get space settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kibana-general.getfleetspacesettings
      outputParameters:
      - type: object
        mapping: $.
    - name: create-space-settings
      description: Create space settings
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: kibana-general.putfleetspacesettings
      with:
        kbn-xsrf: tools.kbn-xsrf
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: query-roles
      description: Query roles
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: kibana-general.postsecurityrolequery
      with:
        kbn-xsrf: tools.kbn-xsrf
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: resolve-conflicts-copying-saved-objects
      description: Resolve conflicts copying saved objects
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kibana-general.postspacesresolvecopysavedobjectserrors
      with:
        kbn-xsrf: tools.kbn-xsrf
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.