Apache Nutch · Capability

Apache Nutch REST API — Admin

Apache Nutch REST API — Admin. 2 operations. Lead operation: Apache Nutch Get Server Status. Self-contained Naftiko capability covering one Apache Nutch business surface.

Run with Naftiko Apache NutchAdmin

What You Can Do

GET
Getserverstatus — Apache Nutch Get Server Status
/v1/admin
GET
Stopserver — Apache Nutch Stop the Nutch Server
/v1/admin/stop

MCP Tools

apache-nutch-get-server-status

Apache Nutch Get Server Status

read-only idempotent
apache-nutch-stop-nutch-server

Apache Nutch Stop the Nutch Server

read-only idempotent

Capability Spec

apache-nutch-admin.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Nutch REST API — Admin
  description: 'Apache Nutch REST API — Admin. 2 operations. Lead operation: Apache Nutch Get Server Status. Self-contained
    Naftiko capability covering one Apache Nutch business surface.'
  tags:
  - Apache Nutch
  - Admin
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_NUTCH_API_KEY: APACHE_NUTCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: apache-nutch-admin
    baseUri: ''
    description: Apache Nutch REST API — Admin business capability. Self-contained, no shared references.
    resources:
    - name: admin
      path: /admin/
      operations:
      - name: getserverstatus
        method: GET
        description: Apache Nutch Get Server Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: admin-stop
      path: /admin/stop
      operations:
      - name: stopserver
        method: GET
        description: Apache Nutch Stop the Nutch Server
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: force
          in: query
          type: boolean
          description: If true, kills any running jobs before stopping the server.
    authentication:
      type: basic
      username: '{{env.APACHE_NUTCH_USER}}'
      password: '{{env.APACHE_NUTCH_PASS}}'
  exposes:
  - type: rest
    namespace: apache-nutch-admin-rest
    port: 8080
    description: REST adapter for Apache Nutch REST API — Admin. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/admin
      name: admin
      description: REST surface for admin.
      operations:
      - method: GET
        name: getserverstatus
        description: Apache Nutch Get Server Status
        call: apache-nutch-admin.getserverstatus
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/stop
      name: admin-stop
      description: REST surface for admin-stop.
      operations:
      - method: GET
        name: stopserver
        description: Apache Nutch Stop the Nutch Server
        call: apache-nutch-admin.stopserver
        with:
          force: rest.force
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: apache-nutch-admin-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Nutch REST API — Admin. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: apache-nutch-get-server-status
      description: Apache Nutch Get Server Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-nutch-admin.getserverstatus
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-nutch-stop-nutch-server
      description: Apache Nutch Stop the Nutch Server
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-nutch-admin.stopserver
      with:
        force: tools.force
      outputParameters:
      - type: object
        mapping: $.