JupyterHub · Capability

JupyterHub REST API — Services

JupyterHub REST API — Services. 2 operations. Lead operation: JupyterHub List services. Self-contained Naftiko capability covering one Jupyterhub business surface.

Run with Naftiko JupyterhubServices

What You Can Do

GET
Listservices — JupyterHub List services
/v1/services
GET
Getservice — JupyterHub Get service
/v1/services/{name}

MCP Tools

jupyterhub-list-services

JupyterHub List services

read-only idempotent
jupyterhub-get-service

JupyterHub Get service

read-only idempotent

Capability Spec

rest-services.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: JupyterHub REST API — Services
  description: 'JupyterHub REST API — Services. 2 operations. Lead operation: JupyterHub List services. Self-contained Naftiko
    capability covering one Jupyterhub business surface.'
  tags:
  - Jupyterhub
  - Services
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    JUPYTERHUB_API_KEY: JUPYTERHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-services
    baseUri: http://localhost:8000/hub/api
    description: JupyterHub REST API — Services business capability. Self-contained, no shared references.
    resources:
    - name: services
      path: /services
      operations:
      - name: listservices
        method: GET
        description: JupyterHub List services
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: services-name
      path: /services/{name}
      operations:
      - name: getservice
        method: GET
        description: JupyterHub Get service
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.JUPYTERHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-services-rest
    port: 8080
    description: REST adapter for JupyterHub REST API — Services. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/services
      name: services
      description: REST surface for services.
      operations:
      - method: GET
        name: listservices
        description: JupyterHub List services
        call: rest-services.listservices
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/{name}
      name: services-name
      description: REST surface for services-name.
      operations:
      - method: GET
        name: getservice
        description: JupyterHub Get service
        call: rest-services.getservice
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-services-mcp
    port: 9090
    transport: http
    description: MCP adapter for JupyterHub REST API — Services. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: jupyterhub-list-services
      description: JupyterHub List services
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-services.listservices
      outputParameters:
      - type: object
        mapping: $.
    - name: jupyterhub-get-service
      description: JupyterHub Get service
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-services.getservice
      with:
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.