Kibana · Capability

Kibana APIs — APM sourcemaps

Kibana APIs — APM sourcemaps. 3 operations. Lead operation: Get source maps. Self-contained Naftiko capability covering one Kibana business surface.

Run with Naftiko KibanaAPM sourcemaps

What You Can Do

GET
Getsourcemaps — Get source maps
/v1/api/apm/sourcemaps
POST
Uploadsourcemap — Upload a source map
/v1/api/apm/sourcemaps
DELETE
Deletesourcemap — Delete source map
/v1/api/apm/sourcemaps/{id}

MCP Tools

get-source-maps

Get source maps

read-only idempotent
upload-source-map

Upload a source map

delete-source-map

Delete source map

idempotent

Capability Spec

kibana-apm-sourcemaps.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kibana APIs — APM sourcemaps
  description: 'Kibana APIs — APM sourcemaps. 3 operations. Lead operation: Get source maps. Self-contained Naftiko capability
    covering one Kibana business surface.'
  tags:
  - Kibana
  - APM sourcemaps
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KIBANA_API_KEY: KIBANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: kibana-apm-sourcemaps
    baseUri: https://{kibana_url}
    description: Kibana APIs — APM sourcemaps business capability. Self-contained, no shared references.
    resources:
    - name: api-apm-sourcemaps
      path: /api/apm/sourcemaps
      operations:
      - name: getsourcemaps
        method: GET
        description: Get source maps
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: number
          description: Page number
        - name: perPage
          in: query
          type: number
          description: Number of records per page
      - name: uploadsourcemap
        method: POST
        description: Upload a source map
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-apm-sourcemaps-id
      path: /api/apm/sourcemaps/{id}
      operations:
      - name: deletesourcemap
        method: DELETE
        description: Delete source map
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Source map identifier
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.KIBANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: kibana-apm-sourcemaps-rest
    port: 8080
    description: REST adapter for Kibana APIs — APM sourcemaps. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/apm/sourcemaps
      name: api-apm-sourcemaps
      description: REST surface for api-apm-sourcemaps.
      operations:
      - method: GET
        name: getsourcemaps
        description: Get source maps
        call: kibana-apm-sourcemaps.getsourcemaps
        with:
          page: rest.page
          perPage: rest.perPage
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: uploadsourcemap
        description: Upload a source map
        call: kibana-apm-sourcemaps.uploadsourcemap
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/apm/sourcemaps/{id}
      name: api-apm-sourcemaps-id
      description: REST surface for api-apm-sourcemaps-id.
      operations:
      - method: DELETE
        name: deletesourcemap
        description: Delete source map
        call: kibana-apm-sourcemaps.deletesourcemap
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kibana-apm-sourcemaps-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kibana APIs — APM sourcemaps. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-source-maps
      description: Get source maps
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kibana-apm-sourcemaps.getsourcemaps
      with:
        page: tools.page
        perPage: tools.perPage
      outputParameters:
      - type: object
        mapping: $.
    - name: upload-source-map
      description: Upload a source map
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kibana-apm-sourcemaps.uploadsourcemap
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-source-map
      description: Delete source map
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: kibana-apm-sourcemaps.deletesourcemap
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.