Kubernetes · Capability

Kubernetes API — Config

Kubernetes API — Config. 4 operations. Lead operation: Kubernetes List ConfigMaps in a namespace. Self-contained Naftiko capability covering one Kubernetes business surface.

Run with Naftiko KubernetesConfig

What You Can Do

GET
Listnamespacedconfigmaps — Kubernetes List ConfigMaps in a namespace
/v1/api/v1/namespaces/{namespace}/configmaps
POST
Createnamespacedconfigmap — Kubernetes Create a ConfigMap
/v1/api/v1/namespaces/{namespace}/configmaps
GET
Listnamespacedsecrets — Kubernetes List Secrets in a namespace
/v1/api/v1/namespaces/{namespace}/secrets
POST
Createnamespacedsecret — Kubernetes Create a Secret
/v1/api/v1/namespaces/{namespace}/secrets

MCP Tools

kubernetes-list-configmaps-namespace

Kubernetes List ConfigMaps in a namespace

read-only idempotent
kubernetes-create-configmap

Kubernetes Create a ConfigMap

kubernetes-list-secrets-namespace

Kubernetes List Secrets in a namespace

read-only idempotent
kubernetes-create-secret

Kubernetes Create a Secret

Capability Spec

kubernetes-config.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kubernetes API — Config
  description: 'Kubernetes API — Config. 4 operations. Lead operation: Kubernetes List ConfigMaps in a namespace. Self-contained
    Naftiko capability covering one Kubernetes business surface.'
  tags:
  - Kubernetes
  - Config
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KUBERNETES_API_KEY: KUBERNETES_API_KEY
capability:
  consumes:
  - type: http
    namespace: kubernetes-config
    baseUri: https://kubernetes.default.svc
    description: Kubernetes API — Config business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-namespaces-namespace-configmaps
      path: /api/v1/namespaces/{namespace}/configmaps
      operations:
      - name: listnamespacedconfigmaps
        method: GET
        description: Kubernetes List ConfigMaps in a namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createnamespacedconfigmap
        method: POST
        description: Kubernetes Create a ConfigMap
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v1-namespaces-namespace-secrets
      path: /api/v1/namespaces/{namespace}/secrets
      operations:
      - name: listnamespacedsecrets
        method: GET
        description: Kubernetes List Secrets in a namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createnamespacedsecret
        method: POST
        description: Kubernetes Create a Secret
        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.KUBERNETES_API_KEY}}'
  exposes:
  - type: rest
    namespace: kubernetes-config-rest
    port: 8080
    description: REST adapter for Kubernetes API — Config. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v1/namespaces/{namespace}/configmaps
      name: api-v1-namespaces-namespace-configmaps
      description: REST surface for api-v1-namespaces-namespace-configmaps.
      operations:
      - method: GET
        name: listnamespacedconfigmaps
        description: Kubernetes List ConfigMaps in a namespace
        call: kubernetes-config.listnamespacedconfigmaps
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createnamespacedconfigmap
        description: Kubernetes Create a ConfigMap
        call: kubernetes-config.createnamespacedconfigmap
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/namespaces/{namespace}/secrets
      name: api-v1-namespaces-namespace-secrets
      description: REST surface for api-v1-namespaces-namespace-secrets.
      operations:
      - method: GET
        name: listnamespacedsecrets
        description: Kubernetes List Secrets in a namespace
        call: kubernetes-config.listnamespacedsecrets
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createnamespacedsecret
        description: Kubernetes Create a Secret
        call: kubernetes-config.createnamespacedsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kubernetes-config-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kubernetes API — Config. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: kubernetes-list-configmaps-namespace
      description: Kubernetes List ConfigMaps in a namespace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kubernetes-config.listnamespacedconfigmaps
      outputParameters:
      - type: object
        mapping: $.
    - name: kubernetes-create-configmap
      description: Kubernetes Create a ConfigMap
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kubernetes-config.createnamespacedconfigmap
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: kubernetes-list-secrets-namespace
      description: Kubernetes List Secrets in a namespace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kubernetes-config.listnamespacedsecrets
      outputParameters:
      - type: object
        mapping: $.
    - name: kubernetes-create-secret
      description: Kubernetes Create a Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kubernetes-config.createnamespacedsecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.